@blinkk/root 2.5.16 → 3.0.1-alpha.1

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 (39) hide show
  1. package/dist/chunk-3OVMCKPA.js +416 -0
  2. package/dist/chunk-3OVMCKPA.js.map +1 -0
  3. package/dist/chunk-CY5IQ4AQ.js +73 -0
  4. package/dist/chunk-CY5IQ4AQ.js.map +1 -0
  5. package/dist/chunk-PVBPP5LN.js +854 -0
  6. package/dist/chunk-PVBPP5LN.js.map +1 -0
  7. package/dist/{chunk-ZOU2UDXE.js → chunk-RRJ3JKJD.js} +56 -33
  8. package/dist/chunk-RRJ3JKJD.js.map +1 -0
  9. package/dist/{chunk-6FDF3DXT.js → chunk-XSNCF7WU.js} +1 -1
  10. package/dist/chunk-XSNCF7WU.js.map +1 -0
  11. package/dist/cli.d.ts +3 -1
  12. package/dist/cli.js +4 -4
  13. package/dist/core.d.ts +4 -2
  14. package/dist/core.js +10 -4
  15. package/dist/core.js.map +1 -1
  16. package/dist/functions.js +4 -4
  17. package/dist/jsx/jsx-dev-runtime.d.ts +1 -0
  18. package/dist/jsx/jsx-dev-runtime.js +11 -0
  19. package/dist/jsx/jsx-dev-runtime.js.map +1 -0
  20. package/dist/jsx/jsx-runtime.d.ts +1 -0
  21. package/dist/jsx/jsx-runtime.js +19 -0
  22. package/dist/jsx/jsx-runtime.js.map +1 -0
  23. package/dist/jsx-C8BaDh-4.d.ts +14 -0
  24. package/dist/jsx-dev-runtime-DUJrvx5P.d.ts +677 -0
  25. package/dist/jsx.d.ts +2 -0
  26. package/dist/jsx.js +23 -0
  27. package/dist/jsx.js.map +1 -0
  28. package/dist/middleware.d.ts +4 -2
  29. package/dist/node.d.ts +36 -2
  30. package/dist/node.js +6 -2
  31. package/dist/render.d.ts +3 -1
  32. package/dist/render.js +86 -16
  33. package/dist/render.js.map +1 -1
  34. package/dist/{types-BXpvdaTX.d.ts → types-Cksf99CK.d.ts} +100 -1
  35. package/package.json +21 -8
  36. package/dist/chunk-6FDF3DXT.js.map +0 -1
  37. package/dist/chunk-ISNB54FM.js +0 -406
  38. package/dist/chunk-ISNB54FM.js.map +0 -1
  39. package/dist/chunk-ZOU2UDXE.js.map +0 -1
@@ -0,0 +1,677 @@
1
+ /**
2
+ * @module types
3
+ *
4
+ * JSX namespace and HTML attribute type definitions for the Root.js SSR
5
+ * JSX runtime. These types allow TypeScript to type-check JSX expressions
6
+ * when `jsxImportSource` points to this module.
7
+ */
8
+
9
+ interface DOMAttributes {
10
+ children?: ComponentChildren;
11
+ dangerouslySetInnerHTML?: {
12
+ __html: string;
13
+ };
14
+ onCopy?: EventHandler;
15
+ onCut?: EventHandler;
16
+ onPaste?: EventHandler;
17
+ onKeyDown?: EventHandler;
18
+ onKeyPress?: EventHandler;
19
+ onKeyUp?: EventHandler;
20
+ onFocus?: EventHandler;
21
+ onBlur?: EventHandler;
22
+ onChange?: EventHandler;
23
+ onInput?: EventHandler;
24
+ onSubmit?: EventHandler;
25
+ onReset?: EventHandler;
26
+ onClick?: EventHandler;
27
+ onContextMenu?: EventHandler;
28
+ onDoubleClick?: EventHandler;
29
+ onDrag?: EventHandler;
30
+ onDragEnd?: EventHandler;
31
+ onDragEnter?: EventHandler;
32
+ onDragExit?: EventHandler;
33
+ onDragLeave?: EventHandler;
34
+ onDragOver?: EventHandler;
35
+ onDragStart?: EventHandler;
36
+ onDrop?: EventHandler;
37
+ onMouseDown?: EventHandler;
38
+ onMouseEnter?: EventHandler;
39
+ onMouseLeave?: EventHandler;
40
+ onMouseMove?: EventHandler;
41
+ onMouseOut?: EventHandler;
42
+ onMouseOver?: EventHandler;
43
+ onMouseUp?: EventHandler;
44
+ onTouchCancel?: EventHandler;
45
+ onTouchEnd?: EventHandler;
46
+ onTouchMove?: EventHandler;
47
+ onTouchStart?: EventHandler;
48
+ onScroll?: EventHandler;
49
+ onAnimationStart?: EventHandler;
50
+ onAnimationEnd?: EventHandler;
51
+ onAnimationIteration?: EventHandler;
52
+ onTransitionEnd?: EventHandler;
53
+ onLoad?: EventHandler;
54
+ onError?: EventHandler;
55
+ }
56
+ type EventHandler = (...args: any[]) => void;
57
+ interface AriaAttributes {
58
+ role?: string;
59
+ 'aria-activedescendant'?: string;
60
+ 'aria-atomic'?: boolean | 'false' | 'true';
61
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
62
+ 'aria-busy'?: boolean | 'false' | 'true';
63
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
64
+ 'aria-colcount'?: number;
65
+ 'aria-colindex'?: number;
66
+ 'aria-colspan'?: number;
67
+ 'aria-controls'?: string;
68
+ 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
69
+ 'aria-describedby'?: string;
70
+ 'aria-details'?: string;
71
+ 'aria-disabled'?: boolean | 'false' | 'true';
72
+ 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
73
+ 'aria-errormessage'?: string;
74
+ 'aria-expanded'?: boolean | 'false' | 'true';
75
+ 'aria-flowto'?: string;
76
+ 'aria-grabbed'?: boolean | 'false' | 'true';
77
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
78
+ 'aria-hidden'?: boolean | 'false' | 'true';
79
+ 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling';
80
+ 'aria-keyshortcuts'?: string;
81
+ 'aria-label'?: string;
82
+ 'aria-labelledby'?: string;
83
+ 'aria-level'?: number;
84
+ 'aria-live'?: 'off' | 'assertive' | 'polite';
85
+ 'aria-modal'?: boolean | 'false' | 'true';
86
+ 'aria-multiline'?: boolean | 'false' | 'true';
87
+ 'aria-multiselectable'?: boolean | 'false' | 'true';
88
+ 'aria-orientation'?: 'horizontal' | 'vertical';
89
+ 'aria-owns'?: string;
90
+ 'aria-placeholder'?: string;
91
+ 'aria-posinset'?: number;
92
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
93
+ 'aria-readonly'?: boolean | 'false' | 'true';
94
+ 'aria-relevant'?: string;
95
+ 'aria-required'?: boolean | 'false' | 'true';
96
+ 'aria-roledescription'?: string;
97
+ 'aria-rowcount'?: number;
98
+ 'aria-rowindex'?: number;
99
+ 'aria-rowspan'?: number;
100
+ 'aria-selected'?: boolean | 'false' | 'true';
101
+ 'aria-setsize'?: number;
102
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
103
+ 'aria-valuemax'?: number;
104
+ 'aria-valuemin'?: number;
105
+ 'aria-valuenow'?: number;
106
+ 'aria-valuetext'?: string;
107
+ }
108
+ /**
109
+ * Common HTML attributes shared by all HTML elements.
110
+ * The type parameter `T` is retained for API compatibility with Preact's
111
+ * `HTMLAttributes<HTMLElement>` pattern, but is unused at runtime since
112
+ * this is an SSR-only renderer.
113
+ */
114
+ interface HTMLAttributes<T = HTMLElement> extends DOMAttributes, AriaAttributes {
115
+ accept?: string;
116
+ acceptCharset?: string;
117
+ accessKey?: string;
118
+ action?: string;
119
+ allow?: string;
120
+ allowFullScreen?: boolean;
121
+ allowTransparency?: boolean;
122
+ alt?: string;
123
+ as?: string;
124
+ async?: boolean;
125
+ autoComplete?: string;
126
+ autoCorrect?: string;
127
+ autoFocus?: boolean;
128
+ autoPlay?: boolean;
129
+ capture?: boolean | string;
130
+ cellPadding?: number | string;
131
+ cellSpacing?: number | string;
132
+ charSet?: string;
133
+ challenge?: string;
134
+ checked?: boolean;
135
+ cite?: string;
136
+ class?: string;
137
+ className?: string;
138
+ cols?: number;
139
+ colSpan?: number;
140
+ content?: string;
141
+ contentEditable?: boolean | 'true' | 'false' | 'inherit';
142
+ contextMenu?: string;
143
+ controls?: boolean;
144
+ controlsList?: string;
145
+ coords?: string;
146
+ crossOrigin?: string;
147
+ data?: string;
148
+ dateTime?: string;
149
+ default?: boolean;
150
+ defer?: boolean;
151
+ dir?: 'auto' | 'ltr' | 'rtl';
152
+ disabled?: boolean;
153
+ disableRemotePlayback?: boolean;
154
+ download?: string | boolean;
155
+ decoding?: 'sync' | 'async' | 'auto';
156
+ draggable?: boolean;
157
+ encType?: string;
158
+ enterKeyHint?: string;
159
+ for?: string;
160
+ form?: string;
161
+ formAction?: string;
162
+ formEncType?: string;
163
+ formMethod?: string;
164
+ formNoValidate?: boolean;
165
+ formTarget?: string;
166
+ frameBorder?: number | string;
167
+ headers?: string;
168
+ height?: number | string;
169
+ hidden?: boolean | string;
170
+ high?: number;
171
+ href?: string;
172
+ hrefLang?: string;
173
+ htmlFor?: string;
174
+ httpEquiv?: string;
175
+ icon?: string;
176
+ id?: string;
177
+ importance?: 'auto' | 'high' | 'low';
178
+ inputMode?: string;
179
+ integrity?: string;
180
+ is?: string;
181
+ key?: string | number;
182
+ kind?: string;
183
+ label?: string;
184
+ lang?: string;
185
+ list?: string;
186
+ loading?: 'eager' | 'lazy';
187
+ loop?: boolean;
188
+ low?: number;
189
+ manifest?: string;
190
+ marginHeight?: number;
191
+ marginWidth?: number;
192
+ max?: number | string;
193
+ maxLength?: number;
194
+ media?: string;
195
+ mediaGroup?: string;
196
+ method?: string;
197
+ min?: number | string;
198
+ minLength?: number;
199
+ multiple?: boolean;
200
+ muted?: boolean;
201
+ name?: string;
202
+ noModule?: boolean;
203
+ nonce?: string;
204
+ noValidate?: boolean;
205
+ open?: boolean;
206
+ optimum?: number;
207
+ part?: string;
208
+ pattern?: string;
209
+ placeholder?: string;
210
+ playsInline?: boolean;
211
+ poster?: string;
212
+ preload?: string;
213
+ radioGroup?: string;
214
+ readOnly?: boolean;
215
+ referrerPolicy?: string;
216
+ rel?: string;
217
+ required?: boolean;
218
+ reversed?: boolean;
219
+ rows?: number;
220
+ rowSpan?: number;
221
+ sandbox?: string;
222
+ scope?: string;
223
+ scoped?: boolean;
224
+ scrolling?: string;
225
+ seamless?: boolean;
226
+ selected?: boolean;
227
+ shape?: string;
228
+ size?: number;
229
+ sizes?: string;
230
+ slot?: string;
231
+ span?: number;
232
+ spellcheck?: boolean;
233
+ src?: string;
234
+ srcDoc?: string;
235
+ srcLang?: string;
236
+ srcSet?: string;
237
+ start?: number;
238
+ step?: number | string;
239
+ style?: string | Record<string, string | number>;
240
+ summary?: string;
241
+ tabIndex?: number;
242
+ target?: string;
243
+ title?: string;
244
+ translate?: 'yes' | 'no';
245
+ type?: string;
246
+ useMap?: string;
247
+ value?: string | string[] | number;
248
+ volume?: number;
249
+ width?: number | string;
250
+ wmode?: string;
251
+ wrap?: string;
252
+ autocapitalize?: string;
253
+ disablePictureInPicture?: boolean;
254
+ results?: number;
255
+ security?: string;
256
+ unselectable?: 'on' | 'off';
257
+ [key: `data-${string}`]: string | number | boolean | undefined;
258
+ }
259
+ /**
260
+ * SVG-specific attributes.
261
+ */
262
+ interface SVGAttributes<T = SVGElement> extends HTMLAttributes<T> {
263
+ accentHeight?: number | string;
264
+ accumulate?: 'none' | 'sum';
265
+ additive?: 'replace' | 'sum';
266
+ alignmentBaseline?: string;
267
+ allowReorder?: 'no' | 'yes';
268
+ clipPath?: string;
269
+ clipPathUnits?: string;
270
+ clipRule?: string;
271
+ colorInterpolation?: string;
272
+ colorInterpolationFilters?: string;
273
+ cursor?: string;
274
+ cx?: number | string;
275
+ cy?: number | string;
276
+ d?: string;
277
+ dominantBaseline?: string;
278
+ dx?: number | string;
279
+ dy?: number | string;
280
+ fill?: string;
281
+ fillOpacity?: number | string;
282
+ fillRule?: 'nonzero' | 'evenodd' | 'inherit';
283
+ filter?: string;
284
+ floodColor?: string;
285
+ floodOpacity?: number | string;
286
+ fontFamily?: string;
287
+ fontSize?: number | string;
288
+ fontStyle?: string;
289
+ fontVariant?: string;
290
+ fontWeight?: number | string;
291
+ fx?: number | string;
292
+ fy?: number | string;
293
+ gradientTransform?: string;
294
+ gradientUnits?: string;
295
+ imageRendering?: string;
296
+ in?: string;
297
+ in2?: string;
298
+ k1?: number;
299
+ k2?: number;
300
+ k3?: number;
301
+ k4?: number;
302
+ letterSpacing?: number | string;
303
+ lightingColor?: string;
304
+ markerEnd?: string;
305
+ markerHeight?: number | string;
306
+ markerMid?: string;
307
+ markerStart?: string;
308
+ markerUnits?: string;
309
+ markerWidth?: number | string;
310
+ mask?: string;
311
+ offset?: number | string;
312
+ opacity?: number | string;
313
+ operator?: string;
314
+ order?: number | string;
315
+ overflow?: string;
316
+ paintOrder?: string;
317
+ pathLength?: number;
318
+ patternContentUnits?: string;
319
+ patternTransform?: string;
320
+ patternUnits?: string;
321
+ pointerEvents?: string;
322
+ points?: string;
323
+ preserveAspectRatio?: string;
324
+ r?: number | string;
325
+ result?: string;
326
+ rx?: number | string;
327
+ ry?: number | string;
328
+ shapeRendering?: string;
329
+ stopColor?: string;
330
+ stopOpacity?: number | string;
331
+ stroke?: string;
332
+ strokeDasharray?: string | number;
333
+ strokeDashoffset?: string | number;
334
+ strokeLinecap?: 'butt' | 'round' | 'square';
335
+ strokeLinejoin?: 'miter' | 'round' | 'bevel';
336
+ strokeMiterlimit?: number | string;
337
+ strokeOpacity?: number | string;
338
+ strokeWidth?: number | string;
339
+ textAnchor?: string;
340
+ textDecoration?: string;
341
+ textRendering?: string;
342
+ transform?: string;
343
+ vectorEffect?: string;
344
+ version?: string;
345
+ viewBox?: string;
346
+ visibility?: string;
347
+ wordSpacing?: number | string;
348
+ writingMode?: string;
349
+ x?: number | string;
350
+ x1?: number | string;
351
+ x2?: number | string;
352
+ xlinkActuate?: string;
353
+ xlinkArcrole?: string;
354
+ xlinkHref?: string;
355
+ xlinkRole?: string;
356
+ xlinkShow?: string;
357
+ xlinkTitle?: string;
358
+ xlinkType?: string;
359
+ xmlBase?: string;
360
+ xmlLang?: string;
361
+ xmlSpace?: string;
362
+ y?: number | string;
363
+ y1?: number | string;
364
+ y2?: number | string;
365
+ }
366
+ /**
367
+ * Script-specific HTML attributes (for the `<Script>` component).
368
+ */
369
+ interface ScriptHTMLAttributes<T = HTMLScriptElement> extends HTMLAttributes<T> {
370
+ async?: boolean;
371
+ crossOrigin?: string;
372
+ defer?: boolean;
373
+ integrity?: string;
374
+ noModule?: boolean;
375
+ nonce?: string;
376
+ referrerPolicy?: string;
377
+ src?: string;
378
+ type?: string;
379
+ }
380
+ declare namespace JSX {
381
+ type Element = VNode<any>;
382
+ interface ElementChildrenAttribute {
383
+ children: {};
384
+ }
385
+ interface IntrinsicElements {
386
+ a: HTMLAttributes<HTMLAnchorElement>;
387
+ abbr: HTMLAttributes;
388
+ address: HTMLAttributes;
389
+ area: HTMLAttributes<HTMLAreaElement>;
390
+ article: HTMLAttributes;
391
+ aside: HTMLAttributes;
392
+ audio: HTMLAttributes<HTMLAudioElement>;
393
+ b: HTMLAttributes;
394
+ base: HTMLAttributes<HTMLBaseElement>;
395
+ bdi: HTMLAttributes;
396
+ bdo: HTMLAttributes;
397
+ big: HTMLAttributes;
398
+ blockquote: HTMLAttributes<HTMLQuoteElement>;
399
+ body: HTMLAttributes<HTMLBodyElement>;
400
+ br: HTMLAttributes<HTMLBRElement>;
401
+ button: HTMLAttributes<HTMLButtonElement>;
402
+ canvas: HTMLAttributes<HTMLCanvasElement>;
403
+ caption: HTMLAttributes;
404
+ cite: HTMLAttributes;
405
+ code: HTMLAttributes;
406
+ col: HTMLAttributes<HTMLTableColElement>;
407
+ colgroup: HTMLAttributes<HTMLTableColElement>;
408
+ data: HTMLAttributes<HTMLDataElement>;
409
+ datalist: HTMLAttributes<HTMLDataListElement>;
410
+ dd: HTMLAttributes;
411
+ del: HTMLAttributes<HTMLModElement>;
412
+ details: HTMLAttributes<HTMLDetailsElement>;
413
+ dfn: HTMLAttributes;
414
+ dialog: HTMLAttributes<HTMLDialogElement>;
415
+ div: HTMLAttributes<HTMLDivElement>;
416
+ dl: HTMLAttributes<HTMLDListElement>;
417
+ dt: HTMLAttributes;
418
+ em: HTMLAttributes;
419
+ embed: HTMLAttributes<HTMLEmbedElement>;
420
+ fieldset: HTMLAttributes<HTMLFieldSetElement>;
421
+ figcaption: HTMLAttributes;
422
+ figure: HTMLAttributes;
423
+ footer: HTMLAttributes;
424
+ form: HTMLAttributes<HTMLFormElement>;
425
+ h1: HTMLAttributes<HTMLHeadingElement>;
426
+ h2: HTMLAttributes<HTMLHeadingElement>;
427
+ h3: HTMLAttributes<HTMLHeadingElement>;
428
+ h4: HTMLAttributes<HTMLHeadingElement>;
429
+ h5: HTMLAttributes<HTMLHeadingElement>;
430
+ h6: HTMLAttributes<HTMLHeadingElement>;
431
+ head: HTMLAttributes<HTMLHeadElement>;
432
+ header: HTMLAttributes;
433
+ hgroup: HTMLAttributes;
434
+ hr: HTMLAttributes<HTMLHRElement>;
435
+ html: HTMLAttributes<HTMLHtmlElement>;
436
+ i: HTMLAttributes;
437
+ iframe: HTMLAttributes<HTMLIFrameElement>;
438
+ img: HTMLAttributes<HTMLImageElement>;
439
+ input: HTMLAttributes<HTMLInputElement>;
440
+ ins: HTMLAttributes<HTMLModElement>;
441
+ kbd: HTMLAttributes;
442
+ label: HTMLAttributes<HTMLLabelElement>;
443
+ legend: HTMLAttributes<HTMLLegendElement>;
444
+ li: HTMLAttributes<HTMLLIElement>;
445
+ link: HTMLAttributes<HTMLLinkElement>;
446
+ main: HTMLAttributes;
447
+ map: HTMLAttributes<HTMLMapElement>;
448
+ mark: HTMLAttributes;
449
+ menu: HTMLAttributes<HTMLMenuElement>;
450
+ meta: HTMLAttributes<HTMLMetaElement>;
451
+ meter: HTMLAttributes<HTMLMeterElement>;
452
+ nav: HTMLAttributes;
453
+ noscript: HTMLAttributes;
454
+ object: HTMLAttributes<HTMLObjectElement>;
455
+ ol: HTMLAttributes<HTMLOListElement>;
456
+ optgroup: HTMLAttributes<HTMLOptGroupElement>;
457
+ option: HTMLAttributes<HTMLOptionElement>;
458
+ output: HTMLAttributes<HTMLOutputElement>;
459
+ p: HTMLAttributes<HTMLParagraphElement>;
460
+ param: HTMLAttributes;
461
+ picture: HTMLAttributes;
462
+ pre: HTMLAttributes<HTMLPreElement>;
463
+ progress: HTMLAttributes<HTMLProgressElement>;
464
+ q: HTMLAttributes<HTMLQuoteElement>;
465
+ rp: HTMLAttributes;
466
+ rt: HTMLAttributes;
467
+ ruby: HTMLAttributes;
468
+ s: HTMLAttributes;
469
+ samp: HTMLAttributes;
470
+ script: ScriptHTMLAttributes<HTMLScriptElement>;
471
+ search: HTMLAttributes;
472
+ section: HTMLAttributes;
473
+ select: HTMLAttributes<HTMLSelectElement>;
474
+ slot: HTMLAttributes<HTMLSlotElement>;
475
+ small: HTMLAttributes;
476
+ source: HTMLAttributes<HTMLSourceElement>;
477
+ span: HTMLAttributes<HTMLSpanElement>;
478
+ strong: HTMLAttributes;
479
+ style: HTMLAttributes<HTMLStyleElement>;
480
+ sub: HTMLAttributes;
481
+ summary: HTMLAttributes;
482
+ sup: HTMLAttributes;
483
+ table: HTMLAttributes<HTMLTableElement>;
484
+ tbody: HTMLAttributes<HTMLTableSectionElement>;
485
+ td: HTMLAttributes<HTMLTableCellElement>;
486
+ template: HTMLAttributes<HTMLTemplateElement>;
487
+ textarea: HTMLAttributes<HTMLTextAreaElement>;
488
+ tfoot: HTMLAttributes<HTMLTableSectionElement>;
489
+ th: HTMLAttributes<HTMLTableCellElement>;
490
+ thead: HTMLAttributes<HTMLTableSectionElement>;
491
+ time: HTMLAttributes<HTMLTimeElement>;
492
+ title: HTMLAttributes<HTMLTitleElement>;
493
+ tr: HTMLAttributes<HTMLTableRowElement>;
494
+ track: HTMLAttributes<HTMLTrackElement>;
495
+ u: HTMLAttributes;
496
+ ul: HTMLAttributes<HTMLUListElement>;
497
+ var: HTMLAttributes;
498
+ video: HTMLAttributes<HTMLVideoElement>;
499
+ wbr: HTMLAttributes;
500
+ svg: SVGAttributes<SVGSVGElement>;
501
+ animate: SVGAttributes;
502
+ animateMotion: SVGAttributes;
503
+ animateTransform: SVGAttributes;
504
+ circle: SVGAttributes<SVGCircleElement>;
505
+ clipPath: SVGAttributes;
506
+ defs: SVGAttributes;
507
+ desc: SVGAttributes;
508
+ ellipse: SVGAttributes<SVGEllipseElement>;
509
+ feBlend: SVGAttributes;
510
+ feColorMatrix: SVGAttributes;
511
+ feComponentTransfer: SVGAttributes;
512
+ feComposite: SVGAttributes;
513
+ feConvolveMatrix: SVGAttributes;
514
+ feDiffuseLighting: SVGAttributes;
515
+ feDisplacementMap: SVGAttributes;
516
+ feDistantLight: SVGAttributes;
517
+ feDropShadow: SVGAttributes;
518
+ feFlood: SVGAttributes;
519
+ feFuncA: SVGAttributes;
520
+ feFuncB: SVGAttributes;
521
+ feFuncG: SVGAttributes;
522
+ feFuncR: SVGAttributes;
523
+ feGaussianBlur: SVGAttributes;
524
+ feImage: SVGAttributes;
525
+ feMerge: SVGAttributes;
526
+ feMergeNode: SVGAttributes;
527
+ feMorphology: SVGAttributes;
528
+ feOffset: SVGAttributes;
529
+ fePointLight: SVGAttributes;
530
+ feSpecularLighting: SVGAttributes;
531
+ feSpotLight: SVGAttributes;
532
+ feTile: SVGAttributes;
533
+ feTurbulence: SVGAttributes;
534
+ filter: SVGAttributes;
535
+ foreignObject: SVGAttributes;
536
+ g: SVGAttributes<SVGGElement>;
537
+ image: SVGAttributes<SVGImageElement>;
538
+ line: SVGAttributes<SVGLineElement>;
539
+ linearGradient: SVGAttributes;
540
+ marker: SVGAttributes<SVGMarkerElement>;
541
+ mask: SVGAttributes<SVGMaskElement>;
542
+ metadata: SVGAttributes;
543
+ mpath: SVGAttributes;
544
+ path: SVGAttributes<SVGPathElement>;
545
+ pattern: SVGAttributes<SVGPatternElement>;
546
+ polygon: SVGAttributes<SVGPolygonElement>;
547
+ polyline: SVGAttributes<SVGPolylineElement>;
548
+ radialGradient: SVGAttributes;
549
+ rect: SVGAttributes<SVGRectElement>;
550
+ set: SVGAttributes;
551
+ stop: SVGAttributes;
552
+ switch: SVGAttributes;
553
+ symbol: SVGAttributes<SVGSymbolElement>;
554
+ text: SVGAttributes<SVGTextElement>;
555
+ textPath: SVGAttributes;
556
+ tspan: SVGAttributes<SVGTSpanElement>;
557
+ use: SVGAttributes<SVGUseElement>;
558
+ view: SVGAttributes<SVGViewElement>;
559
+ }
560
+ }
561
+
562
+ /**
563
+ * @module jsx-runtime
564
+ *
565
+ * Server-side JSX runtime for Root.js. Replaces Preact as the JSX renderer
566
+ * for server-side rendering (SSR/SSG). This module provides the automatic
567
+ * JSX transform entry point (`jsxImportSource`).
568
+ *
569
+ * Supports:
570
+ * - Automatic JSX transform (jsx, jsxs, Fragment)
571
+ * - Classic JSX transform (createElement / h)
572
+ * - Context API (createContext, useContext)
573
+ * - Server-side renderToString
574
+ */
575
+ type Key = string | number | null;
576
+ /**
577
+ * A virtual DOM node representing an element, component, or fragment.
578
+ */
579
+ interface VNode<P = Record<string, unknown>> {
580
+ type: string | FunctionalComponent<P> | typeof Fragment | (new (...args: any[]) => any);
581
+ props: P;
582
+ key: Key;
583
+ }
584
+ /**
585
+ * Valid children types for JSX elements.
586
+ */
587
+ type ComponentChildren = VNode<any> | string | number | bigint | boolean | null | undefined | ComponentChildren[];
588
+ type ComponentChild = ComponentChildren;
589
+ /**
590
+ * A function component that receives props and returns a VNode or null.
591
+ */
592
+ interface FunctionalComponent<P = Record<string, unknown>> {
593
+ (props: P): VNode<any> | null;
594
+ displayName?: string;
595
+ /** @internal Marks this component as a context Provider. */
596
+ _isProvider?: boolean;
597
+ /** @internal Reference to the context object for Provider components. */
598
+ _context?: Context<any>;
599
+ }
600
+ /**
601
+ * Generic component type (function components only for SSR).
602
+ */
603
+ type ComponentType<P = Record<string, unknown>> = FunctionalComponent<P>;
604
+ /**
605
+ * Global options object. The `vnode` callback is invoked for every VNode
606
+ * created via `jsx()`, `jsxs()`, or `createElement()`. This is used by the
607
+ * renderer to inject nonce values into script/style tags.
608
+ */
609
+ declare const options: {
610
+ vnode?: (vnode: VNode<any>) => void;
611
+ };
612
+ /**
613
+ * Fragment component. Renders its children without a wrapper DOM element.
614
+ * Used as `<>...</>` or `<Fragment>...</Fragment>` in JSX.
615
+ */
616
+ declare function Fragment(props: {
617
+ children?: ComponentChildren;
618
+ }): any;
619
+ /**
620
+ * Creates a VNode. Used by the automatic JSX transform for elements with
621
+ * a single child or no children.
622
+ */
623
+ declare function jsx(type: string | FunctionalComponent<any> | typeof Fragment, props: Record<string, any>, key?: Key): VNode;
624
+
625
+ /**
626
+ * Creates a VNode. Compatible with the classic `React.createElement` API.
627
+ *
628
+ * ```ts
629
+ * createElement('div', {className: 'foo'}, 'Hello', ' ', 'World');
630
+ * ```
631
+ */
632
+ declare function createElement(type: string | FunctionalComponent<any> | typeof Fragment, props?: Record<string, any> | null, ...children: any[]): VNode;
633
+
634
+ /**
635
+ * A context object created by `createContext()`. Provides a `Provider`
636
+ * component and can be read via `useContext()`.
637
+ */
638
+ interface Context<T> {
639
+ /** @internal Default value for this context. */
640
+ _defaultValue: T;
641
+ /** @internal Stack of provided values (managed by renderToString). */
642
+ _stack: T[];
643
+ /** Provider component that supplies a context value to descendants. */
644
+ Provider: FunctionalComponent<{
645
+ value: T;
646
+ children?: ComponentChildren;
647
+ }>;
648
+ }
649
+ /**
650
+ * Creates a new context with an optional default value. Returns a context
651
+ * object with a `Provider` component.
652
+ *
653
+ * ```ts
654
+ * const ThemeContext = createContext('light');
655
+ *
656
+ * // In a parent component:
657
+ * <ThemeContext.Provider value="dark">
658
+ * <App />
659
+ * </ThemeContext.Provider>
660
+ *
661
+ * // In a child component:
662
+ * const theme = useContext(ThemeContext);
663
+ * ```
664
+ */
665
+ declare function createContext<T>(defaultValue: T): Context<T>;
666
+ /**
667
+ * Reads the current value of a context. Must be called during the render
668
+ * of a function component that is a descendant of a matching Provider.
669
+ * Returns the default value if no Provider is found.
670
+ *
671
+ * ```ts
672
+ * const theme = useContext(ThemeContext);
673
+ * ```
674
+ */
675
+ declare function useContext<T>(context: Context<T>): T;
676
+
677
+ export { type AriaAttributes as A, type ComponentChildren as C, type DOMAttributes as D, Fragment as F, type HTMLAttributes as H, JSX as J, type Key as K, type SVGAttributes as S, type VNode as V, createContext as a, type ComponentChild as b, createElement as c, type ComponentType as d, type FunctionalComponent as e, type Context as f, type ScriptHTMLAttributes as g, jsx as j, options as o, useContext as u };
package/dist/jsx.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { A as AriaAttributes, b as ComponentChild, C as ComponentChildren, d as ComponentType, f as Context, D as DOMAttributes, F as Fragment, e as FunctionalComponent, H as HTMLAttributes, J as JSX, K as Key, S as SVGAttributes, g as ScriptHTMLAttributes, V as VNode, a as createContext, c as createElement, c as h, j as jsx, j as jsxs, o as options, u as useContext } from './jsx-dev-runtime-DUJrvx5P.js';
2
+ export { r as renderJsxToString } from './jsx-C8BaDh-4.js';
package/dist/jsx.js ADDED
@@ -0,0 +1,23 @@
1
+ import {
2
+ renderJsxToString
3
+ } from "./chunk-3OVMCKPA.js";
4
+ import {
5
+ Fragment,
6
+ createContext,
7
+ createElement,
8
+ jsx,
9
+ options,
10
+ useContext
11
+ } from "./chunk-CY5IQ4AQ.js";
12
+ export {
13
+ Fragment,
14
+ createContext,
15
+ createElement,
16
+ createElement as h,
17
+ jsx,
18
+ jsx as jsxs,
19
+ options,
20
+ renderJsxToString,
21
+ useContext
22
+ };
23
+ //# sourceMappingURL=jsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}