marko 5.25.9 → 5.25.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tags-html.d.ts +37 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.25.9",
3
+ "version": "5.25.11",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
package/tags-html.d.ts CHANGED
@@ -752,7 +752,7 @@ declare global {
752
752
  }
753
753
  interface FigCaption extends HTMLAttributes<HTMLElement> {}
754
754
  interface Figure extends HTMLAttributes<HTMLElement> {}
755
- interface Form extends HTMLAttributes<HTMLElement> {
755
+ interface Form extends HTMLAttributes<HTMLFormElement> {
756
756
  /**
757
757
  * Specifies the character encodings that are to be used for the form submission.
758
758
  * @see https://html.spec.whatwg.org/multipage/forms.html#attr-form-accept-charset
@@ -824,14 +824,28 @@ declare global {
824
824
  target?: AttrTarget;
825
825
  /** @deprecated */
826
826
  accept?: AttrString;
827
+
828
+ /**
829
+ * Fired at a form element when it is constructing the entry list
830
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-formdata
831
+ */
832
+ onFormData?: AttrEventHandler<FormDataEvent, HTMLFormElement>;
833
+ "on-formdata"?: this["onFormData"];
834
+
835
+ /**
836
+ * Fired when a form is submitted, either by user interaction or through a script.
837
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-submit
838
+ */
839
+ onSubmit?: AttrEventHandler<SubmitEvent, HTMLFormElement>;
840
+ "on-submit"?: this["onSubmit"];
827
841
  }
828
- interface H1 extends HTMLAttributes<HTMLFormElement> {}
842
+ interface H1 extends HTMLAttributes<HTMLHeadingElement> {}
829
843
  interface H2 extends HTMLAttributes<HTMLHeadingElement> {}
830
844
  interface H3 extends HTMLAttributes<HTMLHeadingElement> {}
831
845
  interface H4 extends HTMLAttributes<HTMLHeadingElement> {}
832
846
  interface H5 extends HTMLAttributes<HTMLHeadingElement> {}
833
847
  interface H6 extends HTMLAttributes<HTMLHeadingElement> {}
834
- interface Footer extends HTMLAttributes<HTMLHeadingElement> {}
848
+ interface Footer extends HTMLAttributes<HTMLElement> {}
835
849
  interface Head extends HTMLAttributes<HTMLHeadElement> {
836
850
  /** @deprecated */
837
851
  profile?: AttrString;
@@ -2303,14 +2317,25 @@ declare global {
2303
2317
  key?: AttrString;
2304
2318
 
2305
2319
  /**
2306
- * Tells Marko to avoid updating the element or it's contents (excluding custom tags which may rerender independently).
2320
+ * Tells Marko to avoid updating the element or its contents (excluding custom tags which may rerender independently).
2307
2321
  */
2308
2322
  "no-update"?: AttrBoolean;
2309
2323
 
2310
2324
  /**
2311
- * Tells Marko to avoid updating an elements contents (excluding custom tags which may rerender independently).
2325
+ * Tells Marko to avoid updating an element's contents (excluding custom tags which may rerender independently). Used instead of no-update when runtime functionality is needed.
2312
2326
  */
2313
2327
  "no-update-if"?: AttrBoolean;
2328
+
2329
+ /**
2330
+ * Tells Marko to avoid updating an element's body.
2331
+ */
2332
+ "no-update-body"?: AttrBoolean;
2333
+
2334
+ /**
2335
+ * Tells Marko to avoid updating an element's body. Used instead of no-update-body when runtime functionality is needed.
2336
+ * @see https://markojs.com/docs/syntax/#conditional-rendering
2337
+ */
2338
+ "no-update-body-if"?: AttrBoolean;
2314
2339
  }
2315
2340
 
2316
2341
  interface HTMLAttributes<T extends Element = Element>
@@ -3066,13 +3091,6 @@ declare global {
3066
3091
  onStalled?: AttrEventHandler<Event, T>;
3067
3092
  "on-stalled"?: this["onStalled"];
3068
3093
 
3069
- /**
3070
- * Fired when a form is submitted, either by user interaction or through a script.
3071
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-submit
3072
- */
3073
- onSubmit?: AttrEventHandler<SubmitEvent, T>;
3074
- "on-submit"?: this["onSubmit"];
3075
-
3076
3094
  /**
3077
3095
  * Fired when the user agent intentionally does not download media data.
3078
3096
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-suspend
@@ -3087,6 +3105,13 @@ declare global {
3087
3105
  onTimeUpdate?: AttrEventHandler<Event, T>;
3088
3106
  "on-timeupdate"?: this["onTimeUpdate"];
3089
3107
 
3108
+ /**
3109
+ * Fired at details elements when they open or close; fired on elements with the popover attribute when they are transitioning between showing and hidden
3110
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-toggle
3111
+ */
3112
+ onToggle?: AttrEventHandler<Event, T>;
3113
+ "on-toggle"?: this["onToggle"];
3114
+
3090
3115
  /**
3091
3116
  * Fired when a touch event is interrupted, such as by a modal window or an incoming phone call.
3092
3117
  * @see https://w3c.github.io/touch-events/#event-touchcancel