@stencil/core 4.43.2 → 5.0.0-next.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 (368) hide show
  1. package/bin/stencil.mjs +2 -0
  2. package/dist/chunk-ClPoSABd.mjs +21 -0
  3. package/dist/client-DR9zhmKG.mjs +4449 -0
  4. package/dist/compiler/index.d.mts +187 -0
  5. package/dist/compiler/index.mjs +9 -0
  6. package/dist/compiler/utils/index.d.mts +3 -0
  7. package/dist/compiler/utils/index.mjs +5 -0
  8. package/dist/declarations/stencil-public-compiler.d.ts +4401 -0
  9. package/dist/declarations/stencil-public-compiler.js +53 -0
  10. package/dist/declarations/stencil-public-runtime.d.ts +1857 -0
  11. package/dist/index-Bxo2jCf6.d.mts +77 -0
  12. package/dist/index-szczUd2l.d.mts +6851 -0
  13. package/{internal/stencil-core/index.d.ts → dist/index.d.mts} +7 -3
  14. package/dist/index.mjs +4 -0
  15. package/dist/mock-doc.d.mts +1 -0
  16. package/dist/mock-doc.mjs +3 -0
  17. package/dist/node-sys-BGURUNOZ.mjs +1954 -0
  18. package/{internal → dist/runtime}/app-data/index.d.ts +11 -7
  19. package/dist/runtime/app-data/index.js +100 -0
  20. package/dist/runtime/app-globals/index.d.ts +5 -0
  21. package/dist/runtime/app-globals/index.js +6 -0
  22. package/dist/runtime/client/index.d.ts +2286 -0
  23. package/dist/runtime/client/index.js +4839 -0
  24. package/dist/runtime/index.d.ts +221 -0
  25. package/dist/runtime/index.js +4819 -0
  26. package/dist/runtime/server/index.d.mts +1277 -0
  27. package/dist/runtime/server/index.mjs +5376 -0
  28. package/dist/runtime/server/runner.d.mts +298 -0
  29. package/dist/runtime/server/runner.mjs +1976 -0
  30. package/dist/serialize-BJvhE9aQ.mjs +775 -0
  31. package/dist/stencil-private-Cgcr414u.d.ts +1893 -0
  32. package/dist/sys/node/index.d.mts +33 -0
  33. package/dist/sys/node/index.mjs +7 -0
  34. package/dist/sys/node/worker.d.mts +1 -0
  35. package/dist/sys/node/worker.mjs +60 -0
  36. package/dist/testing/index.d.mts +207 -0
  37. package/dist/testing/index.mjs +1188 -0
  38. package/dist/transpile-CJQcQEVa.mjs +21854 -0
  39. package/dist/validation-BdcPruW_.mjs +1451 -0
  40. package/package.json +88 -232
  41. package/bin/stencil +0 -57
  42. package/cli/config-flags.d.ts +0 -132
  43. package/cli/index.cjs +0 -5816
  44. package/cli/index.d.ts +0 -19
  45. package/cli/index.js +0 -5809
  46. package/cli/package.json +0 -14
  47. package/compiler/lib.d.ts +0 -22
  48. package/compiler/lib.decorators.d.ts +0 -384
  49. package/compiler/lib.decorators.legacy.d.ts +0 -22
  50. package/compiler/lib.dom.asynciterable.d.ts +0 -41
  51. package/compiler/lib.dom.d.ts +0 -29610
  52. package/compiler/lib.dom.iterable.d.ts +0 -493
  53. package/compiler/lib.es2015.collection.d.ts +0 -147
  54. package/compiler/lib.es2015.core.d.ts +0 -597
  55. package/compiler/lib.es2015.d.ts +0 -28
  56. package/compiler/lib.es2015.generator.d.ts +0 -77
  57. package/compiler/lib.es2015.iterable.d.ts +0 -605
  58. package/compiler/lib.es2015.promise.d.ts +0 -81
  59. package/compiler/lib.es2015.proxy.d.ts +0 -128
  60. package/compiler/lib.es2015.reflect.d.ts +0 -144
  61. package/compiler/lib.es2015.symbol.d.ts +0 -46
  62. package/compiler/lib.es2015.symbol.wellknown.d.ts +0 -326
  63. package/compiler/lib.es2016.array.include.d.ts +0 -116
  64. package/compiler/lib.es2016.d.ts +0 -21
  65. package/compiler/lib.es2016.full.d.ts +0 -23
  66. package/compiler/lib.es2016.intl.d.ts +0 -31
  67. package/compiler/lib.es2017.arraybuffer.d.ts +0 -21
  68. package/compiler/lib.es2017.d.ts +0 -26
  69. package/compiler/lib.es2017.date.d.ts +0 -31
  70. package/compiler/lib.es2017.full.d.ts +0 -23
  71. package/compiler/lib.es2017.intl.d.ts +0 -44
  72. package/compiler/lib.es2017.object.d.ts +0 -49
  73. package/compiler/lib.es2017.sharedmemory.d.ts +0 -135
  74. package/compiler/lib.es2017.string.d.ts +0 -45
  75. package/compiler/lib.es2017.typedarrays.d.ts +0 -53
  76. package/compiler/lib.es2018.asyncgenerator.d.ts +0 -77
  77. package/compiler/lib.es2018.asynciterable.d.ts +0 -53
  78. package/compiler/lib.es2018.d.ts +0 -24
  79. package/compiler/lib.es2018.full.d.ts +0 -24
  80. package/compiler/lib.es2018.intl.d.ts +0 -83
  81. package/compiler/lib.es2018.promise.d.ts +0 -30
  82. package/compiler/lib.es2018.regexp.d.ts +0 -37
  83. package/compiler/lib.es2019.array.d.ts +0 -79
  84. package/compiler/lib.es2019.d.ts +0 -24
  85. package/compiler/lib.es2019.full.d.ts +0 -24
  86. package/compiler/lib.es2019.intl.d.ts +0 -23
  87. package/compiler/lib.es2019.object.d.ts +0 -33
  88. package/compiler/lib.es2019.string.d.ts +0 -37
  89. package/compiler/lib.es2019.symbol.d.ts +0 -24
  90. package/compiler/lib.es2020.bigint.d.ts +0 -765
  91. package/compiler/lib.es2020.d.ts +0 -27
  92. package/compiler/lib.es2020.date.d.ts +0 -42
  93. package/compiler/lib.es2020.full.d.ts +0 -24
  94. package/compiler/lib.es2020.intl.d.ts +0 -474
  95. package/compiler/lib.es2020.number.d.ts +0 -28
  96. package/compiler/lib.es2020.promise.d.ts +0 -47
  97. package/compiler/lib.es2020.sharedmemory.d.ts +0 -99
  98. package/compiler/lib.es2020.string.d.ts +0 -44
  99. package/compiler/lib.es2020.symbol.wellknown.d.ts +0 -41
  100. package/compiler/lib.es2021.d.ts +0 -23
  101. package/compiler/lib.es2021.full.d.ts +0 -24
  102. package/compiler/lib.es2021.intl.d.ts +0 -166
  103. package/compiler/lib.es2021.promise.d.ts +0 -48
  104. package/compiler/lib.es2021.string.d.ts +0 -33
  105. package/compiler/lib.es2021.weakref.d.ts +0 -78
  106. package/compiler/lib.es2022.array.d.ts +0 -121
  107. package/compiler/lib.es2022.d.ts +0 -25
  108. package/compiler/lib.es2022.error.d.ts +0 -75
  109. package/compiler/lib.es2022.full.d.ts +0 -24
  110. package/compiler/lib.es2022.intl.d.ts +0 -121
  111. package/compiler/lib.es2022.object.d.ts +0 -26
  112. package/compiler/lib.es2022.regexp.d.ts +0 -39
  113. package/compiler/lib.es2022.string.d.ts +0 -25
  114. package/compiler/lib.es2023.array.d.ts +0 -924
  115. package/compiler/lib.es2023.collection.d.ts +0 -21
  116. package/compiler/lib.es2023.d.ts +0 -22
  117. package/compiler/lib.es2023.full.d.ts +0 -24
  118. package/compiler/lib.es2023.intl.d.ts +0 -56
  119. package/compiler/lib.es2024.arraybuffer.d.ts +0 -65
  120. package/compiler/lib.es2024.collection.d.ts +0 -29
  121. package/compiler/lib.es2024.d.ts +0 -26
  122. package/compiler/lib.es2024.full.d.ts +0 -24
  123. package/compiler/lib.es2024.object.d.ts +0 -29
  124. package/compiler/lib.es2024.promise.d.ts +0 -35
  125. package/compiler/lib.es2024.regexp.d.ts +0 -25
  126. package/compiler/lib.es2024.sharedmemory.d.ts +0 -68
  127. package/compiler/lib.es2024.string.d.ts +0 -29
  128. package/compiler/lib.es5.d.ts +0 -4594
  129. package/compiler/lib.es6.d.ts +0 -23
  130. package/compiler/lib.esnext.array.d.ts +0 -35
  131. package/compiler/lib.esnext.collection.d.ts +0 -96
  132. package/compiler/lib.esnext.d.ts +0 -27
  133. package/compiler/lib.esnext.decorators.d.ts +0 -28
  134. package/compiler/lib.esnext.disposable.d.ts +0 -193
  135. package/compiler/lib.esnext.float16.d.ts +0 -443
  136. package/compiler/lib.esnext.full.d.ts +0 -24
  137. package/compiler/lib.esnext.intl.d.ts +0 -21
  138. package/compiler/lib.esnext.iterator.d.ts +0 -148
  139. package/compiler/lib.esnext.promise.d.ts +0 -34
  140. package/compiler/lib.scripthost.d.ts +0 -322
  141. package/compiler/lib.webworker.asynciterable.d.ts +0 -41
  142. package/compiler/lib.webworker.d.ts +0 -9894
  143. package/compiler/lib.webworker.importscripts.d.ts +0 -23
  144. package/compiler/lib.webworker.iterable.d.ts +0 -287
  145. package/compiler/package.json +0 -8
  146. package/compiler/stencil.d.ts +0 -73
  147. package/compiler/stencil.js +0 -287816
  148. package/compiler/sys/in-memory-fs.d.ts +0 -227
  149. package/compiler/transpile.d.ts +0 -32
  150. package/dev-server/client/app-error.d.ts +0 -20
  151. package/dev-server/client/events.d.ts +0 -6
  152. package/dev-server/client/hmr-components.d.ts +0 -12
  153. package/dev-server/client/hmr-external-styles.d.ts +0 -1
  154. package/dev-server/client/hmr-images.d.ts +0 -1
  155. package/dev-server/client/hmr-inline-styles.d.ts +0 -1
  156. package/dev-server/client/hmr-util.d.ts +0 -39
  157. package/dev-server/client/hmr-window.d.ts +0 -10
  158. package/dev-server/client/index.d.ts +0 -6
  159. package/dev-server/client/index.js +0 -793
  160. package/dev-server/client/logger.d.ts +0 -6
  161. package/dev-server/client/package.json +0 -8
  162. package/dev-server/client/progress.d.ts +0 -3
  163. package/dev-server/client/status.d.ts +0 -4
  164. package/dev-server/client/test/hmr-util.spec.d.ts +0 -1
  165. package/dev-server/client/test/status.spec.d.ts +0 -1
  166. package/dev-server/connector.html +0 -6
  167. package/dev-server/index.d.ts +0 -3
  168. package/dev-server/index.js +0 -247
  169. package/dev-server/package.json +0 -8
  170. package/dev-server/server-process.js +0 -12095
  171. package/dev-server/server-worker-thread.js +0 -39
  172. package/dev-server/static/favicon.ico +0 -0
  173. package/dev-server/templates/directory-index.html +0 -176
  174. package/dev-server/templates/initial-load.html +0 -168
  175. package/dev-server/visualstudio.vbs +0 -82
  176. package/dev-server/xdg-open +0 -1066
  177. package/internal/app-data/index.cjs +0 -119
  178. package/internal/app-data/index.js +0 -92
  179. package/internal/app-data/package.json +0 -15
  180. package/internal/app-globals/index.d.ts +0 -2
  181. package/internal/app-globals/index.js +0 -14
  182. package/internal/app-globals/package.json +0 -14
  183. package/internal/child_process.d.ts +0 -7
  184. package/internal/client/index.js +0 -4736
  185. package/internal/client/package.json +0 -10
  186. package/internal/client/patch-browser.js +0 -45
  187. package/internal/client/polyfills/core-js.js +0 -11
  188. package/internal/client/polyfills/dom.js +0 -79
  189. package/internal/client/polyfills/es5-html-element.js +0 -1
  190. package/internal/client/polyfills/index.js +0 -34
  191. package/internal/client/polyfills/system.js +0 -6
  192. package/internal/client/shadow-css.js +0 -414
  193. package/internal/hydrate/index.js +0 -6671
  194. package/internal/hydrate/package.json +0 -7
  195. package/internal/hydrate/runner.d.ts +0 -287
  196. package/internal/hydrate/runner.js +0 -17950
  197. package/internal/index.d.ts +0 -4
  198. package/internal/index.js +0 -2
  199. package/internal/package.json +0 -9
  200. package/internal/stencil-core/index.cjs +0 -1
  201. package/internal/stencil-core/index.js +0 -18
  202. package/internal/stencil-core/jsx-dev-runtime.cjs +0 -7
  203. package/internal/stencil-core/jsx-dev-runtime.d.ts +0 -41
  204. package/internal/stencil-core/jsx-dev-runtime.js +0 -2
  205. package/internal/stencil-core/jsx-runtime.cjs +0 -8
  206. package/internal/stencil-core/jsx-runtime.d.ts +0 -40
  207. package/internal/stencil-core/jsx-runtime.js +0 -2
  208. package/internal/stencil-private.d.ts +0 -2549
  209. package/internal/stencil-public-compiler.d.ts +0 -2867
  210. package/internal/stencil-public-runtime.d.ts +0 -1860
  211. package/internal/testing/index.js +0 -6528
  212. package/internal/testing/jsx-dev-runtime.d.ts +0 -2
  213. package/internal/testing/jsx-dev-runtime.js +0 -8
  214. package/internal/testing/jsx-runtime.d.ts +0 -2
  215. package/internal/testing/jsx-runtime.js +0 -9
  216. package/internal/testing/package.json +0 -7
  217. package/internal/utils/index.d.ts +0 -1
  218. package/internal/utils/result.d.ts +0 -112
  219. package/mock-doc/index.cjs +0 -10165
  220. package/mock-doc/index.d.ts +0 -1172
  221. package/mock-doc/index.js +0 -10144
  222. package/mock-doc/package.json +0 -15
  223. package/readme.md +0 -94
  224. package/screenshot/compare/assets/favicon.ico +0 -0
  225. package/screenshot/compare/assets/logo.png +0 -0
  226. package/screenshot/compare/build/app.css +0 -1
  227. package/screenshot/compare/build/app.esm.js +0 -1
  228. package/screenshot/compare/build/app.js +0 -33
  229. package/screenshot/compare/build/p-081b0641.js +0 -1
  230. package/screenshot/compare/build/p-227a1e18.entry.js +0 -1
  231. package/screenshot/compare/build/p-2c298727.entry.js +0 -1
  232. package/screenshot/compare/build/p-5479268c.entry.js +0 -1
  233. package/screenshot/compare/build/p-573ec8a4.entry.js +0 -1
  234. package/screenshot/compare/build/p-6ba08604.entry.js +0 -1
  235. package/screenshot/compare/build/p-6bc63295.entry.js +0 -1
  236. package/screenshot/compare/build/p-7a3759fd.entry.js +0 -1
  237. package/screenshot/compare/build/p-7b4e3ba7.js +0 -1
  238. package/screenshot/compare/build/p-988eb362.css +0 -1
  239. package/screenshot/compare/build/p-9b6a9315.js +0 -1
  240. package/screenshot/compare/build/p-b4cc611c.entry.js +0 -1
  241. package/screenshot/compare/build/p-d1bf53f5.entry.js +0 -1
  242. package/screenshot/compare/build/p-e2efe0df.js +0 -1
  243. package/screenshot/compare/build/p-e8ca6d97.entry.js +0 -1
  244. package/screenshot/compare/build/p-ec2f13e0.entry.js +0 -1
  245. package/screenshot/compare/build/p-f0b99977.entry.js +0 -1
  246. package/screenshot/compare/build/p-f4745c2f.entry.js +0 -1
  247. package/screenshot/compare/build/p-fbbae598.js +0 -1
  248. package/screenshot/compare/host.config.json +0 -15
  249. package/screenshot/compare/index.html +0 -1
  250. package/screenshot/compare/manifest.json +0 -13
  251. package/screenshot/connector-base.d.ts +0 -42
  252. package/screenshot/connector-local.d.ts +0 -7
  253. package/screenshot/connector.js +0 -2
  254. package/screenshot/index.d.ts +0 -3
  255. package/screenshot/index.js +0 -2433
  256. package/screenshot/local-connector.js +0 -2
  257. package/screenshot/package.json +0 -15
  258. package/screenshot/pixel-match.d.ts +0 -1
  259. package/screenshot/pixel-match.js +0 -2315
  260. package/screenshot/screenshot-compare.d.ts +0 -20
  261. package/screenshot/screenshot-fs.d.ts +0 -14
  262. package/sys/node/460.node-fetch.js +0 -451
  263. package/sys/node/autoprefixer.js +0 -9
  264. package/sys/node/glob.js +0 -1
  265. package/sys/node/graceful-fs.js +0 -1
  266. package/sys/node/index.d.ts +0 -39
  267. package/sys/node/index.js +0 -64
  268. package/sys/node/node-fetch.js +0 -12
  269. package/sys/node/package.json +0 -8
  270. package/sys/node/prompts.js +0 -1
  271. package/sys/node/worker.js +0 -4
  272. package/testing/index.d.ts +0 -9
  273. package/testing/index.js +0 -13064
  274. package/testing/jest/jest-27-and-under/jest-config.d.ts +0 -16
  275. package/testing/jest/jest-27-and-under/jest-environment.d.ts +0 -2
  276. package/testing/jest/jest-27-and-under/jest-facade.d.ts +0 -155
  277. package/testing/jest/jest-27-and-under/jest-preprocessor.d.ts +0 -59
  278. package/testing/jest/jest-27-and-under/jest-preset.d.ts +0 -3
  279. package/testing/jest/jest-27-and-under/jest-runner.d.ts +0 -11
  280. package/testing/jest/jest-27-and-under/jest-screenshot.d.ts +0 -2
  281. package/testing/jest/jest-27-and-under/jest-serializer.d.ts +0 -4
  282. package/testing/jest/jest-27-and-under/jest-setup-test-framework.d.ts +0 -9
  283. package/testing/jest/jest-27-and-under/matchers/attributes.d.ts +0 -14
  284. package/testing/jest/jest-27-and-under/matchers/class-list.d.ts +0 -12
  285. package/testing/jest/jest-27-and-under/matchers/events.d.ts +0 -25
  286. package/testing/jest/jest-27-and-under/matchers/html.d.ts +0 -13
  287. package/testing/jest/jest-27-and-under/matchers/index.d.ts +0 -24
  288. package/testing/jest/jest-27-and-under/matchers/screenshot.d.ts +0 -5
  289. package/testing/jest/jest-27-and-under/matchers/text.d.ts +0 -4
  290. package/testing/jest/jest-27-and-under/test/jest-config.spec.d.ts +0 -1
  291. package/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.d.ts +0 -1
  292. package/testing/jest/jest-27-and-under/test/jest-runner.spec.d.ts +0 -1
  293. package/testing/jest/jest-27-and-under/test/jest-serializer.spec.d.ts +0 -1
  294. package/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.d.ts +0 -1
  295. package/testing/jest/jest-28/jest-config.d.ts +0 -16
  296. package/testing/jest/jest-28/jest-environment.d.ts +0 -2
  297. package/testing/jest/jest-28/jest-facade.d.ts +0 -134
  298. package/testing/jest/jest-28/jest-preprocessor.d.ts +0 -35
  299. package/testing/jest/jest-28/jest-preset.d.ts +0 -3
  300. package/testing/jest/jest-28/jest-runner.d.ts +0 -11
  301. package/testing/jest/jest-28/jest-screenshot.d.ts +0 -2
  302. package/testing/jest/jest-28/jest-serializer.d.ts +0 -4
  303. package/testing/jest/jest-28/jest-setup-test-framework.d.ts +0 -9
  304. package/testing/jest/jest-28/matchers/attributes.d.ts +0 -14
  305. package/testing/jest/jest-28/matchers/class-list.d.ts +0 -12
  306. package/testing/jest/jest-28/matchers/events.d.ts +0 -25
  307. package/testing/jest/jest-28/matchers/html.d.ts +0 -13
  308. package/testing/jest/jest-28/matchers/index.d.ts +0 -24
  309. package/testing/jest/jest-28/matchers/screenshot.d.ts +0 -5
  310. package/testing/jest/jest-28/matchers/text.d.ts +0 -4
  311. package/testing/jest/jest-28/test/jest-config.spec.d.ts +0 -1
  312. package/testing/jest/jest-28/test/jest-preprocessor.spec.d.ts +0 -1
  313. package/testing/jest/jest-28/test/jest-runner.spec.d.ts +0 -1
  314. package/testing/jest/jest-28/test/jest-serializer.spec.d.ts +0 -1
  315. package/testing/jest/jest-28/test/jest-setup-test-framework.spec.d.ts +0 -1
  316. package/testing/jest/jest-29/jest-config.d.ts +0 -16
  317. package/testing/jest/jest-29/jest-environment.d.ts +0 -2
  318. package/testing/jest/jest-29/jest-facade.d.ts +0 -136
  319. package/testing/jest/jest-29/jest-preprocessor.d.ts +0 -35
  320. package/testing/jest/jest-29/jest-preset.d.ts +0 -3
  321. package/testing/jest/jest-29/jest-runner.d.ts +0 -11
  322. package/testing/jest/jest-29/jest-screenshot.d.ts +0 -2
  323. package/testing/jest/jest-29/jest-serializer.d.ts +0 -4
  324. package/testing/jest/jest-29/jest-setup-test-framework.d.ts +0 -9
  325. package/testing/jest/jest-29/matchers/attributes.d.ts +0 -14
  326. package/testing/jest/jest-29/matchers/class-list.d.ts +0 -12
  327. package/testing/jest/jest-29/matchers/events.d.ts +0 -25
  328. package/testing/jest/jest-29/matchers/html.d.ts +0 -13
  329. package/testing/jest/jest-29/matchers/index.d.ts +0 -24
  330. package/testing/jest/jest-29/matchers/screenshot.d.ts +0 -5
  331. package/testing/jest/jest-29/matchers/text.d.ts +0 -4
  332. package/testing/jest/jest-29/test/jest-config.spec.d.ts +0 -1
  333. package/testing/jest/jest-29/test/jest-preprocessor.spec.d.ts +0 -1
  334. package/testing/jest/jest-29/test/jest-runner.spec.d.ts +0 -1
  335. package/testing/jest/jest-29/test/jest-serializer.spec.d.ts +0 -1
  336. package/testing/jest/jest-29/test/jest-setup-test-framework.spec.d.ts +0 -1
  337. package/testing/jest/jest-apis.d.ts +0 -86
  338. package/testing/jest/jest-facade.d.ts +0 -74
  339. package/testing/jest/jest-stencil-connector.d.ts +0 -65
  340. package/testing/jest/test/jest-stencil-connector.spec.d.ts +0 -1
  341. package/testing/jest-environment.js +0 -3
  342. package/testing/jest-preprocessor.js +0 -3
  343. package/testing/jest-preset.js +0 -2
  344. package/testing/jest-runner.js +0 -3
  345. package/testing/jest-setuptestframework.js +0 -3
  346. package/testing/mock-fetch.d.ts +0 -11
  347. package/testing/mocks.d.ts +0 -56
  348. package/testing/package.json +0 -8
  349. package/testing/puppeteer/index.d.ts +0 -2
  350. package/testing/puppeteer/puppeteer-browser.d.ts +0 -6
  351. package/testing/puppeteer/puppeteer-declarations.d.ts +0 -414
  352. package/testing/puppeteer/puppeteer-element.d.ts +0 -67
  353. package/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
  354. package/testing/puppeteer/puppeteer-events.d.ts +0 -21
  355. package/testing/puppeteer/puppeteer-page.d.ts +0 -2
  356. package/testing/puppeteer/puppeteer-screenshot.d.ts +0 -27
  357. package/testing/puppeteer/test/puppeteer-screenshot.spec.d.ts +0 -1
  358. package/testing/reset-build-conditionals.d.ts +0 -12
  359. package/testing/spec-page.d.ts +0 -7
  360. package/testing/test/testing-utils.spec.d.ts +0 -1
  361. package/testing/test-transpile.d.ts +0 -2
  362. package/testing/testing-logger.d.ts +0 -26
  363. package/testing/testing-sys.d.ts +0 -6
  364. package/testing/testing-utils.d.ts +0 -80
  365. package/testing/testing.d.ts +0 -2
  366. /package/{internal → dist/declarations}/stencil-ext-modules.d.ts +0 -0
  367. /package/{internal → dist/declarations}/stencil-public-docs.d.ts +0 -0
  368. /package/{screenshot/compare/build/index.esm.js → dist/declarations/stencil-public-runtime.js} +0 -0
@@ -0,0 +1,1277 @@
1
+ //#region src/declarations/stencil-public-runtime.d.ts
2
+ interface UserBuildConditionals {
3
+ isDev: boolean;
4
+ isBrowser: boolean;
5
+ isServer: boolean;
6
+ isTesting: boolean;
7
+ }
8
+ type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
9
+ type ErrorHandler = (err: any, element?: HTMLElement) => void;
10
+ type TagTransformer = (tag: string) => string;
11
+ interface ComponentInterface {
12
+ connectedCallback?(): void;
13
+ disconnectedCallback?(): void;
14
+ componentWillRender?(): Promise<void> | void;
15
+ componentDidRender?(): void;
16
+ /**
17
+ * The component is about to load and it has not
18
+ * rendered yet.
19
+ *
20
+ * This is the best place to make any data updates
21
+ * before the first render.
22
+ *
23
+ * componentWillLoad will only be called once.
24
+ */
25
+ componentWillLoad?(): Promise<void> | void;
26
+ /**
27
+ * The component has loaded and has already rendered.
28
+ *
29
+ * Updating data in this method will cause the
30
+ * component to re-render.
31
+ *
32
+ * componentDidLoad will only be called once.
33
+ */
34
+ componentDidLoad?(): void;
35
+ /**
36
+ * A `@Prop` or `@State` property changed and a rerender is about to be requested.
37
+ *
38
+ * Called multiple times throughout the life of
39
+ * the component as its properties change.
40
+ *
41
+ * componentShouldUpdate is not called on the first render.
42
+ */
43
+ componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
44
+ /**
45
+ * The component is about to update and re-render.
46
+ *
47
+ * Called multiple times throughout the life of
48
+ * the component as it updates.
49
+ *
50
+ * componentWillUpdate is not called on the first render.
51
+ */
52
+ componentWillUpdate?(): Promise<void> | void;
53
+ /**
54
+ * The component has just re-rendered.
55
+ *
56
+ * Called multiple times throughout the life of
57
+ * the component as it updates.
58
+ *
59
+ * componentWillUpdate is not called on the
60
+ * first render.
61
+ */
62
+ componentDidUpdate?(): void;
63
+ render?(): any;
64
+ [memberName: string]: any;
65
+ }
66
+ /**
67
+ * Utilities for working with functional Stencil components. An object
68
+ * conforming to this interface is passed by the Stencil runtime as the third
69
+ * argument to a functional component, allowing component authors to work with
70
+ * features like children.
71
+ *
72
+ * The children of a functional component will be passed as the second
73
+ * argument, so a functional component which uses these utils to transform its
74
+ * children might look like the following:
75
+ *
76
+ * ```ts
77
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
78
+ * utils.map(children, child => ({
79
+ * ...child,
80
+ * vattrs: {
81
+ * ...child.vattrs,
82
+ * class: `${child.vattrs.class} add-class`
83
+ * }
84
+ * }))
85
+ * );
86
+ * ```
87
+ *
88
+ * For more see the Stencil documentation, here:
89
+ * https://stenciljs.com/docs/functional-components
90
+ */
91
+ interface FunctionalUtilities {
92
+ /**
93
+ * Utility for reading the children of a functional component at runtime.
94
+ * Since the Stencil runtime uses a different interface for children it is
95
+ * not recommended to read the children directly, and is preferable to use
96
+ * this utility to, for instance, perform a side effect for each child.
97
+ */
98
+ forEach: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => void) => void;
99
+ /**
100
+ * Utility for transforming the children of a functional component. Given an
101
+ * array of children and a callback this will return a list of the results of
102
+ * passing each child to the supplied callback.
103
+ */
104
+ map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
105
+ }
106
+ interface FunctionalComponent<T = {}> {
107
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
108
+ }
109
+ /**
110
+ * A Child VDOM node
111
+ *
112
+ * This has most of the same properties as {@link VNode} but friendlier names
113
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
114
+ * order to provide a friendlier public interface for users of the
115
+ * {@link FunctionalUtilities}).
116
+ */
117
+ interface ChildNode$1 {
118
+ vtag?: string | number | Function;
119
+ vkey?: string | number;
120
+ vtext?: string;
121
+ vchildren?: VNode[];
122
+ vattrs?: any;
123
+ vname?: string;
124
+ }
125
+ /**
126
+ * A virtual DOM node
127
+ */
128
+ interface VNode {
129
+ $flags$: number;
130
+ $tag$: string | number | Function;
131
+ $elm$: any;
132
+ $text$: string;
133
+ $children$: VNode[];
134
+ $attrs$?: any;
135
+ $name$?: string;
136
+ $key$?: string | number;
137
+ }
138
+ interface CustomElementsDefineOptions {
139
+ exclude?: string[];
140
+ syncQueue?: boolean;
141
+ /** @deprecated in-favour of `setTagTransformer` and `transformTag` */
142
+ transformTagName?: (tagName: string) => string;
143
+ jmp?: (c: Function) => any;
144
+ raf?: (c: FrameRequestCallback) => number;
145
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
146
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
147
+ ce?: (eventName: string, opts?: any) => CustomEvent;
148
+ }
149
+ //#endregion
150
+ //#region src/declarations/stencil-public-compiler.d.ts
151
+ interface HydrateDocumentOptions {
152
+ /**
153
+ * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
154
+ * a random ID will be generated
155
+ */
156
+ buildId?: string;
157
+ /**
158
+ * Sets the `href` attribute on the `<link rel="canonical">`
159
+ * tag within the `<head>`. If the value is not defined it will
160
+ * ensure a canonical link tag is no included in the `<head>`.
161
+ */
162
+ canonicalUrl?: string;
163
+ /**
164
+ * Include the HTML comments and attributes used by the client-side
165
+ * JavaScript to read the structure of the HTML and rebuild each
166
+ * component. Defaults to `true`.
167
+ */
168
+ clientHydrateAnnotations?: boolean;
169
+ /**
170
+ * Constrain `setTimeout()` to 1ms, but still async. Also
171
+ * only allows `setInterval()` to fire once, also constrained to 1ms.
172
+ * Defaults to `true`.
173
+ */
174
+ constrainTimeouts?: boolean;
175
+ /**
176
+ * Sets `document.cookie`
177
+ */
178
+ cookie?: string;
179
+ /**
180
+ * Sets the `dir` attribute on the top level `<html>`.
181
+ */
182
+ direction?: string;
183
+ /**
184
+ * Component tag names listed here will not be prerendered, nor will
185
+ * hydrated on the client-side. Components listed here will be ignored
186
+ * as custom elements and treated no differently than a `<div>`.
187
+ */
188
+ excludeComponents?: string[];
189
+ /**
190
+ * Sets the `lang` attribute on the top level `<html>`.
191
+ */
192
+ language?: string;
193
+ /**
194
+ * Maximum number of components to hydrate on one page. Defaults to `300`.
195
+ */
196
+ maxHydrateCount?: number;
197
+ /**
198
+ * Sets `document.referrer`
199
+ */
200
+ referrer?: string;
201
+ /**
202
+ * Removes every `<script>` element found in the `document`. Defaults to `false`.
203
+ */
204
+ removeScripts?: boolean;
205
+ /**
206
+ * Removes CSS not used by elements within the `document`. Defaults to `true`.
207
+ */
208
+ removeUnusedStyles?: boolean;
209
+ /**
210
+ * The url the runtime uses for the resources, such as the assets directory.
211
+ */
212
+ resourcesUrl?: string;
213
+ /**
214
+ * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
215
+ */
216
+ runtimeLogging?: boolean;
217
+ /**
218
+ * Component tags listed here will only be prerendered or server-side-rendered
219
+ * and will not be client-side hydrated. This is useful for components that
220
+ * are not dynamic and do not need to be defined as a custom element within the
221
+ * browser. For example, a header or footer component would be a good example that
222
+ * may not require any client-side JavaScript.
223
+ */
224
+ staticComponents?: string[];
225
+ /**
226
+ * The amount of milliseconds to wait for a page to finish rendering until
227
+ * a timeout error is thrown. Defaults to `15000`.
228
+ */
229
+ timeout?: number;
230
+ /**
231
+ * Sets `document.title`.
232
+ */
233
+ title?: string;
234
+ /**
235
+ * Sets `location.href`
236
+ */
237
+ url?: string;
238
+ /**
239
+ * Sets `navigator.userAgent`
240
+ */
241
+ userAgent?: string;
242
+ /**
243
+ * Configure how Stencil serializes the components shadow root.
244
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
245
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
246
+ * and the shadow DOM will be created during client-side hydration.
247
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
248
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
249
+ *
250
+ * Examples:
251
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
252
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
253
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
254
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
255
+ * - `'scoped'` Render all components as `scoped`
256
+ * - `false` disables shadow root serialization
257
+ *
258
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
259
+ * @default 'declarative-shadow-dom'
260
+ */
261
+ serializeShadowRoot?: 'declarative-shadow-dom' | 'scoped' | {
262
+ 'declarative-shadow-dom'?: string[];
263
+ scoped?: string[];
264
+ default: 'declarative-shadow-dom' | 'scoped';
265
+ } | boolean;
266
+ }
267
+ interface SerializeDocumentOptions extends HydrateDocumentOptions {
268
+ /**
269
+ * Runs after the `document` has been hydrated.
270
+ */
271
+ afterHydrate?(document: any): any | Promise<any>;
272
+ /**
273
+ * Sets an approximate line width the HTML should attempt to stay within.
274
+ * Note that this is "approximate", in that HTML may often not be able
275
+ * to be split at an exact line width. Additionally, new lines created
276
+ * is where HTML naturally already has whitespace, such as before an
277
+ * attribute or spaces between words. Defaults to `100`.
278
+ */
279
+ approximateLineWidth?: number;
280
+ /**
281
+ * Runs before the `document` has been hydrated.
282
+ */
283
+ beforeHydrate?(document: any): any | Promise<any>;
284
+ /**
285
+ * Format the HTML in a nicely indented format.
286
+ * Defaults to `false`.
287
+ */
288
+ prettyHtml?: boolean;
289
+ /**
290
+ * Remove quotes from attribute values when possible.
291
+ * Defaults to `true`.
292
+ */
293
+ removeAttributeQuotes?: boolean;
294
+ /**
295
+ * Remove the `=""` from standardized `boolean` attributes,
296
+ * such as `hidden` or `checked`. Defaults to `true`.
297
+ */
298
+ removeBooleanAttributeQuotes?: boolean;
299
+ /**
300
+ * Remove these standardized attributes when their value is empty:
301
+ * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
302
+ */
303
+ removeEmptyAttributes?: boolean;
304
+ /**
305
+ * Remove HTML comments. Defaults to `true`.
306
+ */
307
+ removeHtmlComments?: boolean;
308
+ /**
309
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
310
+ * generate a complete HTML document, or false to render only the component.
311
+ * @default true
312
+ */
313
+ fullDocument?: boolean;
314
+ /**
315
+ * Style modes to render the component in.
316
+ * @see https://stenciljs.com/docs/styling#style-modes
317
+ */
318
+ modes?: ResolutionHandler[];
319
+ }
320
+ interface HydrateFactoryOptions extends SerializeDocumentOptions {
321
+ serializeToHtml: boolean;
322
+ destroyWindow: boolean;
323
+ destroyDocument: boolean;
324
+ }
325
+ interface Diagnostic {
326
+ absFilePath?: string | undefined;
327
+ code?: string;
328
+ columnNumber?: number | undefined;
329
+ debugText?: string;
330
+ header?: string;
331
+ language?: string;
332
+ level: 'error' | 'warn' | 'info' | 'log' | 'debug';
333
+ lineNumber?: number | undefined;
334
+ lines: PrintLine[];
335
+ messageText: string;
336
+ relFilePath?: string | undefined;
337
+ type: string;
338
+ }
339
+ //#endregion
340
+ //#region src/declarations/stencil-private.d.ts
341
+ interface PrintLine {
342
+ lineIndex: number;
343
+ lineNumber: number;
344
+ text: string;
345
+ errorCharStart: number;
346
+ errorLength?: number;
347
+ }
348
+ interface BuildFeatures {
349
+ style: boolean;
350
+ mode: boolean;
351
+ formAssociated: boolean;
352
+ shadowDom: boolean;
353
+ shadowDelegatesFocus: boolean;
354
+ shadowSlotAssignmentManual: boolean;
355
+ scoped: boolean;
356
+ /**
357
+ * Every component has a render function
358
+ */
359
+ allRenderFn: boolean;
360
+ /**
361
+ * At least one component has a render function
362
+ */
363
+ hasRenderFn: boolean;
364
+ vdomRender: boolean;
365
+ vdomAttribute: boolean;
366
+ vdomClass: boolean;
367
+ vdomFunctional: boolean;
368
+ vdomKey: boolean;
369
+ vdomListener: boolean;
370
+ vdomPropOrAttr: boolean;
371
+ vdomRef: boolean;
372
+ vdomStyle: boolean;
373
+ vdomText: boolean;
374
+ vdomXlink: boolean;
375
+ slotRelocation: boolean;
376
+ slot: boolean;
377
+ svg: boolean;
378
+ element: boolean;
379
+ event: boolean;
380
+ hostListener: boolean;
381
+ hostListenerTargetWindow: boolean;
382
+ hostListenerTargetDocument: boolean;
383
+ hostListenerTargetBody: boolean;
384
+ /**
385
+ * @deprecated Prevented from new apps, but left in for older collections
386
+ */
387
+ hostListenerTargetParent: boolean;
388
+ hostListenerTarget: boolean;
389
+ method: boolean;
390
+ prop: boolean;
391
+ propChangeCallback: boolean;
392
+ propMutable: boolean;
393
+ state: boolean;
394
+ member: boolean;
395
+ updatable: boolean;
396
+ propBoolean: boolean;
397
+ propNumber: boolean;
398
+ propString: boolean;
399
+ serializer: boolean;
400
+ deserializer: boolean;
401
+ lifecycle: boolean;
402
+ asyncLoading: boolean;
403
+ observeAttribute: boolean;
404
+ reflect: boolean;
405
+ taskQueue: boolean;
406
+ }
407
+ interface BuildConditionals extends Partial<BuildFeatures> {
408
+ hotModuleReplacement?: boolean;
409
+ isDebug?: boolean;
410
+ isTesting?: boolean;
411
+ isDev?: boolean;
412
+ devTools?: boolean;
413
+ invisiblePrehydration?: boolean;
414
+ hydrateServerSide?: boolean;
415
+ hydrateClientSide?: boolean;
416
+ lifecycleDOMEvents?: boolean;
417
+ cssAnnotations?: boolean;
418
+ lazyLoad?: boolean;
419
+ profile?: boolean;
420
+ constructableCSS?: boolean;
421
+ appendChildSlotFix?: boolean;
422
+ slotChildNodesFix?: boolean;
423
+ scopedSlotTextContentFix?: boolean;
424
+ cloneNodeFix?: boolean;
425
+ hydratedAttribute?: boolean;
426
+ hydratedClass?: boolean;
427
+ hydratedSelectorName?: string;
428
+ initializeNextTick?: boolean;
429
+ shadowDomShim?: boolean;
430
+ asyncQueue?: boolean;
431
+ transformTagName?: boolean;
432
+ additionalTagTransformers?: boolean | 'prod';
433
+ attachStyles?: boolean;
434
+ experimentalSlotFixes?: boolean;
435
+ experimentalScopedSlotChanges?: boolean;
436
+ addGlobalStyleToComponents?: boolean;
437
+ }
438
+ interface ComponentConstructor {
439
+ is?: string;
440
+ properties?: ComponentConstructorProperties;
441
+ watchers?: ComponentConstructorChangeHandlers;
442
+ events?: ComponentConstructorEvent[];
443
+ listeners?: ComponentConstructorListener[];
444
+ style?: string;
445
+ styleId?: string;
446
+ encapsulation?: ComponentConstructorEncapsulation;
447
+ observedAttributes?: string[];
448
+ cmpMeta?: ComponentRuntimeMeta;
449
+ isProxied?: boolean;
450
+ isStyleRegistered?: boolean;
451
+ serializers?: ComponentConstructorChangeHandlers;
452
+ deserializers?: ComponentConstructorChangeHandlers;
453
+ }
454
+ /**
455
+ * A mapping from class member names to a list of methods which are watching
456
+ * them.
457
+ */
458
+ interface ComponentConstructorChangeHandlers {
459
+ [propName: string]: {
460
+ [methodName: string]: number;
461
+ }[];
462
+ }
463
+ interface ComponentNativeConstructor extends ComponentConstructor {
464
+ cmpMeta: ComponentRuntimeMeta;
465
+ }
466
+ type ComponentConstructorEncapsulation = 'shadow' | 'scoped' | 'none';
467
+ interface ComponentConstructorProperties {
468
+ [propName: string]: ComponentConstructorProperty;
469
+ }
470
+ interface ComponentConstructorProperty {
471
+ attribute?: string;
472
+ elementRef?: boolean;
473
+ method?: boolean;
474
+ mutable?: boolean;
475
+ reflect?: boolean;
476
+ state?: boolean;
477
+ type?: ComponentConstructorPropertyType;
478
+ watchCallbacks?: string[];
479
+ }
480
+ type ComponentConstructorPropertyType = StringConstructor | BooleanConstructor | NumberConstructor | 'string' | 'boolean' | 'number';
481
+ interface ComponentConstructorEvent {
482
+ name: string;
483
+ method: string;
484
+ bubbles: boolean;
485
+ cancelable: boolean;
486
+ composed: boolean;
487
+ }
488
+ interface ComponentConstructorListener {
489
+ name: string;
490
+ method: string;
491
+ capture?: boolean;
492
+ passive?: boolean;
493
+ }
494
+ /**
495
+ * An interface extending `HTMLElement` which describes the fields added onto
496
+ * host HTML elements by the Stencil runtime.
497
+ */
498
+ interface HostElement extends HTMLElement {
499
+ connectedCallback?: () => void;
500
+ attributeChangedCallback?: (attribName: string, oldVal: string, newVal: string, namespace: string) => void;
501
+ disconnectedCallback?: () => void;
502
+ host?: Element;
503
+ forceUpdate?: () => void;
504
+ __stencil__getHostRef?: () => HostRef;
505
+ /**
506
+ * Unique stencil id for this element
507
+ */
508
+ ['s-id']?: string;
509
+ /**
510
+ * Content Reference:
511
+ * Reference to the HTML Comment that's placed inside of the
512
+ * host element's original content. This comment is used to
513
+ * always represent where host element's light dom is.
514
+ */
515
+ ['s-cr']?: RenderNode;
516
+ /**
517
+ * Lifecycle ready
518
+ */
519
+ ['s-lr']?: boolean;
520
+ /**
521
+ * A reference to the `ElementInternals` object for the current host
522
+ *
523
+ * This is used for maintaining a reference to the object between HMR
524
+ * refreshes in the lazy build.
525
+ *
526
+ * "stencil-element-internals"
527
+ */
528
+ ['s-ei']?: ElementInternals;
529
+ /**
530
+ * On Render Callbacks:
531
+ * Array of callbacks to fire off after it has rendered.
532
+ */
533
+ ['s-rc']?: (() => void)[];
534
+ /**
535
+ * Scope Id
536
+ * The scope id of this component when using scoped css encapsulation
537
+ * or using shadow dom but the browser doesn't support it
538
+ */
539
+ ['s-sc']?: string;
540
+ /**
541
+ * Scope Ids
542
+ * All the possible scope ids of this component when using scoped css encapsulation
543
+ * or using shadow dom but the browser doesn't support it
544
+ */
545
+ ['s-scs']?: string[];
546
+ /**
547
+ * Hot Module Replacement, dev mode only
548
+ *
549
+ * This function should be defined by the HMR-supporting runtime and should
550
+ * do the work of actually updating the component in-place.
551
+ */
552
+ ['s-hmr']?: (versionId: string) => void;
553
+ /**
554
+ * A list of nested nested hydration promises that
555
+ * must be resolved for the top, ancestor component to be fully hydrated
556
+ */
557
+ ['s-p']?: Promise<void>[];
558
+ componentOnReady?: () => Promise<this>;
559
+ }
560
+ interface HydrateResults {
561
+ buildId: string;
562
+ diagnostics: Diagnostic[];
563
+ url: string;
564
+ host: string | null;
565
+ hostname: string | null;
566
+ href: string | null;
567
+ port: string | null;
568
+ pathname: string | null;
569
+ search: string | null;
570
+ hash: string | null;
571
+ html: string | null;
572
+ components: HydrateComponent[];
573
+ anchors: HydrateAnchorElement[];
574
+ imgs: HydrateImgElement[];
575
+ scripts: HydrateScriptElement[];
576
+ styles: HydrateStyleElement[];
577
+ staticData: HydrateStaticData[];
578
+ title: string | null;
579
+ hydratedCount: number;
580
+ httpStatus: number | null;
581
+ }
582
+ interface HydrateComponent {
583
+ tag: string;
584
+ mode: string;
585
+ count: number;
586
+ depth: number;
587
+ }
588
+ interface HydrateElement {
589
+ [attrName: string]: string | undefined;
590
+ }
591
+ interface HydrateAnchorElement extends HydrateElement {
592
+ href?: string;
593
+ target?: string;
594
+ }
595
+ interface HydrateImgElement extends HydrateElement {
596
+ src?: string;
597
+ }
598
+ interface HydrateScriptElement extends HydrateElement {
599
+ src?: string;
600
+ type?: string;
601
+ }
602
+ interface HydrateStyleElement extends HydrateElement {
603
+ id?: string;
604
+ href?: string;
605
+ content?: string;
606
+ }
607
+ interface HydrateStaticData {
608
+ id: string;
609
+ type: string;
610
+ content: string;
611
+ }
612
+ /**
613
+ * Generic node that represents all of the
614
+ * different types of nodes we'd see when rendering
615
+ */
616
+ interface RenderNode extends HostElement {
617
+ /**
618
+ * Shadow root's host
619
+ */
620
+ host?: Element;
621
+ /**
622
+ * On Ref Function:
623
+ * Callback function to be called when the slotted node ref is ready.
624
+ */
625
+ ['s-rf']?: (elm: Element) => unknown;
626
+ /**
627
+ * Is initially hidden
628
+ * Whether this node was originally rendered with the `hidden` attribute.
629
+ *
630
+ * Used to reset the `hidden` state of a node during slot relocation.
631
+ */
632
+ ['s-ih']?: boolean;
633
+ /**
634
+ * Is Content Reference Node:
635
+ * This node is a content reference node.
636
+ */
637
+ ['s-cn']?: boolean;
638
+ /**
639
+ * Is a `slot` node when `shadow: false` (or `scoped: true`).
640
+ *
641
+ * This is a node (either empty text-node or `<slot-fb>` element)
642
+ * that represents where a `<slot>` is located in the original JSX.
643
+ */
644
+ ['s-sr']?: boolean;
645
+ /**
646
+ * Slot name of either the slot itself or the slotted node
647
+ */
648
+ ['s-sn']?: string;
649
+ /**
650
+ * Host element tag name:
651
+ * The tag name of the host element that this
652
+ * node was created in.
653
+ */
654
+ ['s-hn']?: string;
655
+ /**
656
+ * Slot host tag name:
657
+ * This is the tag name of the element where this node
658
+ * has been moved to during slot relocation.
659
+ *
660
+ * This allows us to check if the node has been moved and prevent
661
+ * us from thinking a node _should_ be moved when it may already be in
662
+ * its final destination.
663
+ *
664
+ * This value is set to `undefined` whenever the node is put back into its original location.
665
+ */
666
+ ['s-sh']?: string;
667
+ /**
668
+ * Original Location Reference:
669
+ * A reference pointing to the comment
670
+ * which represents the original location
671
+ * before it was moved to its slot.
672
+ */
673
+ ['s-ol']?: RenderNode;
674
+ /**
675
+ * Node reference:
676
+ * This is a reference from an original location node
677
+ * back to the node that's been moved around.
678
+ */
679
+ ['s-nr']?: PatchedSlotNode | RenderNode;
680
+ /**
681
+ * Original Order:
682
+ * During SSR; a number representing the order of a slotted node
683
+ */
684
+ ['s-oo']?: number;
685
+ /**
686
+ * Scope Id
687
+ */
688
+ ['s-si']?: string;
689
+ /**
690
+ * Host Id (hydrate only)
691
+ */
692
+ ['s-host-id']?: number;
693
+ /**
694
+ * Node Id (hydrate only)
695
+ */
696
+ ['s-node-id']?: number;
697
+ /**
698
+ * Used to know the components encapsulation.
699
+ * empty "" for shadow, "c" from scoped
700
+ */
701
+ ['s-en']?: '' | /*shadow*/'c';
702
+ /**
703
+ * On a `scoped: true` component
704
+ * with `experimentalSlotFixes` flag enabled,
705
+ * returns the internal `childNodes` of the component
706
+ */
707
+ readonly __childNodes?: NodeListOf<ChildNode>;
708
+ /**
709
+ * On a `scoped: true` component
710
+ * with `experimentalSlotFixes` flag enabled,
711
+ * returns the internal `children` of the component
712
+ */
713
+ readonly __children?: HTMLCollectionOf<Element>;
714
+ /**
715
+ * On a `scoped: true` component
716
+ * with `experimentalSlotFixes` flag enabled,
717
+ * returns the internal `firstChild` of the component
718
+ */
719
+ readonly __firstChild?: ChildNode;
720
+ /**
721
+ * On a `scoped: true` component
722
+ * with `experimentalSlotFixes` flag enabled,
723
+ * returns the internal `lastChild` of the component
724
+ */
725
+ readonly __lastChild?: ChildNode;
726
+ /**
727
+ * On a `scoped: true` component
728
+ * with `experimentalSlotFixes` flag enabled,
729
+ * returns the internal `textContent` of the component
730
+ */
731
+ __textContent?: string;
732
+ /**
733
+ * On a `scoped: true` component
734
+ * with `experimentalSlotFixes` flag enabled,
735
+ * gives access to the original `append` method
736
+ */
737
+ __append?: (...nodes: (Node | string)[]) => void;
738
+ /**
739
+ * On a `scoped: true` component
740
+ * with `experimentalSlotFixes` flag enabled,
741
+ * gives access to the original `prepend` method
742
+ */
743
+ __prepend?: (...nodes: (Node | string)[]) => void;
744
+ /**
745
+ * On a `scoped: true` component
746
+ * with `experimentalSlotFixes` flag enabled,
747
+ * gives access to the original `appendChild` method
748
+ */
749
+ __appendChild?: <T extends Node>(newChild: T) => T;
750
+ /**
751
+ * On a `scoped: true` component
752
+ * with `experimentalSlotFixes` flag enabled,
753
+ * gives access to the original `insertBefore` method
754
+ */
755
+ __insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
756
+ /**
757
+ * On a `scoped: true` component
758
+ * with `experimentalSlotFixes` flag enabled,
759
+ * gives access to the original `removeChild` method
760
+ */
761
+ __removeChild?: <T extends Node>(child: T) => T;
762
+ }
763
+ interface PatchedSlotNode extends Node {
764
+ /**
765
+ * Slot name
766
+ */
767
+ ['s-sn']?: string;
768
+ /**
769
+ * Original Location Reference:
770
+ * A reference pointing to the comment
771
+ * which represents the original location
772
+ * before it was moved to its slot.
773
+ */
774
+ ['s-ol']?: RenderNode;
775
+ /**
776
+ * Slot host tag name:
777
+ * This is the tag name of the element where this node
778
+ * has been moved to during slot relocation.
779
+ *
780
+ * This allows us to check if the node has been moved and prevent
781
+ * us from thinking a node _should_ be moved when it may already be in
782
+ * its final destination.
783
+ *
784
+ * This value is set to `undefined` whenever the node is put back into its original location.
785
+ */
786
+ ['s-sh']?: string;
787
+ /**
788
+ * Is a `slot` node when `shadow: false` (or `scoped: true`).
789
+ *
790
+ * This is a node (either empty text-node or `<slot-fb>` element)
791
+ * that represents where a `<slot>` is located in the original JSX.
792
+ */
793
+ ['s-sr']?: boolean;
794
+ /**
795
+ * On a `scoped: true` component
796
+ * with `experimentalSlotFixes` flag enabled,
797
+ * returns the actual `parentNode` of the component
798
+ */
799
+ __parentNode?: RenderNode;
800
+ /**
801
+ * On a `scoped: true` component
802
+ * with `experimentalSlotFixes` flag enabled,
803
+ * returns the actual `nextSibling` of the component
804
+ */
805
+ __nextSibling?: RenderNode;
806
+ /**
807
+ * On a `scoped: true` component
808
+ * with `experimentalSlotFixes` flag enabled,
809
+ * returns the actual `previousSibling` of the component
810
+ */
811
+ __previousSibling?: RenderNode;
812
+ /**
813
+ * On a `scoped: true` component
814
+ * with `experimentalSlotFixes` flag enabled,
815
+ * returns the actual `nextElementSibling` of the component
816
+ */
817
+ __nextElementSibling?: RenderNode;
818
+ /**
819
+ * On a `scoped: true` component
820
+ * with `experimentalSlotFixes` flag enabled,
821
+ * returns the actual `nextElementSibling` of the component
822
+ */
823
+ __previousElementSibling?: RenderNode;
824
+ }
825
+ type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
826
+ type LazyBundleRuntimeData = [/** bundleIds */string, ComponentRuntimeMetaCompact[]];
827
+ type ComponentRuntimeMetaCompact = [/** flags */number, /** tagname */string, /** members */{
828
+ [memberName: string]: ComponentRuntimeMember;
829
+ }?, /** listeners */ComponentRuntimeHostListener[]?, /** watchers */ComponentConstructorChangeHandlers?, /** serializers */ComponentConstructorChangeHandlers?, /** deserializers */ComponentConstructorChangeHandlers?];
830
+ /**
831
+ * Runtime metadata for a Stencil component
832
+ */
833
+ interface ComponentRuntimeMeta {
834
+ /**
835
+ * This number is used to hold a series of bitflags for various features we
836
+ * support on components. The flags which this value is intended to store are
837
+ * documented in the `CMP_FLAGS` enum.
838
+ */
839
+ $flags$: number;
840
+ /**
841
+ * Just what it says on the tin - the tag name for the component, as set in
842
+ * the `@Component` decorator.
843
+ */
844
+ $tagName$: string;
845
+ /**
846
+ * A map of the component's members, which could include fields decorated
847
+ * with `@Prop`, `@State`, etc as well as methods.
848
+ */
849
+ $members$?: ComponentRuntimeMembers;
850
+ /**
851
+ * Information about listeners on the component.
852
+ */
853
+ $listeners$?: ComponentRuntimeHostListener[];
854
+ /**
855
+ * Tuples containing information about `@Prop` fields on the component which
856
+ * are set to be reflected (i.e. kept in sync) as HTML attributes when
857
+ * updated.
858
+ */
859
+ $attrsToReflect$?: ComponentRuntimeReflectingAttr[];
860
+ /**
861
+ * Information about which class members have watchers attached on the component.
862
+ */
863
+ $watchers$?: ComponentConstructorChangeHandlers;
864
+ /**
865
+ * A bundle ID used for lazy loading.
866
+ */
867
+ $lazyBundleId$?: string;
868
+ /**
869
+ * Information about which class members have prop > attribute serializers attached on the component.
870
+ */
871
+ $serializers$?: ComponentConstructorChangeHandlers;
872
+ /**
873
+ * Information about which class members have attribute > prop deserializers attached on the component.
874
+ */
875
+ $deserializers$?: ComponentConstructorChangeHandlers;
876
+ }
877
+ /**
878
+ * A mapping of the names of members on the component to some runtime-specific
879
+ * information about them.
880
+ */
881
+ interface ComponentRuntimeMembers {
882
+ [memberName: string]: ComponentRuntimeMember;
883
+ }
884
+ /**
885
+ * A tuple with information about a class member that's relevant at runtime.
886
+ * The fields are:
887
+ *
888
+ * 1. A number used to hold bitflags for component members. The bit flags which
889
+ * this is intended to store are documented in the `MEMBER_FLAGS` enum.
890
+ * 2. The attribute name to observe.
891
+ */
892
+ type ComponentRuntimeMember = [number, string?];
893
+ /**
894
+ * A tuple holding information about a host listener which is relevant at
895
+ * runtime. The field are:
896
+ *
897
+ * 1. A number used to hold bitflags for listeners. The bit flags which this is
898
+ * intended to store are documented in the `LISTENER_FLAGS` enum.
899
+ * 2. The event name.
900
+ * 3. The method name.
901
+ */
902
+ type ComponentRuntimeHostListener = [number, string, string];
903
+ /**
904
+ * A tuple containing information about props which are "reflected" at runtime,
905
+ * meaning that HTML attributes on the component instance are kept in sync with
906
+ * the prop value.
907
+ *
908
+ * The fields are:
909
+ *
910
+ * 1. the prop name
911
+ * 2. the prop attribute.
912
+ */
913
+ type ComponentRuntimeReflectingAttr = [string, string | undefined];
914
+ /**
915
+ * A runtime component reference, consistent of either a host element _or_ an
916
+ * empty object. This is used in particular in a few different places as the
917
+ * keys in a `WeakMap` which maps {@link HostElement} instances to their
918
+ * associated {@link HostRef} instance.
919
+ */
920
+ type RuntimeRef = HostElement | {
921
+ __stencil__getHostRef?: () => HostRef;
922
+ };
923
+ /**
924
+ * Interface used to track an Element, it's virtual Node (`VNode`), and other data
925
+ */
926
+ interface HostRef {
927
+ $ancestorComponent$?: HostElement;
928
+ $flags$: number;
929
+ $cmpMeta$: ComponentRuntimeMeta;
930
+ $hostElement$: HostElement;
931
+ $instanceValues$?: Map<string, any>;
932
+ $serializerValues$?: Map<string, string>;
933
+ $lazyInstance$?: ComponentInterface;
934
+ /**
935
+ * A list of callback functions called immediately after a lazy component module has been fetched.
936
+ */
937
+ $fetchedCbList$?: ((elm: HostElement) => void)[];
938
+ /**
939
+ * A promise that gets resolved if `BUILD.asyncLoading` is enabled and after the `componentDidLoad`
940
+ * and before the `componentDidUpdate` lifecycle events are triggered.
941
+ */
942
+ $onReadyPromise$?: Promise<HostElement>;
943
+ /**
944
+ * A callback which resolves {@link HostRef.$onReadyPromise$}
945
+ * @param elm host element
946
+ */
947
+ $onReadyResolve$?: (elm: HostElement) => void;
948
+ /**
949
+ * A promise which resolves with the host component once it has finished rendering
950
+ * for the first time. This is primarily used to wait for the first `update` to be
951
+ * called on a component.
952
+ */
953
+ $onInstancePromise$?: Promise<HostElement>;
954
+ /**
955
+ * A callback which resolves {@link HostRef.$onInstancePromise$}
956
+ * @param elm host element
957
+ */
958
+ $onInstanceResolve$?: (elm: HostElement) => void;
959
+ /**
960
+ * A promise which resolves when the component has finished rendering for the first time.
961
+ * It is called after {@link HostRef.$onInstancePromise$} resolves.
962
+ */
963
+ $onRenderResolve$?: () => void;
964
+ $vnode$?: VNode;
965
+ $queuedListeners$?: [string, any][];
966
+ $rmListeners$?: (() => void)[];
967
+ $modeName$?: string;
968
+ $renderCount$?: number;
969
+ /**
970
+ * Defer connectedCallback until after first render for components with slot relocation.
971
+ */
972
+ $deferredConnectedCallback$?: boolean;
973
+ }
974
+ interface PlatformRuntime {
975
+ /**
976
+ * This number is used to hold a series of bitflags for various features we
977
+ * support within the runtime. The flags which this value is intended to store are
978
+ * documented in the {@link PLATFORM_FLAGS} enum.
979
+ */
980
+ $flags$: number;
981
+ /**
982
+ * Holds a map of nodes to be hydrated.
983
+ */
984
+ $orgLocNodes$?: Map<string, RenderNode>;
985
+ /**
986
+ * Holds the resource url for given platform environment.
987
+ */
988
+ $resourcesUrl$: string;
989
+ /**
990
+ * The nonce value to be applied to all script/style tags at runtime.
991
+ * If `null`, the nonce attribute will not be applied.
992
+ */
993
+ $nonce$?: string | null;
994
+ /**
995
+ * A utility function that executes a given function and returns the result.
996
+ * @param c The callback function to execute
997
+ */
998
+ jmp: (c: Function) => any;
999
+ /**
1000
+ * A wrapper for {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame `requestAnimationFrame`}
1001
+ */
1002
+ raf: (c: FrameRequestCallback) => number;
1003
+ /**
1004
+ * A wrapper for {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener `addEventListener`}
1005
+ */
1006
+ ael: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1007
+ /**
1008
+ * A wrapper for {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener `removeEventListener`}
1009
+ */
1010
+ rel: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1011
+ /**
1012
+ * A wrapper for creating a {@link https://developer.mozilla.org/docs/Web/API/CustomEvent `CustomEvent`}
1013
+ */
1014
+ ce: (eventName: string, opts?: any) => CustomEvent;
1015
+ }
1016
+ type StyleMap = Map<string, CSSStyleSheet | string>;
1017
+ type ChildType = VNode | number | string;
1018
+ //#endregion
1019
+ //#region src/server/platform/h-async.d.ts
1020
+ declare const hAsync: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode | Promise<VNode>;
1021
+ //#endregion
1022
+ //#region src/server/platform/hydrate-app.d.ts
1023
+ declare function hydrateApp(win: Window & typeof globalThis, opts: HydrateFactoryOptions, results: HydrateResults, afterHydrate: (win: Window, opts: HydrateFactoryOptions, results: HydrateResults, resolve: (results: HydrateResults) => void) => void, resolve: (results: HydrateResults) => void): void;
1024
+ //#endregion
1025
+ //#region src/app-data/index.d.ts
1026
+ /**
1027
+ * A collection of default build flags for a Stencil project.
1028
+ *
1029
+ * This collection can be found throughout the Stencil codebase, often imported from the `virtual:app-data` module like so:
1030
+ * ```ts
1031
+ * import { BUILD } from 'virtual:app-data';
1032
+ * ```
1033
+ * and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated.
1034
+ *
1035
+ * e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like:
1036
+ * ```ts
1037
+ * if (BUILD.allRenderFn) {
1038
+ * // some code that will be eliminated if BUILD.allRenderFn is false
1039
+ * }
1040
+ * ```
1041
+ *
1042
+ * `virtual:app-data`, the module that `BUILD` is imported from, is an alias for the `@stencil/core/runtime/app-data`, and is
1043
+ * partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references
1044
+ * `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a
1045
+ * Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's
1046
+ * compile time. Such code can be found at `src/compiler/app-core/app-data.ts`.
1047
+ */
1048
+ declare const BUILD: BuildConditionals;
1049
+ declare const Env: {};
1050
+ declare const NAMESPACE: string;
1051
+ //#endregion
1052
+ //#region src/runtime/asset-path.d.ts
1053
+ declare const getAssetPath: (path: string) => string;
1054
+ declare const setAssetPath: (path: string) => string;
1055
+ //#endregion
1056
+ //#region src/runtime/bootstrap-custom-element.d.ts
1057
+ declare const defineCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => void;
1058
+ declare const proxyCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => any;
1059
+ declare const forceModeUpdate: (elm: RenderNode) => void;
1060
+ //#endregion
1061
+ //#region src/runtime/bootstrap-lazy.d.ts
1062
+ declare const bootstrapLazy: (lazyBundles: LazyBundlesRuntimeData, options?: CustomElementsDefineOptions) => void;
1063
+ //#endregion
1064
+ //#region src/runtime/connected-callback.d.ts
1065
+ declare const connectedCallback: (elm: HostElement) => void;
1066
+ //#endregion
1067
+ //#region src/runtime/disconnected-callback.d.ts
1068
+ declare const disconnectedCallback: (elm: HostElement) => Promise<void>;
1069
+ //#endregion
1070
+ //#region src/runtime/element.d.ts
1071
+ declare const getElement: (ref: any) => HostElement;
1072
+ //#endregion
1073
+ //#region src/runtime/event-emitter.d.ts
1074
+ declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
1075
+ emit: (detail: any) => CustomEvent<any>;
1076
+ };
1077
+ //#endregion
1078
+ //#region src/runtime/fragment.d.ts
1079
+ declare const Fragment: FunctionalComponent;
1080
+ //#endregion
1081
+ //#region src/runtime/host-listener.d.ts
1082
+ declare const addHostEventListeners: (elm: HostElement, hostRef: HostRef, listeners?: ComponentRuntimeHostListener[], attachParentListeners?: boolean) => void;
1083
+ //#endregion
1084
+ //#region src/runtime/mixin.d.ts
1085
+ type Ctor<T = {}> = new (...args: any[]) => T;
1086
+ declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
1087
+ //#endregion
1088
+ //#region src/runtime/mode.d.ts
1089
+ declare const setMode: (handler: ResolutionHandler) => number;
1090
+ declare const getMode: (ref: RuntimeRef) => string;
1091
+ //#endregion
1092
+ //#region src/runtime/nonce.d.ts
1093
+ /**
1094
+ * Assigns the given value to the nonce property on the runtime platform object.
1095
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1096
+ * @param nonce The value to be assigned to the platform nonce property.
1097
+ * @returns void
1098
+ */
1099
+ declare const setNonce: (nonce: string) => string;
1100
+ //#endregion
1101
+ //#region src/runtime/parse-property-value.d.ts
1102
+ /**
1103
+ * Parse a new property value for a given property type.
1104
+ *
1105
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1106
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1107
+ * 1. `any`, the type given to `propValue` in the function signature
1108
+ * 2. the type stored from `propType`.
1109
+ *
1110
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1111
+ *
1112
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1113
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1114
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1115
+ * ```tsx
1116
+ * <my-cmp prop-val={0}></my-cmp>
1117
+ * ```
1118
+ *
1119
+ * HTML prop values on the other hand, will always a string
1120
+ *
1121
+ * @param propValue the new value to coerce to some type
1122
+ * @param propType the type of the prop, expressed as a binary number
1123
+ * @param isFormAssociated whether the component is form-associated (optional)
1124
+ * @returns the parsed/coerced value
1125
+ */
1126
+ declare const parsePropertyValue: (propValue: unknown, propType: number, isFormAssociated?: boolean) => any;
1127
+ //#endregion
1128
+ //#region src/runtime/proxy-component.d.ts
1129
+ /**
1130
+ * Attach a series of runtime constructs to a compiled Stencil component
1131
+ * constructor, including getters and setters for the `@Prop` and `@State`
1132
+ * decorators, callbacks for when attributes change, and so on.
1133
+ *
1134
+ * On a lazy loaded component, this is wired up to both the class instance
1135
+ * and the element separately. A `hostRef` keeps the 2 in sync.
1136
+ *
1137
+ * On a traditional component, this is wired up to the element only.
1138
+ *
1139
+ * @param Cstr the constructor for a component that we need to process
1140
+ * @param cmpMeta metadata collected previously about the component
1141
+ * @param flags a number used to store a series of bit flags
1142
+ * @returns a reference to the same constructor passed in (but now mutated)
1143
+ */
1144
+ declare const proxyComponent: (Cstr: ComponentConstructor, cmpMeta: ComponentRuntimeMeta, flags: number) => ComponentConstructor;
1145
+ //#endregion
1146
+ //#region src/runtime/set-value.d.ts
1147
+ declare const getValue: (ref: RuntimeRef, propName: string) => any;
1148
+ declare const setValue: (ref: RuntimeRef, propName: string, newVal: any, cmpMeta: ComponentRuntimeMeta) => void;
1149
+ //#endregion
1150
+ //#region src/runtime/tag-transform.d.ts
1151
+ /**
1152
+ * Transforms a tag name using the current tag transformer
1153
+ * @param tag - the tag to transform e.g. `my-tag`
1154
+ * @returns the transformed tag e.g. `new-my-tag`
1155
+ */
1156
+ declare function transformTag<T extends string>(tag: T): T;
1157
+ /**
1158
+ * Sets the tag transformer to be used when rendering custom elements
1159
+ * @param transformer the transformer function to use. Must return a string
1160
+ */
1161
+ declare function setTagTransformer(transformer: TagTransformer): void;
1162
+ //#endregion
1163
+ //#region src/runtime/update-component.d.ts
1164
+ declare const getRenderingRef: () => any;
1165
+ declare const postUpdateComponent: (hostRef: HostRef) => void;
1166
+ declare const forceUpdate: (ref: any) => boolean;
1167
+ //#endregion
1168
+ //#region src/runtime/vdom/h.d.ts
1169
+ declare const Host: {};
1170
+ //#endregion
1171
+ //#region src/runtime/vdom/jsx-dev-runtime.d.ts
1172
+ /**
1173
+ * JSX development runtime function for creating elements with debug info.
1174
+ * Called by TypeScript's jsx transform in development mode.
1175
+ *
1176
+ * @param type - The element type (string tag name or functional component)
1177
+ * @param props - The element props (includes children, key, etc.)
1178
+ * @param key - The element's key (passed separately in dev mode)
1179
+ * @param isStaticChildren - Whether children are static (optimization hint)
1180
+ * @param source - Source location information for debugging
1181
+ * @param self - The component instance (for debugging)
1182
+ * @returns A virtual DOM node
1183
+ */
1184
+ declare function jsxDEV(type: any, props: any, key?: string | number, _isStaticChildren?: boolean, _source?: any, _self?: any): VNode;
1185
+ //#endregion
1186
+ //#region src/runtime/vdom/jsx-runtime.d.ts
1187
+ /**
1188
+ * JSX runtime function for creating elements in production mode.
1189
+ * Called by TypeScript's jsx transform for elements without static children.
1190
+ *
1191
+ * @param type - The element type (string tag name or functional component)
1192
+ * @param props - The element props (includes children)
1193
+ * @param key - Optional key for the element
1194
+ * @returns A virtual DOM node
1195
+ */
1196
+ declare function jsx(type: any, props: any, key?: string): VNode;
1197
+ /**
1198
+ * JSX runtime function for creating elements with static children.
1199
+ * Called by TypeScript's jsx transform as an optimization when children are static.
1200
+ *
1201
+ * @param type - The element type (string tag name or functional component)
1202
+ * @param props - The element props (includes children)
1203
+ * @param key - Optional key for the element
1204
+ * @returns A virtual DOM node
1205
+ */
1206
+ declare function jsxs(type: any, props: any, key?: string): VNode;
1207
+ //#endregion
1208
+ //#region src/runtime/vdom/vdom-annotations.d.ts
1209
+ /**
1210
+ * Updates the DOM generated on the server with annotations such as node attributes and
1211
+ * comment nodes to facilitate future client-side hydration. These annotations are used for things
1212
+ * like moving elements back to their original hosts if using Shadow DOM on the client, and for quickly
1213
+ * reconstructing the vNode representations of the DOM.
1214
+ *
1215
+ * @param doc The DOM generated by the server.
1216
+ * @param staticComponents Any components that should be considered static and do not need client-side hydration.
1217
+ */
1218
+ declare const insertVdomAnnotations: (doc: Document, staticComponents: string[]) => void;
1219
+ //#endregion
1220
+ //#region src/runtime/vdom/vdom-render.d.ts
1221
+ /**
1222
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1223
+ *
1224
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1225
+ * function will handle creating a virtual DOM tree with a single root, patching
1226
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1227
+ * relocation, and reflecting attributes.
1228
+ *
1229
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1230
+ * the DOM node into which it should be rendered.
1231
+ * @param renderFnResults the virtual DOM nodes to be rendered
1232
+ * @param isInitialLoad whether or not this is the first call after page load
1233
+ */
1234
+ declare const renderVdom: (hostRef: HostRef, renderFnResults: VNode | VNode[], isInitialLoad?: boolean) => void;
1235
+ //#endregion
1236
+ //#region src/server/platform/index.d.ts
1237
+ declare const cmpModules: Map<string, {
1238
+ [exportName: string]: ComponentConstructor;
1239
+ }>;
1240
+ declare const loadModule: (cmpMeta: ComponentRuntimeMeta, _hostRef: HostRef, _hmrVersionId?: string) => ComponentConstructor | null;
1241
+ declare const isMemberInElement: (elm: any, memberName: string) => boolean;
1242
+ declare const registerComponents: (Cstrs: ComponentNativeConstructor[]) => void;
1243
+ declare const win: Window & typeof globalThis;
1244
+ declare const readTask: (cb: Function) => void;
1245
+ declare const writeTask: (cb: Function) => void;
1246
+ declare const nextTick: (cb: () => void) => Promise<void>;
1247
+ declare const consoleError: ErrorHandler;
1248
+ declare const consoleDevError: (..._: any[]) => void;
1249
+ declare const consoleDevWarn: (..._: any[]) => void;
1250
+ declare const consoleDevInfo: (..._: any[]) => void;
1251
+ declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
1252
+ declare const plt: PlatformRuntime;
1253
+ declare const setPlatformHelpers: (helpers: {
1254
+ jmp?: (c: any) => any;
1255
+ raf?: (c: any) => number;
1256
+ ael?: (el: any, eventName: string, listener: any, options: any) => void;
1257
+ rel?: (el: any, eventName: string, listener: any, options: any) => void;
1258
+ ce?: (eventName: string, opts?: any) => any;
1259
+ }) => void;
1260
+ declare const supportsShadow: boolean;
1261
+ declare const supportsListenerOptions = false;
1262
+ declare const supportsConstructableStylesheets = false;
1263
+ declare const supportsMutableAdoptedStyleSheets = false;
1264
+ declare const getHostRef: (ref: RuntimeRef) => HostRef;
1265
+ declare const registerInstance: (lazyInstance: any, hostRef: HostRef) => HostRef;
1266
+ declare const registerHost: (elm: HostElement, cmpMeta: ComponentRuntimeMeta) => HostRef;
1267
+ declare const Build: UserBuildConditionals;
1268
+ declare const styles: StyleMap;
1269
+ declare const modeResolutionChain: ResolutionHandler[];
1270
+ /**
1271
+ * Checks to see any components are rendered with `scoped`
1272
+ * @param opts - SSR options
1273
+ */
1274
+ declare const setScopedSSR: (opts: HydrateFactoryOptions) => void;
1275
+ declare const needsScopedSSR: () => boolean;
1276
+ //#endregion
1277
+ export { BUILD, Build, Env, Fragment, Host, Mixin, NAMESPACE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getValue, hAsync as h, hydrateApp, insertVdomAnnotations, isMemberInElement, jsx, jsxDEV, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, parsePropertyValue, plt, postUpdateComponent, proxyComponent, proxyCustomElement, readTask, registerComponents, registerHost, registerInstance, renderVdom, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setScopedSSR, setTagTransformer, setValue, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, supportsShadow, transformTag, win, writeTask };