@stencil/core 5.0.0-alpha.9 → 5.0.0-beta.0

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 (47) hide show
  1. package/README.md +94 -0
  2. package/dist/app-data/index.d.ts +1 -1
  3. package/dist/app-data/index.js +4 -1
  4. package/dist/client-BRu0GtRn.mjs +2368 -0
  5. package/dist/compiler/index.d.mts +167 -3
  6. package/dist/compiler/index.mjs +3 -3
  7. package/dist/compiler/utils/index.d.mts +272 -2
  8. package/dist/compiler/utils/index.mjs +4 -3
  9. package/dist/{compiler-C0qmPoKu.mjs → compiler-NrvbUOX1.mjs} +2754 -1259
  10. package/dist/declarations/stencil-ext-modules.d.ts +5 -5
  11. package/dist/declarations/stencil-public-compiler.d.ts +208 -66
  12. package/dist/declarations/stencil-public-docs.d.ts +9 -0
  13. package/dist/declarations/stencil-public-runtime.d.ts +91 -6
  14. package/dist/fragment-Di1hWOC8.mjs +4 -0
  15. package/dist/{regular-expression-CFVJOTUh.mjs → helpers-Cpp3qc3u.mjs} +31 -15
  16. package/dist/index-BOrz3rbJ.d.mts +100 -0
  17. package/dist/{index-xAkMgLX_.d.ts → index-DnISpqrd.d.ts} +149 -9
  18. package/dist/{index-vY35H18z.d.mts → index-RrQfiPWK.d.mts} +490 -845
  19. package/dist/index.d.mts +4 -0
  20. package/dist/index.mjs +91 -2
  21. package/dist/jsx-runtime.mjs +2 -1
  22. package/dist/{node--akYC-sG.mjs → node-75gQKkFz.mjs} +60 -58
  23. package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
  24. package/dist/runtime/client/lazy.js +481 -184
  25. package/dist/runtime/client/runtime.d.ts +149 -10
  26. package/dist/runtime/client/runtime.js +481 -184
  27. package/dist/runtime/index.d.ts +6 -4
  28. package/dist/runtime/index.js +480 -182
  29. package/dist/runtime/server/index.d.mts +80 -8
  30. package/dist/runtime/server/index.mjs +403 -177
  31. package/dist/runtime/server/runner.d.mts +3 -0
  32. package/dist/runtime/server/runner.mjs +320 -337
  33. package/dist/signals/index.d.ts +2 -0
  34. package/dist/signals/index.js +4 -1
  35. package/dist/sys/node/index.d.mts +1 -2
  36. package/dist/sys/node/index.mjs +1 -1
  37. package/dist/sys/node/worker.d.mts +1 -1
  38. package/dist/sys/node/worker.mjs +6 -3
  39. package/dist/testing/index.d.mts +4716 -105
  40. package/dist/testing/index.mjs +7590 -794
  41. package/dist/util-IKfWWLJo.mjs +724 -0
  42. package/dist/validation-DAdGTrys.mjs +791 -0
  43. package/package.json +27 -27
  44. package/dist/client-aTQ7xHxx.mjs +0 -4678
  45. package/dist/index-BvkyxSY6.d.mts +0 -205
  46. package/dist/validation-ByxKj8bC.mjs +0 -1458
  47. /package/{LICENSE.md → LICENSE} +0 -0
package/README.md ADDED
@@ -0,0 +1,94 @@
1
+ <p align="center">
2
+ <a href="#">
3
+ <img alt="stencil-logo" src="https://github.com/stenciljs/core/blob/main/stencil-logo.png" width="60">
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center">
8
+ Stencil
9
+ </h1>
10
+
11
+ <p align="center">
12
+ A compiler for generating <a href="https://www.webcomponents.org/introduction" target="_blank" rel="noopener noref">Web Components</a> using technologies like TypeScript and JSX, built by the <a href="https://ionic.io/">Ionic team</a>.
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://www.npmjs.com/package/@stencil/core">
17
+ <img src="https://img.shields.io/npm/v/@stencil/core.svg" alt="StencilJS is released under the MIT license." /></a>
18
+ <a href="https://github.com/stenciljs/core/blob/main/LICENSE.md">
19
+ <img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="StencilJS is released under the MIT license." />
20
+ </a>
21
+ <a href="https://github.com/stenciljs/core/blob/main/CONTRIBUTING.md">
22
+ <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" />
23
+ </a>
24
+ <a href="https://twitter.com/stenciljs">
25
+ <img src="https://img.shields.io/badge/follow-%40stenciljs-1DA1F2?logo=twitter" alt="Follow @stenciljs">
26
+ </a>
27
+ <a href="https://chat.stenciljs.com">
28
+ <img src="https://img.shields.io/discord/520266681499779082?color=7289DA&label=%23stencil&logo=discord&logoColor=white" alt="Official Ionic Discord" />
29
+ </a>
30
+ </p>
31
+
32
+ <h2 align="center">
33
+ <a href="https://stenciljs.com/docs/getting-started#starting-a-new-project">Quick Start</a>
34
+ <span> · </span>
35
+ <a href="https://stenciljs.com/docs/introduction">Documentation</a>
36
+ <span> · </span>
37
+ <a href="https://github.com/stenciljs/core/blob/main/CONTRIBUTING.md">Contribute</a>
38
+ <span> · </span>
39
+ <a href="https://ionicframework.com/blog/tag/stencil/">Blog</a>
40
+ <br />
41
+ Community:
42
+ <a href="https://chat.stenciljs.com">Discord</a>
43
+ <span> · </span>
44
+ <a href="https://forum.ionicframework.com/c/stencil/21/">Forums</a>
45
+ <span> · </span>
46
+ <a href="https://twitter.com/stenciljs">Twitter</a>
47
+ </h2>
48
+
49
+ ### Getting Started
50
+
51
+ Start a new project by following our quick [Getting Started guide](https://stenciljs.com/docs/getting-started).
52
+ We would love to hear from you!
53
+ If you have any feedback or run into issues using Stencil, please file an [issue](https://github.com/stenciljs/core/issues/new) on this repository.
54
+
55
+ ### Examples
56
+ A Stencil component looks a lot like a class-based React component, with the addition of TypeScript decorators:
57
+ ```tsx
58
+ import { Component, Prop, h } from '@stencil/core';
59
+
60
+ @Component({
61
+ tag: 'my-component', // the name of the component's custom HTML tag
62
+ styleUrl: 'my-component.css', // css styles to apply to the component
63
+ shadow: true, // this component uses the ShadowDOM
64
+ })
65
+ export class MyComponent {
66
+ // The component accepts two arguments:
67
+ @Prop() first: string;
68
+ @Prop() last: string;
69
+
70
+ //The following HTML is rendered when our component is used
71
+ render() {
72
+ return (
73
+ <div>
74
+ Hello, my name is {this.first} {this.last}
75
+ </div>
76
+ );
77
+ }
78
+ }
79
+ ```
80
+
81
+ The component above can be used like any other HTML element:
82
+
83
+ ```html
84
+ <my-component first="Stencil" last="JS"></my-component>
85
+ ```
86
+
87
+ Since Stencil generates web components, they work in any major framework or with no framework at all.
88
+ In many cases, Stencil can be used as a drop in replacement for traditional frontend framework, though using it as such is certainly not required.
89
+
90
+ ### Contributing
91
+
92
+ Thanks for your interest in contributing!
93
+ Please take a moment to read up on our guidelines for [contributing](https://github.com/stenciljs/core/blob/main/CONTRIBUTING.md). Each package's source is documented with short `readme.md` files next to the code they describe (e.g. [`packages/core/src/compiler/readme.md`](https://github.com/stenciljs/core/blob/main/packages/core/src/compiler/readme.md), [`packages/core/src/runtime/readme.md`](https://github.com/stenciljs/core/blob/main/packages/core/src/runtime/readme.md)) - browse a package's `src/` directory to find them.
94
+ Please note that this project is released with a [Contributor Code of Conduct](https://github.com/stenciljs/core/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
@@ -1,2 +1,2 @@
1
- import { n as Env, r as NAMESPACE, t as BUILD } from "../index-xAkMgLX_.js";
1
+ import { n as Env, r as NAMESPACE, t as BUILD } from "../index-DnISpqrd.js";
2
2
  export { BUILD, Env, NAMESPACE };
@@ -56,6 +56,7 @@ const BUILD = {
56
56
  vdomListener: true,
57
57
  vdomRef: true,
58
58
  vdomPropOrAttr: true,
59
+ vdomPropOrAttrPrefix: true,
59
60
  vdomRender: true,
60
61
  vdomStyle: true,
61
62
  vdomText: true,
@@ -73,7 +74,7 @@ const BUILD = {
73
74
  isDev: false,
74
75
  isTesting: false,
75
76
  hydrateServerSide: false,
76
- hydrateClientSide: false,
77
+ hydrateClientSide: true,
77
78
  lifecycleDOMEvents: false,
78
79
  lazyLoad: false,
79
80
  profile: false,
@@ -94,6 +95,8 @@ const BUILD = {
94
95
  devTools: false,
95
96
  shadowDelegatesFocus: true,
96
97
  shadowSlotAssignmentManual: false,
98
+ shadowClonable: true,
99
+ shadowSerializable: true,
97
100
  initializeNextTick: false,
98
101
  asyncLoading: true,
99
102
  asyncQueue: false