chrome-devtools-frontend 1.0.944427 → 1.0.944903

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 (251) hide show
  1. package/config/gni/devtools_grd_files.gni +3 -0
  2. package/front_end/core/common/ParsedURL.ts +1 -1
  3. package/front_end/core/host/InspectorFrontendHostAPI.ts +5 -5
  4. package/front_end/core/i18n/locales/en-US.json +3 -15
  5. package/front_end/core/i18n/locales/en-XL.json +15 -27
  6. package/front_end/core/protocol_client/NodeURL.ts +1 -0
  7. package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
  8. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
  9. package/front_end/core/sdk/Cookie.ts +17 -0
  10. package/front_end/core/sdk/CookieModel.ts +1 -0
  11. package/front_end/core/sdk/DebuggerModel.ts +5 -4
  12. package/front_end/core/sdk/NetworkManager.ts +4 -1
  13. package/front_end/core/sdk/NetworkRequest.ts +2 -2
  14. package/front_end/core/sdk/Resource.ts +2 -2
  15. package/front_end/core/sdk/Script.ts +2 -3
  16. package/front_end/models/bindings/BreakpointManager.ts +3 -4
  17. package/front_end/models/bindings/ResourceMapping.ts +1 -2
  18. package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
  19. package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
  20. package/front_end/models/persistence/IsolatedFileSystemManager.ts +10 -6
  21. package/front_end/models/persistence/PersistenceActions.ts +4 -1
  22. package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
  23. package/front_end/models/text_utils/ContentProvider.ts +1 -2
  24. package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
  25. package/front_end/models/workspace/UISourceCode.ts +2 -2
  26. package/front_end/panels/animation/animationTimeline.css +2 -0
  27. package/front_end/panels/application/ReportingApiView.ts +15 -1
  28. package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
  29. package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
  30. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
  31. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  32. package/front_end/panels/sources/NavigatorView.ts +1 -1
  33. package/front_end/panels/sources/UISourceCodeFrame.ts +0 -1
  34. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
  35. package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
  36. package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
  37. package/front_end/services/window_bounds/window_bounds.ts +9 -0
  38. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  39. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  40. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +8 -1
  41. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  42. package/front_end/third_party/codemirror.next/package.json +1 -1
  43. package/front_end/third_party/lit-html/README.chromium +2 -2
  44. package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
  45. package/front_end/third_party/lit-html/package/LICENSE +9 -9
  46. package/front_end/third_party/lit-html/package/README.md +12 -162
  47. package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
  48. package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
  49. package/front_end/third_party/lit-html/package/async-directive.js +2 -7
  50. package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
  51. package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
  52. package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
  53. package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
  54. package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
  55. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
  56. package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
  57. package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
  58. package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
  59. package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
  60. package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
  61. package/front_end/third_party/lit-html/package/development/directive.js +6 -1
  62. package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
  63. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
  64. package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
  65. package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
  66. package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
  67. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
  68. package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
  69. package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
  70. package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
  71. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
  72. package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
  73. package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
  74. package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
  75. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
  76. package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
  77. package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
  78. package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
  79. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
  80. package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
  81. package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
  82. package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
  83. package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
  84. package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
  85. package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
  86. package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
  87. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
  88. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
  89. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
  90. package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
  91. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
  92. package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
  93. package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
  94. package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
  95. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
  96. package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
  97. package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
  98. package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
  99. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
  100. package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
  101. package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
  102. package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
  103. package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
  104. package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
  105. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
  106. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
  107. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
  108. package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
  109. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
  110. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
  111. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
  112. package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
  113. package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
  114. package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
  115. package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
  116. package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
  117. package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
  118. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
  119. package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
  120. package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
  121. package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
  122. package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
  123. package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
  124. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
  125. package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
  126. package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
  127. package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
  128. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
  129. package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
  130. package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
  131. package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
  132. package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
  133. package/front_end/third_party/lit-html/package/development/static.js +6 -5
  134. package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
  135. package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
  136. package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
  137. package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
  138. package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
  139. package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
  140. package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
  141. package/front_end/third_party/lit-html/package/directive.js +1 -1
  142. package/front_end/third_party/lit-html/package/directive.js.map +1 -1
  143. package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
  144. package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
  145. package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
  146. package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
  147. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
  148. package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
  149. package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
  150. package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
  151. package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
  152. package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
  153. package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
  154. package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
  155. package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
  156. package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
  157. package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
  158. package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
  159. package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
  160. package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
  161. package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
  162. package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
  163. package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
  164. package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
  165. package/front_end/third_party/lit-html/package/directives/live.js +1 -4
  166. package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
  167. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
  168. package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
  169. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
  170. package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
  171. package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
  172. package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
  173. package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
  174. package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
  175. package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
  176. package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
  177. package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
  178. package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
  179. package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
  180. package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
  181. package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
  182. package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
  183. package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
  184. package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
  185. package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
  186. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
  187. package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
  188. package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
  189. package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
  190. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
  191. package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
  192. package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
  193. package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
  194. package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
  195. package/front_end/third_party/lit-html/package/directives/until.js +2 -6
  196. package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
  197. package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
  198. package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
  199. package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
  200. package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
  201. package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
  202. package/front_end/third_party/lit-html/package/lit-html.js +1 -1
  203. package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
  204. package/front_end/third_party/lit-html/package/package.json +75 -24
  205. package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
  206. package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
  207. package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
  208. package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
  209. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
  210. package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
  211. package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
  212. package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
  213. package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
  214. package/front_end/third_party/lit-html/package/static.js +1 -1
  215. package/front_end/third_party/lit-html/package/static.js.map +1 -1
  216. package/front_end/third_party/marked/README.chromium +2 -2
  217. package/front_end/third_party/marked/marked.ts +2 -2
  218. package/front_end/third_party/marked/package/README.md +7 -1
  219. package/front_end/third_party/marked/package/bin/marked.js +214 -0
  220. package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
  221. package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
  222. package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
  223. package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
  224. package/front_end/third_party/marked/package/man/marked.1 +5 -24
  225. package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
  226. package/front_end/third_party/marked/package/marked.min.js +1 -1
  227. package/front_end/third_party/marked/package/package.json +41 -32
  228. package/front_end/third_party/marked/package/src/Lexer.js +109 -108
  229. package/front_end/third_party/marked/package/src/Parser.js +38 -15
  230. package/front_end/third_party/marked/package/src/Renderer.js +5 -5
  231. package/front_end/third_party/marked/package/src/Slugger.js +2 -2
  232. package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
  233. package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
  234. package/front_end/third_party/marked/package/src/defaults.js +6 -9
  235. package/front_end/third_party/marked/package/src/helpers.js +16 -27
  236. package/front_end/third_party/marked/package/src/marked.js +146 -63
  237. package/front_end/third_party/marked/package/src/rules.js +20 -45
  238. package/front_end/third_party/wasmparser/README.chromium +2 -2
  239. package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
  240. package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
  241. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
  242. package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
  243. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
  244. package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
  245. package/front_end/third_party/wasmparser/package/package.json +1 -1
  246. package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
  247. package/front_end/ui/components/text_editor/TextEditor.ts +29 -0
  248. package/front_end/ui/components/text_editor/config.ts +4 -2
  249. package/front_end/ui/legacy/ViewManager.ts +6 -0
  250. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
  251. package/package.json +1 -1
@@ -43,22 +43,18 @@ export declare type ValueSanitizer = (value: unknown) => unknown;
43
43
  declare const HTML_RESULT = 1;
44
44
  declare const SVG_RESULT = 2;
45
45
  declare type ResultType = typeof HTML_RESULT | typeof SVG_RESULT;
46
- declare const ATTRIBUTE_PART = 1;
47
- declare const CHILD_PART = 2;
48
- declare const ELEMENT_PART = 6;
49
- declare const COMMENT_PART = 7;
50
46
  /**
51
47
  * The return type of the template tag functions.
52
48
  */
53
49
  export declare type TemplateResult<T extends ResultType = ResultType> = {
54
- _$litType$: T;
50
+ ['_$litType$']: T;
55
51
  strings: TemplateStringsArray;
56
52
  values: unknown[];
57
53
  };
58
54
  export declare type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;
59
55
  export declare type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;
60
56
  export interface CompiledTemplateResult {
61
- _$litType$: CompiledTemplate;
57
+ ['_$litType$']: CompiledTemplate;
62
58
  values: unknown[];
63
59
  }
64
60
  export interface CompiledTemplate extends Omit<Template, 'el'> {
@@ -68,6 +64,15 @@ export interface CompiledTemplate extends Omit<Template, 'el'> {
68
64
  /**
69
65
  * Interprets a template literal as an HTML template that can efficiently
70
66
  * render to and update a container.
67
+ *
68
+ * ```ts
69
+ * const header = (title: string) => html`<h1>${title}</h1>`;
70
+ * ```
71
+ *
72
+ * The `html` tag returns a description of the DOM to render as a value. It is
73
+ * lazy, meaning no work is done until the template is rendered. When rendering,
74
+ * if a template comes from the same expression as a previously rendered result,
75
+ * it's efficiently updated instead of replaced.
71
76
  */
72
77
  export declare const html: (strings: TemplateStringsArray, ...values: unknown[]) => TemplateResult<1>;
73
78
  /**
@@ -82,8 +87,32 @@ export declare const svg: (strings: TemplateStringsArray, ...values: unknown[])
82
87
  export declare const noChange: unique symbol;
83
88
  /**
84
89
  * A sentinel value that signals a ChildPart to fully clear its content.
90
+ *
91
+ * ```ts
92
+ * const button = html`${
93
+ * user.isAdmin
94
+ * ? html`<button>DELETE</button>`
95
+ * : nothing
96
+ * }`;
97
+ * ```
98
+ *
99
+ * Prefer using `nothing` over other falsy values as it provides a consistent
100
+ * behavior between various expression binding contexts.
101
+ *
102
+ * In child expressions, `undefined`, `null`, `''`, and `nothing` all behave the
103
+ * same and render no nodes. In attribute expressions, `nothing` _removes_ the
104
+ * attribute, while `undefined` and `null` will render an empty string. In
105
+ * property expressions `nothing` becomes `undefined`.
85
106
  */
86
107
  export declare const nothing: unique symbol;
108
+ /**
109
+ * Object specifying options for controlling lit-html rendering. Note that
110
+ * while `render` may be called multiple times on the same `container` (and
111
+ * `renderBefore` reference node) to efficiently update the rendered content,
112
+ * only the options passed in during the first render are respected during
113
+ * the lifetime of renders to that unique `container` + `renderBefore`
114
+ * combination.
115
+ */
87
116
  export interface RenderOptions {
88
117
  /**
89
118
  * An object to use as the `this` value for event listeners. It's often
@@ -102,6 +131,15 @@ export interface RenderOptions {
102
131
  creationScope?: {
103
132
  importNode(node: Node, deep?: boolean): Node;
104
133
  };
134
+ /**
135
+ * The initial connected state for the top-level part being rendered. If no
136
+ * `isConnected` option is set, `AsyncDirective`s will be connected by
137
+ * default. Set to `false` if the initial render occurs in a disconnected tree
138
+ * and `AsyncDirective`s should see `isConnected === false` for their initial
139
+ * render. The `part.setConnected()` method must be used subsequent to initial
140
+ * render to change the connected state of the part.
141
+ */
142
+ isConnected?: boolean;
105
143
  }
106
144
  /**
107
145
  * Renders a value, usually a lit-html TemplateResult, to the container.
@@ -110,103 +148,48 @@ export interface RenderOptions {
110
148
  * @param options
111
149
  */
112
150
  export declare const render: {
113
- (value: unknown, container: HTMLElement | DocumentFragment, options?: RenderOptions | undefined): ChildPart;
151
+ (value: unknown, container: HTMLElement | DocumentFragment, options?: RenderOptions | undefined): RootPart;
114
152
  setSanitizer: (newSanitizer: SanitizerFactory) => void;
115
153
  createSanitizer: SanitizerFactory;
116
154
  _testOnlyClearSanitizerFactoryDoNotCallOrElse: () => void;
117
155
  };
118
156
  export interface DirectiveParent {
119
157
  _$parent?: DirectiveParent;
158
+ _$isConnected: boolean;
120
159
  __directive?: Directive;
121
160
  __directives?: Array<Directive | undefined>;
122
161
  }
123
- /** @internal */
124
- export type { Template };
125
162
  declare class Template {
126
- /** @internal */
127
- el: HTMLTemplateElement;
128
- /** @internal */
129
- parts: Array<TemplatePart>;
130
- constructor({ strings, _$litType$: type }: TemplateResult, options?: RenderOptions);
163
+ constructor({ strings, ['_$litType$']: type }: TemplateResult, options?: RenderOptions);
164
+ /** @nocollapse */
131
165
  static createElement(html: TrustedHTML, _options?: RenderOptions): HTMLTemplateElement;
132
166
  }
133
167
  export interface Disconnectable {
134
168
  _$parent?: Disconnectable;
135
- _$disconnetableChildren?: Set<Disconnectable>;
169
+ _$disconnectableChildren?: Set<Disconnectable>;
170
+ _$isConnected: boolean;
136
171
  }
137
172
  declare function resolveDirective(part: ChildPart | AttributePart | ElementPart, value: unknown, parent?: DirectiveParent, attributeIndex?: number): unknown;
138
173
  /**
139
174
  * An updateable instance of a Template. Holds references to the Parts used to
140
175
  * update the template instance.
141
176
  */
142
- declare class TemplateInstance {
143
- /** @internal */
144
- _$template: Template;
145
- /** @internal */
146
- _parts: Array<Part | undefined>;
147
- /** @internal */
148
- _$parent: Disconnectable;
149
- /** @internal */
150
- _$disconnetableChildren?: Set<Disconnectable>;
177
+ declare class TemplateInstance implements Disconnectable {
151
178
  constructor(template: Template, parent: ChildPart);
179
+ get parentNode(): Node;
180
+ get _$isConnected(): boolean;
152
181
  _clone(options: RenderOptions | undefined): Node;
153
182
  _update(values: Array<unknown>): void;
154
183
  }
155
- declare type AttributeTemplatePart = {
156
- readonly type: typeof ATTRIBUTE_PART;
157
- readonly index: number;
158
- readonly name: string;
159
- /** @internal */
160
- readonly ctor: typeof AttributePart;
161
- /** @internal */
162
- readonly strings: ReadonlyArray<string>;
163
- };
164
- declare type NodeTemplatePart = {
165
- readonly type: typeof CHILD_PART;
166
- readonly index: number;
167
- };
168
- declare type ElementTemplatePart = {
169
- readonly type: typeof ELEMENT_PART;
170
- readonly index: number;
171
- };
172
- declare type CommentTemplatePart = {
173
- readonly type: typeof COMMENT_PART;
174
- readonly index: number;
175
- };
176
- /**
177
- * A TemplatePart represents a dynamic part in a template, before the template
178
- * is instantiated. When a template is instantiated Parts are created from
179
- * TemplateParts.
180
- */
181
- declare type TemplatePart = NodeTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
182
184
  export declare type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
183
185
  export type { ChildPart };
184
- declare class ChildPart {
186
+ declare class ChildPart implements Disconnectable {
185
187
  readonly type = 2;
186
188
  readonly options: RenderOptions | undefined;
187
189
  _$committedValue: unknown;
188
- /** @internal */
189
- __directive?: Directive;
190
- /** @internal */
191
- _$startNode: ChildNode;
192
- /** @internal */
193
- _$endNode: ChildNode | null;
194
190
  private _textSanitizer;
195
- /** @internal */
196
- _$parent: Disconnectable | undefined;
197
- /** @internal */
198
- _$disconnetableChildren?: Set<Disconnectable>;
199
- /** @internal */
200
- _$setChildPartConnected?(isConnected: boolean, removeFromParent?: boolean, from?: number): void;
201
- /** @internal */
202
- _$reparentDisconnectables?(parent: Disconnectable): void;
191
+ get _$isConnected(): boolean;
203
192
  constructor(startNode: ChildNode, endNode: ChildNode | null, parent: TemplateInstance | ChildPart | undefined, options: RenderOptions | undefined);
204
- /**
205
- * Sets the connection state for any `AsyncDirectives` contained
206
- * within this part and runs their `disconnected` or `reconnected`, according
207
- * to the `isConnected` argument.
208
- */
209
- setConnected(isConnected: boolean): void;
210
193
  /**
211
194
  * The parent node into which the part renders its content.
212
195
  *
@@ -241,24 +224,32 @@ declare class ChildPart {
241
224
  private _commitNode;
242
225
  private _commitText;
243
226
  private _commitTemplateResult;
244
- /** @internal */
245
- _$getTemplate(result: TemplateResult): Template;
246
227
  private _commitIterable;
228
+ }
229
+ /**
230
+ * A top-level `ChildPart` returned from `render` that manages the connected
231
+ * state of `AsyncDirective`s created throughout the tree below it.
232
+ */
233
+ export interface RootPart extends ChildPart {
247
234
  /**
248
- * Removes the nodes contained within this Part from the DOM.
235
+ * Sets the connection state for `AsyncDirective`s contained within this root
236
+ * ChildPart.
249
237
  *
250
- * @param start Start node to clear from, for clearing a subset of the part's
251
- * DOM (used when truncating iterables)
252
- * @param from When `start` is specified, the index within the iterable from
253
- * which ChildParts are being removed, used for disconnecting directives in
254
- * those Parts.
238
+ * lit-html does not automatically monitor the connectedness of DOM rendered;
239
+ * as such, it is the responsibility of the caller to `render` to ensure that
240
+ * `part.setConnected(false)` is called before the part object is potentially
241
+ * discarded, to ensure that `AsyncDirective`s have a chance to dispose of
242
+ * any resources being held. If a `RootPart` that was prevously
243
+ * disconnected is subsequently re-connected (and its `AsyncDirective`s should
244
+ * re-connect), `setConnected(true)` should be called.
255
245
  *
256
- * @internal
246
+ * @param isConnected Whether directives within this tree should be connected
247
+ * or not
257
248
  */
258
- _$clear(start?: ChildNode | null, from?: number): void;
249
+ setConnected(isConnected: boolean): void;
259
250
  }
260
251
  export type { AttributePart };
261
- declare class AttributePart {
252
+ declare class AttributePart implements Disconnectable {
262
253
  readonly type: 1 | 3 | 4 | 5;
263
254
  readonly element: HTMLElement;
264
255
  readonly name: string;
@@ -269,56 +260,18 @@ declare class AttributePart {
269
260
  * this is undefined.
270
261
  */
271
262
  readonly strings?: ReadonlyArray<string>;
272
- /** @internal */
273
- _$committedValue: unknown | Array<unknown>;
274
- /** @internal */
275
- __directives?: Array<Directive | undefined>;
276
- /** @internal */
277
- _$parent: Disconnectable | undefined;
278
- /** @internal */
279
- _$disconnetableChildren?: Set<Disconnectable>;
280
263
  protected _sanitizer: ValueSanitizer | undefined;
281
- /** @internal */
282
- _setDirectiveConnected?: (directive: Directive | undefined, isConnected: boolean, removeFromParent?: boolean) => void;
283
264
  get tagName(): string;
284
- constructor(element: HTMLElement, name: string, strings: ReadonlyArray<string>, parent: Disconnectable | undefined, options: RenderOptions | undefined);
285
- /**
286
- * Sets the value of this part by resolving the value from possibly multiple
287
- * values and static strings and committing it to the DOM.
288
- * If this part is single-valued, `this._strings` will be undefined, and the
289
- * method will be called with a single value argument. If this part is
290
- * multi-value, `this._strings` will be defined, and the method is called
291
- * with the value array of the part's owning TemplateInstance, and an offset
292
- * into the value array from which the values should be read.
293
- * This method is overloaded this way to eliminate short-lived array slices
294
- * of the template instance values, and allow a fast-path for single-valued
295
- * parts.
296
- *
297
- * @param value The part value, or an array of values for multi-valued parts
298
- * @param valueIndex the index to start reading values from. `undefined` for
299
- * single-valued parts
300
- * @param noCommit causes the part to not commit its value to the DOM. Used
301
- * in hydration to prime attribute parts with their first-rendered value,
302
- * but not set the attribute, and in SSR to no-op the DOM operation and
303
- * capture the value for serialization.
304
- *
305
- * @internal
306
- */
307
- _$setValue(value: unknown | Array<unknown>, directiveParent?: DirectiveParent, valueIndex?: number, noCommit?: boolean): void;
308
- /** @internal */
309
- _commitValue(value: unknown): void;
265
+ get _$isConnected(): boolean;
266
+ constructor(element: HTMLElement, name: string, strings: ReadonlyArray<string>, parent: Disconnectable, options: RenderOptions | undefined);
310
267
  }
311
268
  export type { PropertyPart };
312
269
  declare class PropertyPart extends AttributePart {
313
270
  readonly type = 3;
314
- /** @internal */
315
- _commitValue(value: unknown): void;
316
271
  }
317
272
  export type { BooleanAttributePart };
318
273
  declare class BooleanAttributePart extends AttributePart {
319
274
  readonly type = 4;
320
- /** @internal */
321
- _commitValue(value: unknown): void;
322
275
  }
323
276
  /**
324
277
  * An AttributePart that manages an event listener via add/removeEventListener.
@@ -334,25 +287,17 @@ declare class BooleanAttributePart extends AttributePart {
334
287
  export type { EventPart };
335
288
  declare class EventPart extends AttributePart {
336
289
  readonly type = 5;
337
- /** @internal */
338
- _$setValue(newListener: unknown, directiveParent?: DirectiveParent): void;
290
+ constructor(element: HTMLElement, name: string, strings: ReadonlyArray<string>, parent: Disconnectable, options: RenderOptions | undefined);
339
291
  handleEvent(event: Event): void;
340
292
  }
341
293
  export type { ElementPart };
342
- declare class ElementPart {
294
+ declare class ElementPart implements Disconnectable {
343
295
  element: Element;
344
296
  readonly type = 6;
345
- /** @internal */
346
- __directive?: Directive;
347
297
  _$committedValue: undefined;
348
- /** @internal */
349
- _$parent: Disconnectable | undefined;
350
- /** @internal */
351
- _$disconnetableChildren?: Set<Disconnectable>;
352
- /** @internal */
353
- _setDirectiveConnected?: (directive: Directive | undefined, isConnected: boolean, removeFromParent?: boolean) => void;
354
298
  options: RenderOptions | undefined;
355
299
  constructor(element: Element, parent: Disconnectable, options: RenderOptions | undefined);
300
+ get _$isConnected(): boolean;
356
301
  _$setValue(value: unknown): void;
357
302
  }
358
303
  /**
@@ -363,7 +308,7 @@ declare class ElementPart {
363
308
  *
364
309
  * We currently do not make a mangled rollup build of the lit-ssr code. In order
365
310
  * to keep a number of (otherwise private) top-level exports mangled in the
366
- * client side code, we export a _Σ object containing those members (or
311
+ * client side code, we export a _$LH object containing those members (or
367
312
  * helper methods for accessing private fields of those members), and then
368
313
  * re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the
369
314
  * client-side code is being used in `dev` mode or `prod` mode.
@@ -373,7 +318,7 @@ declare class ElementPart {
373
318
  *
374
319
  * @private
375
320
  */
376
- export declare const _Σ: {
321
+ export declare const _$LH: {
377
322
  _boundAttributeSuffix: string;
378
323
  _marker: string;
379
324
  _markerMatch: string;
@@ -1 +1 @@
1
- {"version":3,"file":"lit-html.d.ts","sourceRoot":"","sources":["../src/lit-html.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAGH,OAAO,KAAK,EAAC,SAAS,EAA4B,MAAM,gBAAgB,CAAC;AAiCzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,oBAAY,gBAAgB,GAAG,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,GAAG,WAAW,KAC3B,cAAc,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,oBAAY,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;AAwIzD,2BAA2B;AAC3B,QAAA,MAAM,WAAW,IAAI,CAAC;AACtB,QAAA,MAAM,UAAU,IAAI,CAAC;AAErB,aAAK,UAAU,GAAG,OAAO,WAAW,GAAG,OAAO,UAAU,CAAC;AAIzD,QAAA,MAAM,cAAc,IAAI,CAAC;AACzB,QAAA,MAAM,UAAU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