marko 5.35.7 → 5.35.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/bin/markoc.js +0 -2
  2. package/dist/compiler/index.js +2 -0
  3. package/dist/core-tags/core/await/AsyncValue.js +1 -0
  4. package/dist/core-tags/core/await/renderer.js +1 -0
  5. package/dist/node-require/hot-reload.js +1 -3
  6. package/dist/node-require/index.js +1 -1
  7. package/dist/node_modules/@internal/components-define-widget-legacy/index-browser.js +4 -2
  8. package/dist/node_modules/@internal/components-entry/index.js +13 -13
  9. package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +4 -3
  10. package/dist/node_modules/@internal/components-registry/index-browser.js +40 -36
  11. package/dist/node_modules/@internal/components-registry/index.js +2 -2
  12. package/dist/node_modules/@internal/components-util/index-browser.js +16 -16
  13. package/dist/node_modules/@internal/components-util/index.js +7 -7
  14. package/dist/node_modules/@internal/create-readable/index-browser.js +2 -2
  15. package/dist/node_modules/@internal/create-readable/index.js +9 -9
  16. package/dist/node_modules/@internal/preserve-tag/index-browser.js +5 -5
  17. package/dist/node_modules/@internal/preserve-tag/index.js +1 -1
  18. package/dist/node_modules/@internal/require/index-webpack.js +1 -0
  19. package/dist/node_modules/@internal/set-immediate/index-browser.js +1 -1
  20. package/dist/node_modules/@internal/set-immediate/index-worker.js +2 -2
  21. package/dist/node_modules/@internal/set-immediate/index.js +2 -2
  22. package/dist/runtime/RenderResult.js +4 -3
  23. package/dist/runtime/components/Component.js +107 -106
  24. package/dist/runtime/components/ComponentDef.js +25 -25
  25. package/dist/runtime/components/ComponentsContext.js +6 -6
  26. package/dist/runtime/components/GlobalComponentsContext.js +3 -3
  27. package/dist/runtime/components/KeySequence.js +3 -3
  28. package/dist/runtime/components/ServerComponent.js +8 -7
  29. package/dist/runtime/components/State.js +20 -24
  30. package/dist/runtime/components/attach-detach.js +7 -7
  31. package/dist/runtime/components/defineComponent.js +0 -1
  32. package/dist/runtime/components/dom-data.js +5 -5
  33. package/dist/runtime/components/event-delegation.js +10 -10
  34. package/dist/runtime/components/legacy/defineRenderer-legacy.js +14 -13
  35. package/dist/runtime/components/legacy/dependencies/index.js +9 -10
  36. package/dist/runtime/components/legacy/jquery.js +1 -0
  37. package/dist/runtime/components/legacy/renderer-legacy.js +33 -32
  38. package/dist/runtime/components/renderer.js +29 -29
  39. package/dist/runtime/components/update-manager.js +4 -4
  40. package/dist/runtime/createOut.js +1 -1
  41. package/dist/runtime/dom-insert.js +5 -5
  42. package/dist/runtime/helpers/_change-case.js +2 -2
  43. package/dist/runtime/helpers/dynamic-tag.js +18 -13
  44. package/dist/runtime/helpers/render-tag.js +1 -1
  45. package/dist/runtime/helpers/serialize-noop.js +5 -0
  46. package/dist/runtime/helpers/style-value.js +1 -1
  47. package/dist/runtime/helpers/tags-compat/dom-debug.mjs +1 -0
  48. package/dist/runtime/helpers/tags-compat/dom.mjs +1 -0
  49. package/dist/runtime/helpers/tags-compat/html-debug.js +1 -1
  50. package/dist/runtime/helpers/tags-compat/html-debug.mjs +3 -2
  51. package/dist/runtime/helpers/tags-compat/html.js +3 -1
  52. package/dist/runtime/helpers/tags-compat/html.mjs +3 -2
  53. package/dist/runtime/helpers/tags-compat/runtime-dom.js +38 -35
  54. package/dist/runtime/helpers/tags-compat/runtime-html.js +24 -65
  55. package/dist/runtime/html/AsyncStream.js +25 -24
  56. package/dist/runtime/html/BufferedWriter.js +2 -2
  57. package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
  58. package/dist/runtime/html/helpers/attr.js +4 -3
  59. package/dist/runtime/html/helpers/attrs.js +1 -0
  60. package/dist/runtime/html/helpers/data-marko.js +2 -3
  61. package/dist/runtime/html/helpers/escape-quotes.js +1 -1
  62. package/dist/runtime/html/helpers/escape-xml.js +1 -1
  63. package/dist/runtime/html/helpers/merge-attrs.js +1 -0
  64. package/dist/runtime/html/index.js +1 -1
  65. package/dist/runtime/renderable.js +5 -5
  66. package/dist/runtime/vdom/AsyncVDOMBuilder.js +86 -85
  67. package/dist/runtime/vdom/VComponent.js +4 -4
  68. package/dist/runtime/vdom/VDocumentFragment.js +7 -7
  69. package/dist/runtime/vdom/VElement.js +41 -42
  70. package/dist/runtime/vdom/VFragment.js +9 -9
  71. package/dist/runtime/vdom/VNode.js +34 -35
  72. package/dist/runtime/vdom/VText.js +8 -8
  73. package/dist/runtime/vdom/helpers/attrs.js +1 -0
  74. package/dist/runtime/vdom/helpers/const-element.js +3 -3
  75. package/dist/runtime/vdom/hot-reload.js +14 -14
  76. package/dist/runtime/vdom/index.js +1 -1
  77. package/dist/runtime/vdom/morphdom/fragment.js +5 -5
  78. package/dist/runtime/vdom/morphdom/helpers.js +5 -5
  79. package/dist/runtime/vdom/morphdom/index.js +67 -68
  80. package/dist/runtime/vdom/vdom.js +14 -14
  81. package/dist/taglib/index.js +1 -0
  82. package/index.d.ts +1 -5
  83. package/package.json +4 -4
  84. package/src/compiler/index.js +2 -0
  85. package/src/core-tags/core/await/AsyncValue.js +1 -0
  86. package/src/core-tags/core/await/renderer.js +1 -0
  87. package/src/node-require/hot-reload.js +0 -2
  88. package/src/node-require/index.js +1 -1
  89. package/src/node_modules/@internal/components-define-widget-legacy/index-browser.js +4 -2
  90. package/src/node_modules/@internal/components-entry/index.js +2 -2
  91. package/src/node_modules/@internal/components-entry-legacy/index-browser.js +1 -0
  92. package/src/node_modules/@internal/components-registry/index-browser.js +8 -4
  93. package/src/node_modules/@internal/components-util/index-browser.js +1 -1
  94. package/src/node_modules/@internal/create-readable/index-browser.js +1 -1
  95. package/src/node_modules/@internal/require/index-webpack.js +1 -0
  96. package/src/runtime/RenderResult.js +1 -0
  97. package/src/runtime/components/Component.js +2 -1
  98. package/src/runtime/components/ComponentDef.js +4 -4
  99. package/src/runtime/components/ServerComponent.js +1 -0
  100. package/src/runtime/components/State.js +6 -10
  101. package/src/runtime/components/defineComponent.js +0 -1
  102. package/src/runtime/components/legacy/defineRenderer-legacy.js +1 -0
  103. package/src/runtime/components/legacy/dependencies/index.js +0 -1
  104. package/src/runtime/components/legacy/jquery.js +1 -0
  105. package/src/runtime/components/legacy/renderer-legacy.js +1 -0
  106. package/src/runtime/helpers/dynamic-tag.js +11 -6
  107. package/src/runtime/helpers/serialize-noop.js +5 -0
  108. package/src/runtime/helpers/tags-compat/dom-debug.mjs +1 -0
  109. package/src/runtime/helpers/tags-compat/dom.mjs +1 -0
  110. package/src/runtime/helpers/tags-compat/html-debug.js +1 -1
  111. package/src/runtime/helpers/tags-compat/html-debug.mjs +3 -2
  112. package/src/runtime/helpers/tags-compat/html.js +3 -1
  113. package/src/runtime/helpers/tags-compat/html.mjs +3 -2
  114. package/src/runtime/helpers/tags-compat/runtime-dom.js +23 -20
  115. package/src/runtime/helpers/tags-compat/runtime-html.js +18 -59
  116. package/src/runtime/html/AsyncStream.js +1 -0
  117. package/src/runtime/html/helpers/attr.js +1 -0
  118. package/src/runtime/html/helpers/attrs.js +1 -0
  119. package/src/runtime/html/helpers/data-marko.js +0 -1
  120. package/src/runtime/html/helpers/merge-attrs.js +1 -0
  121. package/src/runtime/vdom/AsyncVDOMBuilder.js +1 -0
  122. package/src/runtime/vdom/VElement.js +1 -2
  123. package/src/runtime/vdom/VNode.js +0 -1
  124. package/src/runtime/vdom/helpers/attrs.js +1 -0
  125. package/src/runtime/vdom/morphdom/index.js +0 -1
  126. package/src/taglib/index.js +1 -0
  127. package/tags-html.d.ts +7 -9
package/tags-html.d.ts CHANGED
@@ -188,7 +188,6 @@ declare global {
188
188
  | "prev"
189
189
  | "search"
190
190
  | "tag"
191
- // eslint-disable-next-line @typescript-eslint/ban-types
192
191
  | (string & {});
193
192
 
194
193
  /**
@@ -316,7 +315,6 @@ declare global {
316
315
  | "nofullscreen"
317
316
  | "noplaybackrate"
318
317
  | "noremoteplayback"
319
- // eslint-disable-next-line @typescript-eslint/ban-types
320
318
  | (string & {});
321
319
 
322
320
  /**
@@ -820,7 +818,6 @@ declare global {
820
818
  | "opener"
821
819
  | "prev"
822
820
  | "search"
823
- // eslint-disable-next-line @typescript-eslint/ban-types
824
821
  | (string & {});
825
822
  /**
826
823
  * Specifies the browsing context in which the linked resource will be opened.
@@ -854,6 +851,8 @@ declare global {
854
851
  interface Head extends HTMLAttributes<HTMLHeadElement> {
855
852
  /** @deprecated */
856
853
  profile?: AttrString;
854
+ /** @see https://ogp.me/ */
855
+ prefix?: AttrString;
857
856
  }
858
857
  interface Header extends HTMLAttributes<HTMLElement> {}
859
858
  interface HGroup extends HTMLAttributes<HTMLElement> {}
@@ -876,6 +875,8 @@ declare global {
876
875
  manifest?: AttrString;
877
876
  /** @deprecated */
878
877
  version?: AttrString;
878
+ /** @see https://ogp.me/ */
879
+ prefix?: AttrString;
879
880
  }
880
881
  interface I extends HTMLAttributes<HTMLElement> {}
881
882
  interface IFrame extends HTMLAttributes<HTMLIFrameElement> {
@@ -930,7 +931,6 @@ declare global {
930
931
  | "allow-top-navigation-by-user-activation"
931
932
  | "allow-top-navigation-to-custom-protocols"
932
933
  | "allow-top-navigation"
933
- // eslint-disable-next-line @typescript-eslint/ban-types
934
934
  | (string & {});
935
935
  /**
936
936
  * The URL of the page to embed in the iframe.
@@ -1435,7 +1435,6 @@ declare global {
1435
1435
  | "prev"
1436
1436
  | "search"
1437
1437
  | "stylesheet"
1438
- // eslint-disable-next-line @typescript-eslint/ban-types
1439
1438
  | (string & {});
1440
1439
 
1441
1440
  /**
@@ -1509,6 +1508,9 @@ declare global {
1509
1508
  * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-name
1510
1509
  */
1511
1510
  name?: AttrString;
1511
+
1512
+ /** @see https://ogp.me/ */
1513
+ property?: AttrString;
1512
1514
  }
1513
1515
  interface Meter extends HTMLAttributes<HTMLMeterElement> {
1514
1516
  /**
@@ -1786,7 +1788,6 @@ declare global {
1786
1788
  | "application/javascript"
1787
1789
  | "module"
1788
1790
  | "import-map"
1789
- // eslint-disable-next-line @typescript-eslint/ban-types
1790
1791
  | (string & {});
1791
1792
 
1792
1793
  /** @deprecated */
@@ -2244,7 +2245,6 @@ declare global {
2244
2245
  | "nofullscreen"
2245
2246
  | "noplaybackrate"
2246
2247
  | "noremoteplayback"
2247
- // eslint-disable-next-line @typescript-eslint/ban-types
2248
2248
  | (string & {});
2249
2249
 
2250
2250
  /**
@@ -3780,7 +3780,6 @@ type AttrTarget =
3780
3780
  | "_parent"
3781
3781
  | "_self"
3782
3782
  | "_top"
3783
- // eslint-disable-next-line @typescript-eslint/ban-types
3784
3783
  | (string & {});
3785
3784
  type AttrReferrerPolicy =
3786
3785
  | AttrMissing
@@ -3853,5 +3852,4 @@ type AttrAutoComplete =
3853
3852
  | "mobile"
3854
3853
  | "fax"
3855
3854
  | "pager"
3856
- // eslint-disable-next-line @typescript-eslint/ban-types
3857
3855
  | (string & {});