solid-js 1.7.7 → 1.7.9

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 (53) hide show
  1. package/dist/dev.cjs +24 -13
  2. package/dist/dev.js +555 -306
  3. package/dist/server.cjs +3 -3
  4. package/dist/server.js +177 -79
  5. package/dist/solid.cjs +24 -13
  6. package/dist/solid.js +482 -264
  7. package/h/dist/h.cjs +2 -2
  8. package/h/dist/h.js +36 -10
  9. package/h/jsx-runtime/dist/jsx.js +1 -1
  10. package/h/jsx-runtime/types/index.d.ts +11 -8
  11. package/h/jsx-runtime/types/jsx.d.ts +130 -100
  12. package/h/types/hyperscript.d.ts +11 -11
  13. package/h/types/index.d.ts +3 -2
  14. package/html/dist/html.cjs +2 -2
  15. package/html/dist/html.js +218 -96
  16. package/html/types/index.d.ts +3 -2
  17. package/html/types/lit.d.ts +45 -31
  18. package/package.json +1 -1
  19. package/store/dist/dev.cjs +34 -32
  20. package/store/dist/dev.js +141 -67
  21. package/store/dist/server.js +19 -8
  22. package/store/dist/store.cjs +34 -32
  23. package/store/dist/store.js +132 -64
  24. package/store/types/index.d.ts +21 -7
  25. package/store/types/modifiers.d.ts +6 -3
  26. package/store/types/mutable.d.ts +5 -2
  27. package/store/types/server.d.ts +12 -4
  28. package/store/types/store.d.ts +217 -63
  29. package/types/index.d.ts +69 -9
  30. package/types/jsx.d.ts +10 -6
  31. package/types/reactive/array.d.ts +12 -4
  32. package/types/reactive/observable.d.ts +25 -17
  33. package/types/reactive/scheduler.d.ts +9 -6
  34. package/types/reactive/signal.d.ts +227 -136
  35. package/types/render/Suspense.d.ts +5 -5
  36. package/types/render/component.d.ts +62 -31
  37. package/types/render/flow.d.ts +43 -31
  38. package/types/render/hydration.d.ts +13 -10
  39. package/types/server/index.d.ts +55 -2
  40. package/types/server/reactive.d.ts +67 -40
  41. package/types/server/rendering.d.ts +171 -95
  42. package/universal/dist/dev.js +28 -12
  43. package/universal/dist/universal.js +28 -12
  44. package/universal/types/index.d.ts +3 -1
  45. package/universal/types/universal.d.ts +0 -1
  46. package/web/dist/dev.js +610 -79
  47. package/web/dist/server.cjs +4 -4
  48. package/web/dist/server.js +180 -81
  49. package/web/dist/web.js +610 -79
  50. package/web/types/client.d.ts +2 -2
  51. package/web/types/core.d.ts +10 -1
  52. package/web/types/index.d.ts +27 -10
  53. package/web/types/server-mock.d.ts +47 -32
package/h/dist/h.cjs CHANGED
@@ -92,7 +92,7 @@ function createHyperScript(r) {
92
92
  return h;
93
93
  }
94
94
 
95
- var index = createHyperScript({
95
+ const h = createHyperScript({
96
96
  spread: web.spread,
97
97
  assign: web.assign,
98
98
  insert: web.insert,
@@ -101,4 +101,4 @@ var index = createHyperScript({
101
101
  SVGElements: web.SVGElements
102
102
  });
103
103
 
104
- module.exports = index;
104
+ module.exports = h;
package/h/dist/h.js CHANGED
@@ -1,4 +1,11 @@
1
- import { spread, assign, insert, createComponent, dynamicProperty, SVGElements } from 'solid-js/web';
1
+ import {
2
+ spread,
3
+ assign,
4
+ insert,
5
+ createComponent,
6
+ dynamicProperty,
7
+ SVGElements
8
+ } from "solid-js/web";
2
9
 
3
10
  const $ELEMENT = Symbol("hyper-element");
4
11
  function createHyperScript(r) {
@@ -17,9 +24,16 @@ function createHyperScript(r) {
17
24
  return ret;
18
25
  function item(l) {
19
26
  const type = typeof l;
20
- if (l == null) ;else if ("string" === type) {
21
- if (!e) parseClass(l);else e.appendChild(document.createTextNode(l));
22
- } else if ("number" === type || "boolean" === type || l instanceof Date || l instanceof RegExp) {
27
+ if (l == null);
28
+ else if ("string" === type) {
29
+ if (!e) parseClass(l);
30
+ else e.appendChild(document.createTextNode(l));
31
+ } else if (
32
+ "number" === type ||
33
+ "boolean" === type ||
34
+ l instanceof Date ||
35
+ l instanceof RegExp
36
+ ) {
23
37
  e.appendChild(document.createTextNode(l.toString()));
24
38
  } else if (Array.isArray(l)) {
25
39
  for (let i = 0; i < l.length; i++) item(l[i]);
@@ -34,12 +48,18 @@ function createHyperScript(r) {
34
48
  dynamic = true;
35
49
  } else if (d[k].get) dynamic = true;
36
50
  }
37
- dynamic ? r.spread(e, l, e instanceof SVGElement, !!args.length) : r.assign(e, l, e instanceof SVGElement, !!args.length);
51
+ dynamic
52
+ ? r.spread(e, l, e instanceof SVGElement, !!args.length)
53
+ : r.assign(e, l, e instanceof SVGElement, !!args.length);
38
54
  } else if ("function" === type) {
39
55
  if (!e) {
40
56
  let props,
41
57
  next = args[0];
42
- if (next == null || typeof next === "object" && !Array.isArray(next) && !(next instanceof Element)) props = args.shift();
58
+ if (
59
+ next == null ||
60
+ (typeof next === "object" && !Array.isArray(next) && !(next instanceof Element))
61
+ )
62
+ props = args.shift();
43
63
  props || (props = {});
44
64
  if (args.length) {
45
65
  props.children = args.length > 1 ? args : args[0];
@@ -55,7 +75,8 @@ function createHyperScript(r) {
55
75
  return list;
56
76
  };
57
77
  r.dynamicProperty(props, k);
58
- } else if (typeof d[k].value === "function" && !d[k].value.length) r.dynamicProperty(props, k);
78
+ } else if (typeof d[k].value === "function" && !d[k].value.length)
79
+ r.dynamicProperty(props, k);
59
80
  }
60
81
  e = r.createComponent(l, props);
61
82
  args = [];
@@ -72,7 +93,12 @@ function createHyperScript(r) {
72
93
  const v = m[i],
73
94
  s = v.substring(1, v.length);
74
95
  if (!v) continue;
75
- if (!e) e = r.SVGElements.has(v) ? document.createElementNS("http://www.w3.org/2000/svg", v) : document.createElement(v);else if (v[0] === ".") e.classList.add(s);else if (v[0] === "#") e.setAttribute("id", s);
96
+ if (!e)
97
+ e = r.SVGElements.has(v)
98
+ ? document.createElementNS("http://www.w3.org/2000/svg", v)
99
+ : document.createElement(v);
100
+ else if (v[0] === ".") e.classList.add(s);
101
+ else if (v[0] === "#") e.setAttribute("id", s);
76
102
  }
77
103
  }
78
104
  function detectMultiExpression(list) {
@@ -90,7 +116,7 @@ function createHyperScript(r) {
90
116
  return h;
91
117
  }
92
118
 
93
- var index = createHyperScript({
119
+ const h = createHyperScript({
94
120
  spread,
95
121
  assign,
96
122
  insert,
@@ -99,4 +125,4 @@ var index = createHyperScript({
99
125
  SVGElements
100
126
  });
101
127
 
102
- export { index as default };
128
+ export { h as default };
@@ -1,4 +1,4 @@
1
- import h from 'solid-js/h';
1
+ import h from "solid-js/h";
2
2
 
3
3
  function Fragment(props) {
4
4
  return props.children;
@@ -1,11 +1,14 @@
1
1
  export type { JSX } from "./jsx";
2
2
  import type { JSX } from "./jsx";
3
- declare function Fragment(props: {
4
- children: JSX.Element;
5
- }): JSX.Element;
6
- declare function jsx(type: any, props: any): () => (Node & {
7
- [key: string]: any;
8
- }) | (Node & {
9
- [key: string]: any;
10
- })[];
3
+ declare function Fragment(props: { children: JSX.Element }): JSX.Element;
4
+ declare function jsx(
5
+ type: any,
6
+ props: any
7
+ ): () =>
8
+ | (Node & {
9
+ [key: string]: any;
10
+ })
11
+ | (Node & {
12
+ [key: string]: any;
13
+ })[];
11
14
  export { jsx, jsx as jsxs, jsx as jsxDEV, Fragment };
@@ -1,4 +1,4 @@
1
- import * as csstype from 'csstype';
1
+ import * as csstype from "csstype";
2
2
 
3
3
  /**
4
4
  * Based on JSX types for Surplus and Inferno and adapted for `dom-expressions`.
@@ -9,7 +9,7 @@ import * as csstype from 'csstype';
9
9
  type DOMElement = Element;
10
10
 
11
11
  export namespace JSX {
12
- type FunctionMaybe<T = unknown> = ({ (): T }) | T;
12
+ type FunctionMaybe<T = unknown> = { (): T } | T;
13
13
  type Element =
14
14
  | Node
15
15
  | ArrayElement
@@ -61,7 +61,7 @@ export namespace JSX {
61
61
  };
62
62
  $ServerOnly?: boolean;
63
63
  }
64
- type Accessor<T> = () => T
64
+ type Accessor<T> = () => T;
65
65
  interface Directives {}
66
66
  interface DirectiveFunctions {
67
67
  [x: string]: (el: Element, accessor: Accessor<any>) => void;
@@ -74,7 +74,9 @@ export namespace JSX {
74
74
  [Key in keyof Directives as `use:${Key}`]?: Directives[Key];
75
75
  };
76
76
  type DirectiveFunctionAttributes<T> = {
77
- [K in keyof DirectiveFunctions as string extends K ? never : `use:${K}`]?: DirectiveFunctions[K] extends (
77
+ [K in keyof DirectiveFunctions as string extends K
78
+ ? never
79
+ : `use:${K}`]?: DirectiveFunctions[K] extends (
78
80
  el: infer E, // will be unknown if not provided
79
81
  ...rest: infer R // use rest so that we can check whether it's provided or not
80
82
  ) => void
@@ -95,13 +97,23 @@ export namespace JSX {
95
97
  };
96
98
  type OnAttributes<T> = {
97
99
  [Key in keyof CustomEvents as `on:${Key}`]?: EventHandler<T, CustomEvents[Key]>;
98
- }
100
+ };
99
101
  type OnCaptureAttributes<T> = {
100
- [Key in keyof CustomCaptureEvents as `oncapture:${Key}`]?: EventHandler<T, CustomCaptureEvents[Key]>;
101
- }
102
- interface DOMAttributes<T> extends CustomAttributes<T>, DirectiveAttributes, DirectiveFunctionAttributes<T>,
103
- PropAttributes, AttrAttributes, OnAttributes<T>, OnCaptureAttributes<T>,
104
- CustomEventHandlersCamelCase<T>, CustomEventHandlersLowerCase<T> {
102
+ [Key in keyof CustomCaptureEvents as `oncapture:${Key}`]?: EventHandler<
103
+ T,
104
+ CustomCaptureEvents[Key]
105
+ >;
106
+ };
107
+ interface DOMAttributes<T>
108
+ extends CustomAttributes<T>,
109
+ DirectiveAttributes,
110
+ DirectiveFunctionAttributes<T>,
111
+ PropAttributes,
112
+ AttrAttributes,
113
+ OnAttributes<T>,
114
+ OnCaptureAttributes<T>,
115
+ CustomEventHandlersCamelCase<T>,
116
+ CustomEventHandlersLowerCase<T> {
105
117
  children?: Element;
106
118
  innerHTML?: string;
107
119
  innerText?: string | number;
@@ -187,7 +199,8 @@ export namespace JSX {
187
199
  onProgress?: EventHandlerUnion<T, Event>;
188
200
  onRateChange?: EventHandlerUnion<T, Event>;
189
201
  onReset?: EventHandlerUnion<T, Event>;
190
- onScroll?: EventHandlerUnion<T, UIEvent>;
202
+ onScroll?: EventHandlerUnion<T, Event>;
203
+ onScrollEnd?: EventHandlerUnion<T, Event>;
191
204
  onSeeked?: EventHandlerUnion<T, Event>;
192
205
  onSeeking?: EventHandlerUnion<T, Event>;
193
206
  onSelect?: EventHandlerUnion<T, UIEvent>;
@@ -204,7 +217,10 @@ export namespace JSX {
204
217
  onTouchEnd?: EventHandlerUnion<T, TouchEvent>;
205
218
  onTouchMove?: EventHandlerUnion<T, TouchEvent>;
206
219
  onTouchStart?: EventHandlerUnion<T, TouchEvent>;
220
+ onTransitionStart?: EventHandlerUnion<T, TransitionEvent>;
207
221
  onTransitionEnd?: EventHandlerUnion<T, TransitionEvent>;
222
+ onTransitionRun?: EventHandlerUnion<T, TransitionEvent>;
223
+ onTransitionCancel?: EventHandlerUnion<T, TransitionEvent>;
208
224
  onVolumeChange?: EventHandlerUnion<T, Event>;
209
225
  onWaiting?: EventHandlerUnion<T, Event>;
210
226
  onWheel?: EventHandlerUnion<T, WheelEvent>;
@@ -270,7 +286,8 @@ export namespace JSX {
270
286
  onprogress?: EventHandlerUnion<T, Event>;
271
287
  onratechange?: EventHandlerUnion<T, Event>;
272
288
  onreset?: EventHandlerUnion<T, Event>;
273
- onscroll?: EventHandlerUnion<T, UIEvent>;
289
+ onscroll?: EventHandlerUnion<T, Event>;
290
+ onscrollend?: EventHandlerUnion<T, Event>;
274
291
  onseeked?: EventHandlerUnion<T, Event>;
275
292
  onseeking?: EventHandlerUnion<T, Event>;
276
293
  onselect?: EventHandlerUnion<T, UIEvent>;
@@ -287,7 +304,10 @@ export namespace JSX {
287
304
  ontouchend?: EventHandlerUnion<T, TouchEvent>;
288
305
  ontouchmove?: EventHandlerUnion<T, TouchEvent>;
289
306
  ontouchstart?: EventHandlerUnion<T, TouchEvent>;
307
+ ontransitionstart?: EventHandlerUnion<T, TransitionEvent>;
290
308
  ontransitionend?: EventHandlerUnion<T, TransitionEvent>;
309
+ ontransitionrun?: EventHandlerUnion<T, TransitionEvent>;
310
+ ontransitioncancel?: EventHandlerUnion<T, TransitionEvent>;
291
311
  onvolumechange?: EventHandlerUnion<T, Event>;
292
312
  onwaiting?: EventHandlerUnion<T, Event>;
293
313
  onwheel?: EventHandlerUnion<T, WheelEvent>;
@@ -295,7 +315,7 @@ export namespace JSX {
295
315
 
296
316
  interface CSSProperties extends csstype.PropertiesHyphen {
297
317
  // Override
298
- [key: `-${string}`]: string | number | undefined
318
+ [key: `-${string}`]: string | number | undefined;
299
319
  }
300
320
 
301
321
  type HTMLAutocapitalize = "off" | "none" | "on" | "sentences" | "words" | "characters";
@@ -538,76 +558,77 @@ export namespace JSX {
538
558
  /** Defines the human readable text alternative of aria-valuenow for a range widget. */
539
559
  "aria-valuetext"?: string;
540
560
  role?: FunctionMaybe<
541
- | "alert"
542
- | "alertdialog"
543
- | "application"
544
- | "article"
545
- | "banner"
546
- | "button"
547
- | "cell"
548
- | "checkbox"
549
- | "columnheader"
550
- | "combobox"
551
- | "complementary"
552
- | "contentinfo"
553
- | "definition"
554
- | "dialog"
555
- | "directory"
556
- | "document"
557
- | "feed"
558
- | "figure"
559
- | "form"
560
- | "grid"
561
- | "gridcell"
562
- | "group"
563
- | "heading"
564
- | "img"
565
- | "link"
566
- | "list"
567
- | "listbox"
568
- | "listitem"
569
- | "log"
570
- | "main"
571
- | "marquee"
572
- | "math"
573
- | "menu"
574
- | "menubar"
575
- | "menuitem"
576
- | "menuitemcheckbox"
577
- | "menuitemradio"
578
- | "meter"
579
- | "navigation"
580
- | "none"
581
- | "note"
582
- | "option"
583
- | "presentation"
584
- | "progressbar"
585
- | "radio"
586
- | "radiogroup"
587
- | "region"
588
- | "row"
589
- | "rowgroup"
590
- | "rowheader"
591
- | "scrollbar"
592
- | "search"
593
- | "searchbox"
594
- | "separator"
595
- | "slider"
596
- | "spinbutton"
597
- | "status"
598
- | "switch"
599
- | "tab"
600
- | "table"
601
- | "tablist"
602
- | "tabpanel"
603
- | "term"
604
- | "textbox"
605
- | "timer"
606
- | "toolbar"
607
- | "tooltip"
608
- | "tree"
609
- | "treegrid"
610
- | "treeitem">;
561
+ | "alert"
562
+ | "alertdialog"
563
+ | "application"
564
+ | "article"
565
+ | "banner"
566
+ | "button"
567
+ | "cell"
568
+ | "checkbox"
569
+ | "columnheader"
570
+ | "combobox"
571
+ | "complementary"
572
+ | "contentinfo"
573
+ | "definition"
574
+ | "dialog"
575
+ | "directory"
576
+ | "document"
577
+ | "feed"
578
+ | "figure"
579
+ | "form"
580
+ | "grid"
581
+ | "gridcell"
582
+ | "group"
583
+ | "heading"
584
+ | "img"
585
+ | "link"
586
+ | "list"
587
+ | "listbox"
588
+ | "listitem"
589
+ | "log"
590
+ | "main"
591
+ | "marquee"
592
+ | "math"
593
+ | "menu"
594
+ | "menubar"
595
+ | "menuitem"
596
+ | "menuitemcheckbox"
597
+ | "menuitemradio"
598
+ | "meter"
599
+ | "navigation"
600
+ | "none"
601
+ | "note"
602
+ | "option"
603
+ | "presentation"
604
+ | "progressbar"
605
+ | "radio"
606
+ | "radiogroup"
607
+ | "region"
608
+ | "row"
609
+ | "rowgroup"
610
+ | "rowheader"
611
+ | "scrollbar"
612
+ | "search"
613
+ | "searchbox"
614
+ | "separator"
615
+ | "slider"
616
+ | "spinbutton"
617
+ | "status"
618
+ | "switch"
619
+ | "tab"
620
+ | "table"
621
+ | "tablist"
622
+ | "tabpanel"
623
+ | "term"
624
+ | "textbox"
625
+ | "timer"
626
+ | "toolbar"
627
+ | "tooltip"
628
+ | "tree"
629
+ | "treegrid"
630
+ | "treeitem"
631
+ >;
611
632
  }
612
633
 
613
634
  interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
@@ -643,7 +664,9 @@ export namespace JSX {
643
664
  itemref?: FunctionMaybe<string>;
644
665
  part?: FunctionMaybe<string>;
645
666
  exportparts?: FunctionMaybe<string>;
646
- inputmode?: FunctionMaybe<"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search">;
667
+ inputmode?: FunctionMaybe<
668
+ "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search"
669
+ >;
647
670
  contentEditable?: FunctionMaybe<boolean | "inherit">;
648
671
  contextMenu?: FunctionMaybe<string>;
649
672
  tabIndex?: FunctionMaybe<number | string>;
@@ -654,7 +677,9 @@ export namespace JSX {
654
677
  itemId?: FunctionMaybe<string>;
655
678
  itemRef?: FunctionMaybe<string>;
656
679
  exportParts?: FunctionMaybe<string>;
657
- inputMode?: FunctionMaybe<"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search">;
680
+ inputMode?: FunctionMaybe<
681
+ "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search"
682
+ >;
658
683
  }
659
684
  interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
660
685
  download?: FunctionMaybe<any>;
@@ -741,7 +766,7 @@ export namespace JSX {
741
766
  name?: FunctionMaybe<string>;
742
767
  }
743
768
  interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
744
- acceptcharset?: FunctionMaybe<string>;
769
+ "accept-charset"?: FunctionMaybe<string>;
745
770
  action?: FunctionMaybe<string>;
746
771
  autocomplete?: FunctionMaybe<string>;
747
772
  encoding?: FunctionMaybe<HTMLFormEncType>;
@@ -750,7 +775,6 @@ export namespace JSX {
750
775
  name?: FunctionMaybe<string>;
751
776
  novalidate?: FunctionMaybe<boolean>;
752
777
  target?: FunctionMaybe<string>;
753
- acceptCharset?: FunctionMaybe<string>;
754
778
  noValidate?: FunctionMaybe<boolean>;
755
779
  }
756
780
  interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -852,8 +876,11 @@ export namespace JSX {
852
876
  as?: FunctionMaybe<HTMLLinkAs>;
853
877
  crossorigin?: FunctionMaybe<HTMLCrossorigin>;
854
878
  disabled?: FunctionMaybe<boolean>;
879
+ fetchpriority?: FunctionMaybe<"high" | "low" | "auto">;
855
880
  href?: FunctionMaybe<string>;
856
881
  hreflang?: FunctionMaybe<string>;
882
+ imagesizes?: FunctionMaybe<string>;
883
+ imagesrcset?: FunctionMaybe<string>;
857
884
  integrity?: FunctionMaybe<string>;
858
885
  media?: FunctionMaybe<string>;
859
886
  referrerpolicy?: FunctionMaybe<HTMLReferrerPolicy>;
@@ -885,9 +912,8 @@ export namespace JSX {
885
912
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
886
913
  charset?: FunctionMaybe<string>;
887
914
  content?: FunctionMaybe<string>;
888
- httpequiv?: FunctionMaybe<string>;
915
+ "http-equiv"?: FunctionMaybe<string>;
889
916
  name?: FunctionMaybe<string>;
890
- httpEquiv?: FunctionMaybe<string>;
891
917
  }
892
918
  interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
893
919
  form?: FunctionMaybe<string>;
@@ -1017,7 +1043,7 @@ export namespace JSX {
1017
1043
  rowspan?: FunctionMaybe<number | string>;
1018
1044
  colSpan?: FunctionMaybe<number | string>;
1019
1045
  rowSpan?: FunctionMaybe<number | string>;
1020
- scope?: FunctionMaybe<'col' | 'row' | 'rowgroup' | 'colgroup'>;
1046
+ scope?: FunctionMaybe<"col" | "row" | "rowgroup" | "colgroup">;
1021
1047
  }
1022
1048
  interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1023
1049
  datetime?: FunctionMaybe<string>;
@@ -1223,26 +1249,30 @@ export namespace JSX {
1223
1249
  | "stroke"
1224
1250
  | "all"
1225
1251
  | "none"
1226
- | "inherit">;
1227
- "shape-rendering"?: FunctionMaybe<"auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision" | "inherit">;
1252
+ | "inherit"
1253
+ >;
1254
+ "shape-rendering"?: FunctionMaybe<
1255
+ "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision" | "inherit"
1256
+ >;
1228
1257
  "stop-color"?: FunctionMaybe<string>;
1229
1258
  "stop-opacity"?: FunctionMaybe<number | string | "inherit">;
1230
1259
  stroke?: FunctionMaybe<string>;
1231
1260
  "stroke-dasharray"?: FunctionMaybe<string>;
1232
1261
  "stroke-dashoffset"?: FunctionMaybe<number | string>;
1233
1262
  "stroke-linecap"?: FunctionMaybe<"butt" | "round" | "square" | "inherit">;
1234
- "stroke-linejoin"?: FunctionMaybe<"arcs" | "bevel" | "miter" | "miter-clip" | "round" | "inherit">;
1263
+ "stroke-linejoin"?: FunctionMaybe<
1264
+ "arcs" | "bevel" | "miter" | "miter-clip" | "round" | "inherit"
1265
+ >;
1235
1266
  "stroke-miterlimit"?: FunctionMaybe<number | string | "inherit">;
1236
1267
  "stroke-opacity"?: FunctionMaybe<number | string | "inherit">;
1237
1268
  "stroke-width"?: FunctionMaybe<number | string>;
1238
1269
  "text-anchor"?: FunctionMaybe<"start" | "middle" | "end" | "inherit">;
1239
- "text-decoration"?: FunctionMaybe<"none" | "underline" | "overline" | "line-through" | "blink" | "inherit">;
1270
+ "text-decoration"?: FunctionMaybe<
1271
+ "none" | "underline" | "overline" | "line-through" | "blink" | "inherit"
1272
+ >;
1240
1273
  "text-rendering"?: FunctionMaybe<
1241
- | "auto"
1242
- | "optimizeSpeed"
1243
- | "optimizeLegibility"
1244
- | "geometricPrecision"
1245
- | "inherit">;
1274
+ "auto" | "optimizeSpeed" | "optimizeLegibility" | "geometricPrecision" | "inherit"
1275
+ >;
1246
1276
  "unicode-bidi"?: FunctionMaybe<string>;
1247
1277
  visibility?: FunctionMaybe<"visible" | "hidden" | "collapse" | "inherit">;
1248
1278
  "word-spacing"?: FunctionMaybe<number | string>;
@@ -1293,7 +1323,7 @@ export namespace JSX {
1293
1323
  gradientUnits?: FunctionMaybe<SVGUnits>;
1294
1324
  gradientTransform?: FunctionMaybe<string>;
1295
1325
  spreadMethod?: FunctionMaybe<"pad" | "reflect" | "repeat">;
1296
- href?: FunctionMaybe<string>
1326
+ href?: FunctionMaybe<string>;
1297
1327
  }
1298
1328
  interface GraphicsElementSVGAttributes<T>
1299
1329
  extends CoreSVGAttributes<T>,
@@ -1,20 +1,20 @@
1
1
  type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;
2
2
  interface Runtime {
3
- insert(parent: MountableElement, accessor: any, marker?: Node | null, init?: any): any;
4
- spread(node: Element, accessor: any, isSVG?: Boolean, skipChildren?: Boolean): void;
5
- assign(node: Element, props: any, isSVG?: Boolean, skipChildren?: Boolean): void;
6
- createComponent(Comp: (props: any) => any, props: any): any;
7
- dynamicProperty(props: any, key: string): any;
8
- SVGElements: Set<string>;
3
+ insert(parent: MountableElement, accessor: any, marker?: Node | null, init?: any): any;
4
+ spread(node: Element, accessor: any, isSVG?: Boolean, skipChildren?: Boolean): void;
5
+ assign(node: Element, props: any, isSVG?: Boolean, skipChildren?: Boolean): void;
6
+ createComponent(Comp: (props: any) => any, props: any): any;
7
+ dynamicProperty(props: any, key: string): any;
8
+ SVGElements: Set<string>;
9
9
  }
10
10
  type ExpandableNode = Node & {
11
- [key: string]: any;
11
+ [key: string]: any;
12
12
  };
13
13
  export type HyperScript = {
14
- (...args: any[]): () => ExpandableNode | ExpandableNode[];
15
- Fragment: (props: {
16
- children: (() => ExpandableNode) | (() => ExpandableNode)[];
17
- }) => ExpandableNode[];
14
+ (...args: any[]): () => ExpandableNode | ExpandableNode[];
15
+ Fragment: (props: {
16
+ children: (() => ExpandableNode) | (() => ExpandableNode)[];
17
+ }) => ExpandableNode[];
18
18
  };
19
19
  export declare function createHyperScript(r: Runtime): HyperScript;
20
20
  export {};
@@ -1,2 +1,3 @@
1
- declare const _default: import("hyper-dom-expressions").HyperScript;
2
- export default _default;
1
+ import type { HyperScript } from "./hyperscript";
2
+ declare const h: HyperScript;
3
+ export default h;
@@ -555,7 +555,7 @@ function createHTML(r, {
555
555
  return html;
556
556
  }
557
557
 
558
- var index = createHTML({
558
+ const html = createHTML({
559
559
  effect: web.effect,
560
560
  style: web.style,
561
561
  insert: web.insert,
@@ -578,4 +578,4 @@ var index = createHTML({
578
578
  SVGNamespace: web.SVGNamespace
579
579
  });
580
580
 
581
- module.exports = index;
581
+ module.exports = html;