@arcmantle/lit-jsx 1.0.32 → 1.0.34

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 (84) hide show
  1. package/README.md +153 -105
  2. package/dist/compiler/attribute-processor.d.ts +9 -19
  3. package/dist/compiler/attribute-processor.d.ts.map +1 -1
  4. package/dist/compiler/attribute-processor.js +22 -39
  5. package/dist/compiler/attribute-processor.js.map +1 -1
  6. package/dist/compiler/babel-plugin.d.ts +1 -0
  7. package/dist/compiler/babel-plugin.d.ts.map +1 -1
  8. package/dist/compiler/babel-plugin.js +2 -1
  9. package/dist/compiler/babel-plugin.js.map +1 -1
  10. package/dist/compiler/compiler-utils.d.ts +9 -1
  11. package/dist/compiler/compiler-utils.d.ts.map +1 -1
  12. package/dist/compiler/compiler-utils.js +71 -60
  13. package/dist/compiler/compiler-utils.js.map +1 -1
  14. package/dist/compiler/config.d.ts +23 -28
  15. package/dist/compiler/config.d.ts.map +1 -1
  16. package/dist/compiler/config.js +28 -28
  17. package/dist/compiler/config.js.map +1 -1
  18. package/dist/compiler/oxc-walker.d.ts +4 -4
  19. package/dist/compiler/oxc-walker.d.ts.map +1 -1
  20. package/dist/compiler/oxc-walker.js +1 -1
  21. package/dist/compiler/oxc-walker.js.map +1 -1
  22. package/dist/compiler/preprocess.d.ts +1 -0
  23. package/dist/compiler/preprocess.d.ts.map +1 -1
  24. package/dist/compiler/preprocess.js +31 -0
  25. package/dist/compiler/preprocess.js.map +1 -1
  26. package/dist/compiler/transpiler.d.ts.map +1 -1
  27. package/dist/compiler/transpiler.js +31 -13
  28. package/dist/compiler/transpiler.js.map +1 -1
  29. package/dist/compiler/vite-plugin.d.ts +3 -1
  30. package/dist/compiler/vite-plugin.d.ts.map +1 -1
  31. package/dist/compiler/vite-plugin.js +1 -0
  32. package/dist/compiler/vite-plugin.js.map +1 -1
  33. package/dist/runtime/choose-component.d.ts +2 -2
  34. package/dist/runtime/choose-component.d.ts.map +1 -1
  35. package/dist/runtime/for-component.d.ts +3 -3
  36. package/dist/runtime/for-component.d.ts.map +1 -1
  37. package/dist/runtime/for-component.js.map +1 -1
  38. package/dist/runtime/lit-reexports.d.ts +11 -0
  39. package/dist/runtime/lit-reexports.d.ts.map +1 -0
  40. package/dist/runtime/lit-reexports.js +14 -0
  41. package/dist/runtime/lit-reexports.js.map +1 -0
  42. package/dist/runtime/show-component.d.ts +4 -4
  43. package/dist/runtime/show-component.d.ts.map +1 -1
  44. package/dist/runtime/type-helpers.d.ts +1 -1
  45. package/dist/runtime/type-helpers.d.ts.map +1 -1
  46. package/dist/shared/jsx-core.d.ts +83 -0
  47. package/dist/shared/jsx-core.d.ts.map +1 -0
  48. package/dist/shared/jsx-core.js +2 -0
  49. package/dist/shared/jsx-core.js.map +1 -0
  50. package/dist/shared/jsx-dom.d.ts +26 -0
  51. package/dist/shared/jsx-dom.d.ts.map +1 -0
  52. package/dist/shared/jsx-dom.js +2 -0
  53. package/dist/shared/jsx-dom.js.map +1 -0
  54. package/dist/shared/jsx-hooks.d.ts +69 -0
  55. package/dist/shared/jsx-hooks.d.ts.map +1 -0
  56. package/dist/shared/jsx-hooks.js +2 -0
  57. package/dist/shared/jsx-hooks.js.map +1 -0
  58. package/dist/shared/jsx-types.d.ts +3 -2140
  59. package/dist/shared/jsx-types.d.ts.map +1 -1
  60. package/dist/shared/jsx-types.js +3 -1
  61. package/dist/shared/jsx-types.js.map +1 -1
  62. package/dist/utils.d.ts +1 -0
  63. package/dist/utils.d.ts.map +1 -1
  64. package/dist/utils.js +3 -0
  65. package/dist/utils.js.map +1 -1
  66. package/package.json +17 -17
  67. package/src/compiler/attribute-processor.ts +33 -60
  68. package/src/compiler/babel-plugin.ts +3 -1
  69. package/src/compiler/compiler-utils.ts +91 -259
  70. package/src/compiler/config.ts +52 -43
  71. package/src/compiler/oxc-walker.ts +5 -5
  72. package/src/compiler/preprocess.ts +41 -0
  73. package/src/compiler/transpiler.ts +31 -12
  74. package/src/compiler/vite-plugin.ts +4 -1
  75. package/src/runtime/choose-component.ts +2 -2
  76. package/src/runtime/for-component.ts +3 -3
  77. package/src/runtime/lit-reexports.ts +16 -0
  78. package/src/runtime/show-component.ts +4 -4
  79. package/src/runtime/type-helpers.ts +1 -1
  80. package/src/shared/jsx-core.ts +123 -0
  81. package/src/shared/jsx-dom.ts +29 -0
  82. package/src/shared/jsx-hooks.ts +86 -0
  83. package/src/shared/jsx-types.ts +3 -2559
  84. package/src/utils.ts +15 -0
package/src/utils.ts CHANGED
@@ -6,3 +6,18 @@ export * from './runtime/rest-directive.js';
6
6
  export * from './runtime/show-component.js';
7
7
  export * from './runtime/tagged-template.js';
8
8
  export * from './runtime/type-helpers.js';
9
+
10
+ // Re-export lit-html functionality used by transpiler-generated code
11
+ // These are the exact imports that the transpiler can inject
12
+ export {
13
+ classMap,
14
+ html,
15
+ htmlStatic,
16
+ mathml,
17
+ mathmlStatic,
18
+ ref,
19
+ styleMap,
20
+ svg,
21
+ svgStatic,
22
+ unsafeStatic,
23
+ } from './runtime/lit-reexports.js';