@htmlplus/element 0.4.5 → 0.4.8

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.
Files changed (70) hide show
  1. package/bundlers/index.d.ts +2 -0
  2. package/bundlers/index.js +2 -0
  3. package/bundlers/rollup.d.ts +7 -0
  4. package/bundlers/rollup.js +21 -0
  5. package/bundlers/vite.d.ts +7 -0
  6. package/bundlers/vite.js +25 -0
  7. package/client/decorators/attributes.d.ts +1 -1
  8. package/client/decorators/attributes.js +4 -4
  9. package/client/decorators/element.d.ts +1 -1
  10. package/client/decorators/element.js +14 -22
  11. package/client/decorators/event.d.ts +1 -1
  12. package/client/decorators/listen.d.ts +1 -1
  13. package/client/decorators/method.d.ts +1 -1
  14. package/client/decorators/property.d.ts +1 -1
  15. package/client/decorators/property.js +4 -4
  16. package/client/decorators/state.d.ts +1 -1
  17. package/client/decorators/state.js +4 -4
  18. package/client/decorators/watch.d.ts +1 -1
  19. package/client/helpers/direction.d.ts +1 -1
  20. package/client/helpers/isRTL.d.ts +1 -1
  21. package/client/helpers/slots.d.ts +1 -1
  22. package/client/utils/getMemberType.d.ts +1 -1
  23. package/client/utils/getMemberType.js +2 -2
  24. package/client/utils/getMembersKey.d.ts +1 -1
  25. package/client/utils/getStyles.d.ts +1 -1
  26. package/client/utils/host.d.ts +1 -1
  27. package/client/utils/index.d.ts +1 -1
  28. package/client/utils/index.js +1 -1
  29. package/client/utils/request.d.ts +1 -1
  30. package/client/utils/request.js +3 -3
  31. package/client/utils/syncAttributes.d.ts +1 -0
  32. package/client/utils/{sync.js → syncAttributes.js} +1 -1
  33. package/client/{vendor → vendors}/uhtml.d.ts +7 -0
  34. package/client/{vendor → vendors}/uhtml.js +1 -0
  35. package/compiler/compiler.d.ts +1 -1
  36. package/compiler/plugins/assets.d.ts +1 -1
  37. package/compiler/plugins/copy.d.ts +13 -0
  38. package/compiler/plugins/copy.js +26 -0
  39. package/compiler/plugins/customElement.d.ts +1 -1
  40. package/compiler/plugins/customElement.js +31 -38
  41. package/compiler/plugins/customElementReact/customElementReact.d.ts +1 -1
  42. package/compiler/plugins/document.d.ts +1 -1
  43. package/compiler/plugins/document.js +37 -35
  44. package/compiler/plugins/extract.d.ts +1 -1
  45. package/compiler/plugins/index.d.ts +1 -0
  46. package/compiler/plugins/index.js +1 -0
  47. package/compiler/plugins/parse.d.ts +1 -1
  48. package/compiler/plugins/read.d.ts +1 -1
  49. package/compiler/plugins/style.d.ts +2 -2
  50. package/compiler/plugins/style.js +6 -2
  51. package/compiler/plugins/validate.d.ts +1 -1
  52. package/compiler/plugins/visualStudioCode.d.ts +1 -1
  53. package/compiler/plugins/webTypes.d.ts +2 -2
  54. package/compiler/plugins/webTypes.js +75 -51
  55. package/compiler/utils/addDependency.d.ts +9 -2
  56. package/compiler/utils/addDependency.js +35 -16
  57. package/compiler/utils/getInitializer.d.ts +1 -1
  58. package/compiler/utils/getInitializer.js +2 -8
  59. package/compiler/utils/index.d.ts +1 -0
  60. package/compiler/utils/index.js +1 -0
  61. package/compiler/utils/removeUnusedImport.d.ts +1 -0
  62. package/compiler/utils/removeUnusedImport.js +49 -0
  63. package/constants/index.d.ts +9 -2
  64. package/constants/index.js +10 -2
  65. package/package.json +5 -11
  66. package/types/global.d.ts +1 -1
  67. package/types/index.d.ts +4 -4
  68. package/types/index.js +4 -4
  69. package/types/plugin.d.ts +1 -1
  70. package/client/utils/sync.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlplus/element",
3
- "version": "0.4.5",
3
+ "version": "0.4.8",
4
4
  "license": "MIT",
5
5
  "author": "Masood Abdolian <m.abdolian@gmail.com>",
6
6
  "description": "Compiler of HTMLPlus",
@@ -8,13 +8,7 @@
8
8
  "main": "client/index.js",
9
9
  "types": "client/index.d.ts",
10
10
  "files": [
11
- "client",
12
- "compiler",
13
- "constants",
14
- "runtime",
15
- "types",
16
- "package.json",
17
- "README.md"
11
+ "**/*.*"
18
12
  ],
19
13
  "publishConfig": {
20
14
  "directory": "dist"
@@ -25,12 +19,12 @@
25
19
  "keywords": [],
26
20
  "repository": {
27
21
  "type": "git",
28
- "url": "git+https://github.com/htmlplus/element.git"
22
+ "url": "git+https://github.com/htmlplus/htmlplus.git"
29
23
  },
30
24
  "bugs": {
31
- "url": "https://github.com/htmlplus/element/issues"
25
+ "url": "https://github.com/htmlplus/htmlplus/issues"
32
26
  },
33
- "homepage": "https://github.com/htmlplus/element#readme",
27
+ "homepage": "https://github.com/htmlplus/htmlplus#readme",
34
28
  "dependencies": {
35
29
  "@babel/generator": "^7.18.9",
36
30
  "@babel/parser": "^7.18.9",
package/types/global.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Context } from './context.js';
1
+ import { Context } from './context';
2
2
  export interface Global {
3
3
  contexts: Array<Context>;
4
4
  }
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './context.js';
2
- export * from './global.js';
3
- export * from './plugin.js';
4
- export * from './plusElement.js';
1
+ export * from './context';
2
+ export * from './global';
3
+ export * from './plugin';
4
+ export * from './plusElement';
package/types/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './context.js';
2
- export * from './global.js';
3
- export * from './plugin.js';
4
- export * from './plusElement.js';
1
+ export * from './context';
2
+ export * from './global';
3
+ export * from './plugin';
4
+ export * from './plusElement';
package/types/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Context } from './context.js';
1
+ import { Context } from './context';
2
2
  import { Global } from './global';
3
3
  export declare type Return<T> = void | T | Promise<T>;
4
4
  export declare type Plugin = {
@@ -1 +0,0 @@
1
- export declare const sync: (node: HTMLElement) => (next?: any) => void;