|
167 | 167 | "flags": {
|
168 | 168 | "isStatic": true
|
169 | 169 | },
|
| 170 | + "comment": { |
| 171 | + "blockTags": [ |
| 172 | + { |
| 173 | + "tag": "@nocollapse" |
| 174 | + } |
| 175 | + ], |
| 176 | + "shortText": "Returns a list of attributes corresponding to the registered properties." |
| 177 | + }, |
170 | 178 | "sources": [
|
171 | 179 | {
|
172 | 180 | "fileName": "packages/reactive-element/src/reactive-element.ts",
|
|
369 | 377 | "isStatic": true,
|
370 | 378 | "isOptional": true
|
371 | 379 | },
|
| 380 | + "comment": { |
| 381 | + "blockTags": [ |
| 382 | + { |
| 383 | + "tag": "@nocollapse" |
| 384 | + } |
| 385 | + ], |
| 386 | + "shortText": "Disable the given warning category for this class.", |
| 387 | + "text": "This method only exists in development builds, so it should be accessed\nwith a guard like:\n```ts\n// Disable for all ReactiveElement subclasses\nReactiveElement.disableWarning?.('migration');\n// Disable for only MyElement and subclasses\nMyElement.disableWarning?.('migration');\n```\n" |
| 388 | + }, |
372 | 389 | "sources": [
|
373 | 390 | {
|
374 | 391 | "fileName": "packages/reactive-element/src/reactive-element.ts",
|
|
505 | 522 | "isStatic": true,
|
506 | 523 | "isOptional": true
|
507 | 524 | },
|
| 525 | + "comment": { |
| 526 | + "blockTags": [ |
| 527 | + { |
| 528 | + "tag": "@nocollapse" |
| 529 | + } |
| 530 | + ], |
| 531 | + "shortText": "Enable the given warning category for this class.", |
| 532 | + "text": "This method only exists in development builds, so it should be accessed\nwith a guard like:\n```ts\n// Enable for all ReactiveElement subclasses\nReactiveElement.enableWarning?.('migration');\n// Enable for only MyElement and subclasses\nMyElement.enableWarning?.('migration');\n```\n" |
| 533 | + }, |
508 | 534 | "sources": [
|
509 | 535 | {
|
510 | 536 | "fileName": "packages/reactive-element/src/reactive-element.ts",
|
|
2474 | 2500 | "tag": "@returns",
|
2475 | 2501 | "content": [
|
2476 | 2502 | {
|
2477 |
| - "text": "A promise of a boolean that indicates if the update resolved\n without triggering another update." |
| 2503 | + "text": "A promise of a boolean that resolves to true if the update completed\n without triggering another update." |
2478 | 2504 | }
|
2479 | 2505 | ]
|
2480 | 2506 | }
|
2481 | 2507 | ],
|
2482 |
| - "shortText": "Returns a Promise that resolves when the host has completed updating.\nThe Promise value is a boolean that is `true` if the element completed the\nupdate without triggering another update. The Promise result is `false` if\na property was set inside `updated()`. If the Promise is rejected, an\nexception was thrown during the update." |
| 2508 | + "shortText": "Returns a Promise that resolves when the element has completed updating.\nThe Promise value is a boolean that is `true` if the element completed the\nupdate without triggering another update. The Promise result is `false` if\na property was set inside `updated()`. If the Promise is rejected, an\nexception was thrown during the update.", |
| 2509 | + "text": "To await additional asynchronous work, override the `getUpdateComplete`\nmethod. For example, it is sometimes useful to await a rendered element\nbefore fulfilling this Promise. To do this, first await\n`super.getUpdateComplete()`, then any subsequent state.\n" |
2483 | 2510 | },
|
2484 | 2511 | "sources": [
|
2485 | 2512 | {
|
|
3157 | 3184 | "flags": {
|
3158 | 3185 | "isStatic": true
|
3159 | 3186 | },
|
| 3187 | + "comment": { |
| 3188 | + "blockTags": [ |
| 3189 | + { |
| 3190 | + "tag": "@nocollapse" |
| 3191 | + } |
| 3192 | + ], |
| 3193 | + "shortText": "Returns a list of attributes corresponding to the registered properties." |
| 3194 | + }, |
3160 | 3195 | "sources": [
|
3161 | 3196 | {
|
3162 | 3197 | "fileName": "packages/reactive-element/src/reactive-element.ts",
|
|
3347 | 3382 | "isStatic": true,
|
3348 | 3383 | "isOptional": true
|
3349 | 3384 | },
|
| 3385 | + "comment": { |
| 3386 | + "blockTags": [ |
| 3387 | + { |
| 3388 | + "tag": "@nocollapse" |
| 3389 | + } |
| 3390 | + ], |
| 3391 | + "shortText": "Disable the given warning category for this class.", |
| 3392 | + "text": "This method only exists in development builds, so it should be accessed\nwith a guard like:\n```ts\n// Disable for all ReactiveElement subclasses\nReactiveElement.disableWarning?.('migration');\n// Disable for only MyElement and subclasses\nMyElement.disableWarning?.('migration');\n```\n" |
| 3393 | + }, |
3350 | 3394 | "sources": [
|
3351 | 3395 | {
|
3352 | 3396 | "fileName": "packages/reactive-element/src/reactive-element.ts",
|
|
3467 | 3511 | "isStatic": true,
|
3468 | 3512 | "isOptional": true
|
3469 | 3513 | },
|
| 3514 | + "comment": { |
| 3515 | + "blockTags": [ |
| 3516 | + { |
| 3517 | + "tag": "@nocollapse" |
| 3518 | + } |
| 3519 | + ], |
| 3520 | + "shortText": "Enable the given warning category for this class.", |
| 3521 | + "text": "This method only exists in development builds, so it should be accessed\nwith a guard like:\n```ts\n// Enable for all ReactiveElement subclasses\nReactiveElement.enableWarning?.('migration');\n// Enable for only MyElement and subclasses\nMyElement.enableWarning?.('migration');\n```\n" |
| 3522 | + }, |
3470 | 3523 | "sources": [
|
3471 | 3524 | {
|
3472 | 3525 | "fileName": "packages/reactive-element/src/reactive-element.ts",
|
|
5101 | 5154 | "tag": "@returns",
|
5102 | 5155 | "content": [
|
5103 | 5156 | {
|
5104 |
| - "text": "A promise of a boolean that indicates if the update resolved\n without triggering another update." |
| 5157 | + "text": "A promise of a boolean that resolves to true if the update completed\n without triggering another update." |
5105 | 5158 | }
|
5106 | 5159 | ]
|
5107 | 5160 | }
|
5108 | 5161 | ],
|
5109 |
| - "shortText": "Returns a Promise that resolves when the host has completed updating.\nThe Promise value is a boolean that is `true` if the element completed the\nupdate without triggering another update. The Promise result is `false` if\na property was set inside `updated()`. If the Promise is rejected, an\nexception was thrown during the update." |
| 5162 | + "shortText": "Returns a Promise that resolves when the element has completed updating.\nThe Promise value is a boolean that is `true` if the element completed the\nupdate without triggering another update. The Promise result is `false` if\na property was set inside `updated()`. If the Promise is rejected, an\nexception was thrown during the update.", |
| 5163 | + "text": "To await additional asynchronous work, override the `getUpdateComplete`\nmethod. For example, it is sometimes useful to await a rendered element\nbefore fulfilling this Promise. To do this, first await\n`super.getUpdateComplete()`, then any subsequent state.\n" |
5110 | 5164 | },
|
5111 | 5165 | "sources": [
|
5112 | 5166 | {
|
|
6332 | 6386 | {
|
6333 | 6387 | "name": "SanitizerFactory",
|
6334 | 6388 | "kindString": "Type alias",
|
| 6389 | + "comment": { |
| 6390 | + "blockTags": [ |
| 6391 | + { |
| 6392 | + "tag": "@returns", |
| 6393 | + "content": [ |
| 6394 | + { |
| 6395 | + "text": "A function that will sanitize this class of writes." |
| 6396 | + } |
| 6397 | + ] |
| 6398 | + } |
| 6399 | + ], |
| 6400 | + "shortText": "Used to sanitize any value before it is written into the DOM. This can be\nused to implement a security policy of allowed and disallowed values in\norder to prevent XSS attacks.", |
| 6401 | + "text": "One way of using this callback would be to check attributes and properties\nagainst a list of high risk fields, and require that values written to such\nfields be instances of a class which is safe by construction. Closure's Safe\nHTML Types is one implementation of this technique (\nhttps://github.com/google/safe-html-types/blob/master/doc/safehtml-types.md).\nThe TrustedTypes polyfill in API-only mode could also be used as a basis\nfor this technique (https://github.com/WICG/trusted-types).\n" |
| 6402 | + }, |
6335 | 6403 | "sources": [
|
6336 | 6404 | {
|
6337 | 6405 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
18395 | 18463 | {
|
18396 | 18464 | "name": "endNode",
|
18397 | 18465 | "kindString": "Accessor",
|
| 18466 | + "comment": { |
| 18467 | + "shortText": "The part's trailing marker node, if any. See `.parentNode` for more\ninformation." |
| 18468 | + }, |
18398 | 18469 | "sources": [
|
18399 | 18470 | {
|
18400 | 18471 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
18455 | 18526 | {
|
18456 | 18527 | "name": "parentNode",
|
18457 | 18528 | "kindString": "Accessor",
|
| 18529 | + "comment": { |
| 18530 | + "shortText": "The parent node into which the part renders its content.", |
| 18531 | + "text": "A ChildPart's content consists of a range of adjacent child nodes of\n`.parentNode`, possibly bordered by 'marker nodes' (`.startNode` and\n`.endNode`).\n- If both `.startNode` and `.endNode` are non-null, then the part's content\nconsists of all siblings between `.startNode` and `.endNode`, exclusively.\n- If `.startNode` is non-null but `.endNode` is null, then the part's\ncontent consists of all siblings following `.startNode`, up to and\nincluding the last child of `.parentNode`. If `.endNode` is non-null, then\n`.startNode` will always be non-null.\n- If both `.endNode` and `.startNode` are null, then the part's content\nconsists of all child nodes of `.parentNode`.\n" |
| 18532 | + }, |
18458 | 18533 | "sources": [
|
18459 | 18534 | {
|
18460 | 18535 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
18498 | 18573 | {
|
18499 | 18574 | "name": "startNode",
|
18500 | 18575 | "kindString": "Accessor",
|
| 18576 | + "comment": { |
| 18577 | + "shortText": "The part's leading marker node, if any. See `.parentNode` for more\ninformation." |
| 18578 | + }, |
18501 | 18579 | "sources": [
|
18502 | 18580 | {
|
18503 | 18581 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
27516 | 27594 | {
|
27517 | 27595 | "name": "endNode",
|
27518 | 27596 | "kindString": "Accessor",
|
| 27597 | + "comment": { |
| 27598 | + "shortText": "The part's trailing marker node, if any. See `.parentNode` for more\ninformation." |
| 27599 | + }, |
27519 | 27600 | "sources": [
|
27520 | 27601 | {
|
27521 | 27602 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
27588 | 27669 | {
|
27589 | 27670 | "name": "parentNode",
|
27590 | 27671 | "kindString": "Accessor",
|
| 27672 | + "comment": { |
| 27673 | + "shortText": "The parent node into which the part renders its content.", |
| 27674 | + "text": "A ChildPart's content consists of a range of adjacent child nodes of\n`.parentNode`, possibly bordered by 'marker nodes' (`.startNode` and\n`.endNode`).\n- If both `.startNode` and `.endNode` are non-null, then the part's content\nconsists of all siblings between `.startNode` and `.endNode`, exclusively.\n- If `.startNode` is non-null but `.endNode` is null, then the part's\ncontent consists of all siblings following `.startNode`, up to and\nincluding the last child of `.parentNode`. If `.endNode` is non-null, then\n`.startNode` will always be non-null.\n- If both `.endNode` and `.startNode` are null, then the part's content\nconsists of all child nodes of `.parentNode`.\n" |
| 27675 | + }, |
27591 | 27676 | "sources": [
|
27592 | 27677 | {
|
27593 | 27678 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
27643 | 27728 | {
|
27644 | 27729 | "name": "startNode",
|
27645 | 27730 | "kindString": "Accessor",
|
| 27731 | + "comment": { |
| 27732 | + "shortText": "The part's leading marker node, if any. See `.parentNode` for more\ninformation." |
| 27733 | + }, |
27646 | 27734 | "sources": [
|
27647 | 27735 | {
|
27648 | 27736 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
27806 | 27894 | {
|
27807 | 27895 | "name": "ValueSanitizer",
|
27808 | 27896 | "kindString": "Type alias",
|
| 27897 | + "comment": { |
| 27898 | + "blockTags": [ |
| 27899 | + { |
| 27900 | + "tag": "@returns", |
| 27901 | + "content": [ |
| 27902 | + { |
| 27903 | + "text": "The value to write to the DOM. Usually the same as the input value,\n unless sanitization is needed." |
| 27904 | + } |
| 27905 | + ] |
| 27906 | + } |
| 27907 | + ], |
| 27908 | + "shortText": "A function which can sanitize values that will be written to a specific kind\nof DOM sink.", |
| 27909 | + "text": "See SanitizerFactory.\n" |
| 27910 | + }, |
27809 | 27911 | "sources": [
|
27810 | 27912 | {
|
27811 | 27913 | "fileName": "packages/lit-html/src/lit-html.ts",
|
|
0 commit comments