solid-js 2.0.0-beta.2 → 2.0.0-beta.4
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.
- package/dist/dev.cjs +152 -41
- package/dist/dev.js +138 -39
- package/dist/server.cjs +12 -6
- package/dist/server.js +5 -5
- package/dist/solid.cjs +152 -41
- package/dist/solid.js +138 -39
- package/package.json +2 -2
- package/types/client/hydration.d.ts +1 -0
- package/types/index.d.ts +2 -2
- package/types/jsx.d.ts +124 -80
- package/types/server/hydration.d.ts +1 -0
- package/types/server/index.d.ts +2 -2
- package/types/server/signals.d.ts +5 -3
package/types/jsx.d.ts
CHANGED
|
@@ -162,8 +162,7 @@ export namespace JSX {
|
|
|
162
162
|
> = EHandler | BoundEventHandler<T, E, EHandler>;
|
|
163
163
|
|
|
164
164
|
interface EventHandlerWithOptions<T, E extends Event, EHandler = EventHandler<T, E>>
|
|
165
|
-
extends AddEventListenerOptions,
|
|
166
|
-
EventListenerOptions {
|
|
165
|
+
extends AddEventListenerOptions, EventListenerOptions {
|
|
167
166
|
handleEvent: EHandler;
|
|
168
167
|
}
|
|
169
168
|
|
|
@@ -985,23 +984,36 @@ export namespace JSX {
|
|
|
985
984
|
"on:wheel"?: EventHandlerWithOptionsUnion<T, WheelEvent> | undefined;
|
|
986
985
|
}
|
|
987
986
|
|
|
988
|
-
|
|
987
|
+
// EventName = "click" | "mousedown" ...
|
|
988
|
+
|
|
989
|
+
type EventName =
|
|
989
990
|
| (keyof EventHandlersWindow<any> extends infer K
|
|
990
991
|
? K extends `on:${infer T}`
|
|
991
992
|
? T
|
|
992
993
|
: K extends `on${infer T}`
|
|
993
|
-
|
|
994
|
-
|
|
994
|
+
? Lowercase<T>
|
|
995
|
+
: never
|
|
995
996
|
: never)
|
|
996
997
|
| (keyof EventHandlersElement<any> extends infer K
|
|
997
998
|
? K extends `on:${infer T}`
|
|
998
999
|
? T
|
|
999
1000
|
: K extends `on${infer T}`
|
|
1000
|
-
|
|
1001
|
-
|
|
1001
|
+
? Lowercase<T>
|
|
1002
|
+
: never
|
|
1002
1003
|
: never)
|
|
1003
1004
|
| (string & {});
|
|
1004
1005
|
|
|
1006
|
+
type ExtractEventType<T> = {
|
|
1007
|
+
[K in keyof T as K extends `on:${infer Name}`
|
|
1008
|
+
? Name
|
|
1009
|
+
: never]: T[K] extends EventHandlerWithOptionsUnion<Element, infer E> ? E : never;
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
// EventType["click"] = MouseEvent
|
|
1013
|
+
|
|
1014
|
+
type EventType = ExtractEventType<EventHandlersElement<Element>> &
|
|
1015
|
+
ExtractEventType<EventHandlersWindow<Element>>;
|
|
1016
|
+
|
|
1005
1017
|
// GLOBAL ATTRIBUTES
|
|
1006
1018
|
|
|
1007
1019
|
/**
|
|
@@ -1011,7 +1023,8 @@ export namespace JSX {
|
|
|
1011
1023
|
* 2. Includes `keys` defined by `Element` and `Node` interfaces.
|
|
1012
1024
|
*/
|
|
1013
1025
|
interface ElementAttributes<T>
|
|
1014
|
-
extends
|
|
1026
|
+
extends
|
|
1027
|
+
CustomAttributes<T>,
|
|
1015
1028
|
PropAttributes,
|
|
1016
1029
|
OnAttributes<T>,
|
|
1017
1030
|
EventHandlersElement<T>,
|
|
@@ -1239,7 +1252,7 @@ export namespace JSX {
|
|
|
1239
1252
|
| "worker";
|
|
1240
1253
|
|
|
1241
1254
|
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1242
|
-
download?: string | RemoveAttribute;
|
|
1255
|
+
download?: string | EnumeratedAcceptsEmpty | RemoveAttribute;
|
|
1243
1256
|
href?: string | RemoveAttribute;
|
|
1244
1257
|
hreflang?: string | RemoveAttribute;
|
|
1245
1258
|
ping?: string | RemoveAttribute;
|
|
@@ -1266,7 +1279,7 @@ export namespace JSX {
|
|
|
1266
1279
|
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1267
1280
|
alt?: string | RemoveAttribute;
|
|
1268
1281
|
coords?: string | RemoveAttribute;
|
|
1269
|
-
download?: string | RemoveAttribute;
|
|
1282
|
+
download?: string | EnumeratedAcceptsEmpty | RemoveAttribute;
|
|
1270
1283
|
href?: string | RemoveAttribute;
|
|
1271
1284
|
ping?: string | RemoveAttribute;
|
|
1272
1285
|
referrerpolicy?: HTMLReferrerPolicy | RemoveAttribute;
|
|
@@ -2200,9 +2213,7 @@ export namespace JSX {
|
|
|
2200
2213
|
visibility?: "visible" | "hidden" | "collapse" | "inherit" | RemoveAttribute;
|
|
2201
2214
|
}
|
|
2202
2215
|
interface AnimationElementSVGAttributes<T>
|
|
2203
|
-
extends SVGAttributes<T>,
|
|
2204
|
-
ExternalResourceSVGAttributes,
|
|
2205
|
-
ConditionalProcessingSVGAttributes {
|
|
2216
|
+
extends SVGAttributes<T>, ExternalResourceSVGAttributes, ConditionalProcessingSVGAttributes {
|
|
2206
2217
|
// TODO TimeEvent is currently undefined on TS
|
|
2207
2218
|
onBegin?: EventHandlerUnion<T, Event> | undefined;
|
|
2208
2219
|
"on:begin"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
@@ -2216,7 +2227,8 @@ export namespace JSX {
|
|
|
2216
2227
|
"on:repeat"?: EventHandlerWithOptionsUnion<T, Event> | undefined;
|
|
2217
2228
|
}
|
|
2218
2229
|
interface ContainerElementSVGAttributes<T>
|
|
2219
|
-
extends
|
|
2230
|
+
extends
|
|
2231
|
+
SVGAttributes<T>,
|
|
2220
2232
|
ShapeElementSVGAttributes<T>,
|
|
2221
2233
|
Pick<
|
|
2222
2234
|
PresentationSVGAttributes,
|
|
@@ -2230,8 +2242,7 @@ export namespace JSX {
|
|
|
2230
2242
|
| "color-rendering"
|
|
2231
2243
|
> {}
|
|
2232
2244
|
interface FilterPrimitiveElementSVGAttributes<T>
|
|
2233
|
-
extends SVGAttributes<T>,
|
|
2234
|
-
Pick<PresentationSVGAttributes, "color-interpolation-filters"> {
|
|
2245
|
+
extends SVGAttributes<T>, Pick<PresentationSVGAttributes, "color-interpolation-filters"> {
|
|
2235
2246
|
height?: number | string | RemoveAttribute;
|
|
2236
2247
|
result?: string | RemoveAttribute;
|
|
2237
2248
|
width?: number | string | RemoveAttribute;
|
|
@@ -2250,16 +2261,15 @@ export namespace JSX {
|
|
|
2250
2261
|
viewBox?: string | RemoveAttribute;
|
|
2251
2262
|
}
|
|
2252
2263
|
interface GradientElementSVGAttributes<T>
|
|
2253
|
-
extends SVGAttributes<T>,
|
|
2254
|
-
ExternalResourceSVGAttributes,
|
|
2255
|
-
StylableSVGAttributes {
|
|
2264
|
+
extends SVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes {
|
|
2256
2265
|
gradientTransform?: string | RemoveAttribute;
|
|
2257
2266
|
gradientUnits?: SVGUnits | RemoveAttribute;
|
|
2258
2267
|
href?: string | RemoveAttribute;
|
|
2259
2268
|
spreadMethod?: "pad" | "reflect" | "repeat" | RemoveAttribute;
|
|
2260
2269
|
}
|
|
2261
2270
|
interface GraphicsElementSVGAttributes<T>
|
|
2262
|
-
extends
|
|
2271
|
+
extends
|
|
2272
|
+
SVGAttributes<T>,
|
|
2263
2273
|
Pick<
|
|
2264
2274
|
PresentationSVGAttributes,
|
|
2265
2275
|
| "clip-rule"
|
|
@@ -2275,12 +2285,12 @@ export namespace JSX {
|
|
|
2275
2285
|
> {}
|
|
2276
2286
|
interface LightSourceElementSVGAttributes<T> extends SVGAttributes<T> {}
|
|
2277
2287
|
interface NewViewportSVGAttributes<T>
|
|
2278
|
-
extends SVGAttributes<T>,
|
|
2279
|
-
Pick<PresentationSVGAttributes, "overflow" | "clip"> {
|
|
2288
|
+
extends SVGAttributes<T>, Pick<PresentationSVGAttributes, "overflow" | "clip"> {
|
|
2280
2289
|
viewBox?: string | RemoveAttribute;
|
|
2281
2290
|
}
|
|
2282
2291
|
interface ShapeElementSVGAttributes<T>
|
|
2283
|
-
extends
|
|
2292
|
+
extends
|
|
2293
|
+
SVGAttributes<T>,
|
|
2284
2294
|
Pick<
|
|
2285
2295
|
PresentationSVGAttributes,
|
|
2286
2296
|
| "color"
|
|
@@ -2299,7 +2309,8 @@ export namespace JSX {
|
|
|
2299
2309
|
| "pathLength"
|
|
2300
2310
|
> {}
|
|
2301
2311
|
interface TextContentElementSVGAttributes<T>
|
|
2302
|
-
extends
|
|
2312
|
+
extends
|
|
2313
|
+
SVGAttributes<T>,
|
|
2303
2314
|
Pick<
|
|
2304
2315
|
PresentationSVGAttributes,
|
|
2305
2316
|
| "font-family"
|
|
@@ -2340,14 +2351,16 @@ export namespace JSX {
|
|
|
2340
2351
|
zoomAndPan?: "disable" | "magnify" | RemoveAttribute;
|
|
2341
2352
|
}
|
|
2342
2353
|
interface AnimateSVGAttributes<T>
|
|
2343
|
-
extends
|
|
2354
|
+
extends
|
|
2355
|
+
AnimationElementSVGAttributes<T>,
|
|
2344
2356
|
AnimationAttributeTargetSVGAttributes,
|
|
2345
2357
|
AnimationTimingSVGAttributes,
|
|
2346
2358
|
AnimationValueSVGAttributes,
|
|
2347
2359
|
AnimationAdditionSVGAttributes,
|
|
2348
2360
|
Pick<PresentationSVGAttributes, "color-interpolation" | "color-rendering"> {}
|
|
2349
2361
|
interface AnimateMotionSVGAttributes<T>
|
|
2350
|
-
extends
|
|
2362
|
+
extends
|
|
2363
|
+
AnimationElementSVGAttributes<T>,
|
|
2351
2364
|
AnimationTimingSVGAttributes,
|
|
2352
2365
|
AnimationValueSVGAttributes,
|
|
2353
2366
|
AnimationAdditionSVGAttributes {
|
|
@@ -2357,7 +2370,8 @@ export namespace JSX {
|
|
|
2357
2370
|
rotate?: number | string | "auto" | "auto-reverse" | RemoveAttribute;
|
|
2358
2371
|
}
|
|
2359
2372
|
interface AnimateTransformSVGAttributes<T>
|
|
2360
|
-
extends
|
|
2373
|
+
extends
|
|
2374
|
+
AnimationElementSVGAttributes<T>,
|
|
2361
2375
|
AnimationAttributeTargetSVGAttributes,
|
|
2362
2376
|
AnimationTimingSVGAttributes,
|
|
2363
2377
|
AnimationValueSVGAttributes,
|
|
@@ -2365,7 +2379,8 @@ export namespace JSX {
|
|
|
2365
2379
|
type?: "translate" | "scale" | "rotate" | "skewX" | "skewY" | RemoveAttribute;
|
|
2366
2380
|
}
|
|
2367
2381
|
interface CircleSVGAttributes<T>
|
|
2368
|
-
extends
|
|
2382
|
+
extends
|
|
2383
|
+
GraphicsElementSVGAttributes<T>,
|
|
2369
2384
|
ShapeElementSVGAttributes<T>,
|
|
2370
2385
|
ConditionalProcessingSVGAttributes,
|
|
2371
2386
|
StylableSVGAttributes,
|
|
@@ -2376,7 +2391,8 @@ export namespace JSX {
|
|
|
2376
2391
|
r?: number | string | RemoveAttribute;
|
|
2377
2392
|
}
|
|
2378
2393
|
interface ClipPathSVGAttributes<T>
|
|
2379
|
-
extends
|
|
2394
|
+
extends
|
|
2395
|
+
SVGAttributes<T>,
|
|
2380
2396
|
ConditionalProcessingSVGAttributes,
|
|
2381
2397
|
ExternalResourceSVGAttributes,
|
|
2382
2398
|
StylableSVGAttributes,
|
|
@@ -2385,14 +2401,16 @@ export namespace JSX {
|
|
|
2385
2401
|
clipPathUnits?: SVGUnits | RemoveAttribute;
|
|
2386
2402
|
}
|
|
2387
2403
|
interface DefsSVGAttributes<T>
|
|
2388
|
-
extends
|
|
2404
|
+
extends
|
|
2405
|
+
ContainerElementSVGAttributes<T>,
|
|
2389
2406
|
ConditionalProcessingSVGAttributes,
|
|
2390
2407
|
ExternalResourceSVGAttributes,
|
|
2391
2408
|
StylableSVGAttributes,
|
|
2392
2409
|
TransformableSVGAttributes {}
|
|
2393
2410
|
interface DescSVGAttributes<T> extends SVGAttributes<T>, StylableSVGAttributes {}
|
|
2394
2411
|
interface EllipseSVGAttributes<T>
|
|
2395
|
-
extends
|
|
2412
|
+
extends
|
|
2413
|
+
GraphicsElementSVGAttributes<T>,
|
|
2396
2414
|
ShapeElementSVGAttributes<T>,
|
|
2397
2415
|
ConditionalProcessingSVGAttributes,
|
|
2398
2416
|
ExternalResourceSVGAttributes,
|
|
@@ -2405,24 +2423,28 @@ export namespace JSX {
|
|
|
2405
2423
|
ry?: number | string | RemoveAttribute;
|
|
2406
2424
|
}
|
|
2407
2425
|
interface FeBlendSVGAttributes<T>
|
|
2408
|
-
extends
|
|
2426
|
+
extends
|
|
2427
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2409
2428
|
DoubleInputFilterSVGAttributes,
|
|
2410
2429
|
StylableSVGAttributes {
|
|
2411
2430
|
mode?: "normal" | "multiply" | "screen" | "darken" | "lighten" | RemoveAttribute;
|
|
2412
2431
|
}
|
|
2413
2432
|
interface FeColorMatrixSVGAttributes<T>
|
|
2414
|
-
extends
|
|
2433
|
+
extends
|
|
2434
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2415
2435
|
SingleInputFilterSVGAttributes,
|
|
2416
2436
|
StylableSVGAttributes {
|
|
2417
2437
|
type?: "matrix" | "saturate" | "hueRotate" | "luminanceToAlpha" | RemoveAttribute;
|
|
2418
2438
|
values?: string | RemoveAttribute;
|
|
2419
2439
|
}
|
|
2420
2440
|
interface FeComponentTransferSVGAttributes<T>
|
|
2421
|
-
extends
|
|
2441
|
+
extends
|
|
2442
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2422
2443
|
SingleInputFilterSVGAttributes,
|
|
2423
2444
|
StylableSVGAttributes {}
|
|
2424
2445
|
interface FeCompositeSVGAttributes<T>
|
|
2425
|
-
extends
|
|
2446
|
+
extends
|
|
2447
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2426
2448
|
DoubleInputFilterSVGAttributes,
|
|
2427
2449
|
StylableSVGAttributes {
|
|
2428
2450
|
k1?: number | string | RemoveAttribute;
|
|
@@ -2432,7 +2454,8 @@ export namespace JSX {
|
|
|
2432
2454
|
operator?: "over" | "in" | "out" | "atop" | "xor" | "arithmetic" | RemoveAttribute;
|
|
2433
2455
|
}
|
|
2434
2456
|
interface FeConvolveMatrixSVGAttributes<T>
|
|
2435
|
-
extends
|
|
2457
|
+
extends
|
|
2458
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2436
2459
|
SingleInputFilterSVGAttributes,
|
|
2437
2460
|
StylableSVGAttributes {
|
|
2438
2461
|
bias?: number | string | RemoveAttribute;
|
|
@@ -2446,7 +2469,8 @@ export namespace JSX {
|
|
|
2446
2469
|
targetY?: number | string | RemoveAttribute;
|
|
2447
2470
|
}
|
|
2448
2471
|
interface FeDiffuseLightingSVGAttributes<T>
|
|
2449
|
-
extends
|
|
2472
|
+
extends
|
|
2473
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2450
2474
|
SingleInputFilterSVGAttributes,
|
|
2451
2475
|
StylableSVGAttributes,
|
|
2452
2476
|
Pick<PresentationSVGAttributes, "color" | "lighting-color"> {
|
|
@@ -2455,7 +2479,8 @@ export namespace JSX {
|
|
|
2455
2479
|
surfaceScale?: number | string | RemoveAttribute;
|
|
2456
2480
|
}
|
|
2457
2481
|
interface FeDisplacementMapSVGAttributes<T>
|
|
2458
|
-
extends
|
|
2482
|
+
extends
|
|
2483
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2459
2484
|
DoubleInputFilterSVGAttributes,
|
|
2460
2485
|
StylableSVGAttributes {
|
|
2461
2486
|
scale?: number | string | RemoveAttribute;
|
|
@@ -2467,7 +2492,8 @@ export namespace JSX {
|
|
|
2467
2492
|
elevation?: number | string | RemoveAttribute;
|
|
2468
2493
|
}
|
|
2469
2494
|
interface FeDropShadowSVGAttributes<T>
|
|
2470
|
-
extends
|
|
2495
|
+
extends
|
|
2496
|
+
SVGAttributes<T>,
|
|
2471
2497
|
FilterPrimitiveElementSVGAttributes<T>,
|
|
2472
2498
|
StylableSVGAttributes,
|
|
2473
2499
|
Pick<PresentationSVGAttributes, "color" | "flood-color" | "flood-opacity"> {
|
|
@@ -2476,7 +2502,8 @@ export namespace JSX {
|
|
|
2476
2502
|
stdDeviation?: number | string | RemoveAttribute;
|
|
2477
2503
|
}
|
|
2478
2504
|
interface FeFloodSVGAttributes<T>
|
|
2479
|
-
extends
|
|
2505
|
+
extends
|
|
2506
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2480
2507
|
StylableSVGAttributes,
|
|
2481
2508
|
Pick<PresentationSVGAttributes, "color" | "flood-color" | "flood-opacity"> {}
|
|
2482
2509
|
interface FeFuncSVGAttributes<T> extends SVGAttributes<T> {
|
|
@@ -2489,31 +2516,34 @@ export namespace JSX {
|
|
|
2489
2516
|
type?: "identity" | "table" | "discrete" | "linear" | "gamma" | RemoveAttribute;
|
|
2490
2517
|
}
|
|
2491
2518
|
interface FeGaussianBlurSVGAttributes<T>
|
|
2492
|
-
extends
|
|
2519
|
+
extends
|
|
2520
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2493
2521
|
SingleInputFilterSVGAttributes,
|
|
2494
2522
|
StylableSVGAttributes {
|
|
2495
2523
|
stdDeviation?: number | string | RemoveAttribute;
|
|
2496
2524
|
}
|
|
2497
2525
|
interface FeImageSVGAttributes<T>
|
|
2498
|
-
extends
|
|
2526
|
+
extends
|
|
2527
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2499
2528
|
ExternalResourceSVGAttributes,
|
|
2500
2529
|
StylableSVGAttributes {
|
|
2501
2530
|
href?: string | RemoveAttribute;
|
|
2502
2531
|
preserveAspectRatio?: SVGPreserveAspectRatio | RemoveAttribute;
|
|
2503
2532
|
}
|
|
2504
2533
|
interface FeMergeSVGAttributes<T>
|
|
2505
|
-
extends FilterPrimitiveElementSVGAttributes<T>,
|
|
2506
|
-
StylableSVGAttributes {}
|
|
2534
|
+
extends FilterPrimitiveElementSVGAttributes<T>, StylableSVGAttributes {}
|
|
2507
2535
|
interface FeMergeNodeSVGAttributes<T> extends SVGAttributes<T>, SingleInputFilterSVGAttributes {}
|
|
2508
2536
|
interface FeMorphologySVGAttributes<T>
|
|
2509
|
-
extends
|
|
2537
|
+
extends
|
|
2538
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2510
2539
|
SingleInputFilterSVGAttributes,
|
|
2511
2540
|
StylableSVGAttributes {
|
|
2512
2541
|
operator?: "erode" | "dilate" | RemoveAttribute;
|
|
2513
2542
|
radius?: number | string | RemoveAttribute;
|
|
2514
2543
|
}
|
|
2515
2544
|
interface FeOffsetSVGAttributes<T>
|
|
2516
|
-
extends
|
|
2545
|
+
extends
|
|
2546
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2517
2547
|
SingleInputFilterSVGAttributes,
|
|
2518
2548
|
StylableSVGAttributes {
|
|
2519
2549
|
dx?: number | string | RemoveAttribute;
|
|
@@ -2525,7 +2555,8 @@ export namespace JSX {
|
|
|
2525
2555
|
z?: number | string | RemoveAttribute;
|
|
2526
2556
|
}
|
|
2527
2557
|
interface FeSpecularLightingSVGAttributes<T>
|
|
2528
|
-
extends
|
|
2558
|
+
extends
|
|
2559
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2529
2560
|
SingleInputFilterSVGAttributes,
|
|
2530
2561
|
StylableSVGAttributes,
|
|
2531
2562
|
Pick<PresentationSVGAttributes, "color" | "lighting-color"> {
|
|
@@ -2545,12 +2576,12 @@ export namespace JSX {
|
|
|
2545
2576
|
z?: number | string | RemoveAttribute;
|
|
2546
2577
|
}
|
|
2547
2578
|
interface FeTileSVGAttributes<T>
|
|
2548
|
-
extends
|
|
2579
|
+
extends
|
|
2580
|
+
FilterPrimitiveElementSVGAttributes<T>,
|
|
2549
2581
|
SingleInputFilterSVGAttributes,
|
|
2550
2582
|
StylableSVGAttributes {}
|
|
2551
2583
|
interface FeTurbulanceSVGAttributes<T>
|
|
2552
|
-
extends FilterPrimitiveElementSVGAttributes<T>,
|
|
2553
|
-
StylableSVGAttributes {
|
|
2584
|
+
extends FilterPrimitiveElementSVGAttributes<T>, StylableSVGAttributes {
|
|
2554
2585
|
baseFrequency?: number | string | RemoveAttribute;
|
|
2555
2586
|
numOctaves?: number | string | RemoveAttribute;
|
|
2556
2587
|
seed?: number | string | RemoveAttribute;
|
|
@@ -2558,9 +2589,7 @@ export namespace JSX {
|
|
|
2558
2589
|
type?: "fractalNoise" | "turbulence" | RemoveAttribute;
|
|
2559
2590
|
}
|
|
2560
2591
|
interface FilterSVGAttributes<T>
|
|
2561
|
-
extends SVGAttributes<T>,
|
|
2562
|
-
ExternalResourceSVGAttributes,
|
|
2563
|
-
StylableSVGAttributes {
|
|
2592
|
+
extends SVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes {
|
|
2564
2593
|
filterRes?: number | string | RemoveAttribute;
|
|
2565
2594
|
filterUnits?: SVGUnits | RemoveAttribute;
|
|
2566
2595
|
height?: number | string | RemoveAttribute;
|
|
@@ -2570,7 +2599,8 @@ export namespace JSX {
|
|
|
2570
2599
|
y?: number | string | RemoveAttribute;
|
|
2571
2600
|
}
|
|
2572
2601
|
interface ForeignObjectSVGAttributes<T>
|
|
2573
|
-
extends
|
|
2602
|
+
extends
|
|
2603
|
+
NewViewportSVGAttributes<T>,
|
|
2574
2604
|
ConditionalProcessingSVGAttributes,
|
|
2575
2605
|
ExternalResourceSVGAttributes,
|
|
2576
2606
|
StylableSVGAttributes,
|
|
@@ -2582,14 +2612,16 @@ export namespace JSX {
|
|
|
2582
2612
|
y?: number | string | RemoveAttribute;
|
|
2583
2613
|
}
|
|
2584
2614
|
interface GSVGAttributes<T>
|
|
2585
|
-
extends
|
|
2615
|
+
extends
|
|
2616
|
+
ContainerElementSVGAttributes<T>,
|
|
2586
2617
|
ConditionalProcessingSVGAttributes,
|
|
2587
2618
|
ExternalResourceSVGAttributes,
|
|
2588
2619
|
StylableSVGAttributes,
|
|
2589
2620
|
TransformableSVGAttributes,
|
|
2590
2621
|
Pick<PresentationSVGAttributes, "clip-path" | "display" | "visibility"> {}
|
|
2591
2622
|
interface ImageSVGAttributes<T>
|
|
2592
|
-
extends
|
|
2623
|
+
extends
|
|
2624
|
+
NewViewportSVGAttributes<T>,
|
|
2593
2625
|
GraphicsElementSVGAttributes<T>,
|
|
2594
2626
|
ConditionalProcessingSVGAttributes,
|
|
2595
2627
|
StylableSVGAttributes,
|
|
@@ -2603,7 +2635,8 @@ export namespace JSX {
|
|
|
2603
2635
|
y?: number | string | RemoveAttribute;
|
|
2604
2636
|
}
|
|
2605
2637
|
interface LineSVGAttributes<T>
|
|
2606
|
-
extends
|
|
2638
|
+
extends
|
|
2639
|
+
GraphicsElementSVGAttributes<T>,
|
|
2607
2640
|
ShapeElementSVGAttributes<T>,
|
|
2608
2641
|
ConditionalProcessingSVGAttributes,
|
|
2609
2642
|
ExternalResourceSVGAttributes,
|
|
@@ -2622,7 +2655,8 @@ export namespace JSX {
|
|
|
2622
2655
|
y2?: number | string | RemoveAttribute;
|
|
2623
2656
|
}
|
|
2624
2657
|
interface MarkerSVGAttributes<T>
|
|
2625
|
-
extends
|
|
2658
|
+
extends
|
|
2659
|
+
ContainerElementSVGAttributes<T>,
|
|
2626
2660
|
ExternalResourceSVGAttributes,
|
|
2627
2661
|
StylableSVGAttributes,
|
|
2628
2662
|
FitToViewBoxSVGAttributes,
|
|
@@ -2635,7 +2669,8 @@ export namespace JSX {
|
|
|
2635
2669
|
refY?: number | string | RemoveAttribute;
|
|
2636
2670
|
}
|
|
2637
2671
|
interface MaskSVGAttributes<T>
|
|
2638
|
-
extends
|
|
2672
|
+
extends
|
|
2673
|
+
Omit<ContainerElementSVGAttributes<T>, "opacity" | "filter">,
|
|
2639
2674
|
ConditionalProcessingSVGAttributes,
|
|
2640
2675
|
ExternalResourceSVGAttributes,
|
|
2641
2676
|
StylableSVGAttributes,
|
|
@@ -2650,7 +2685,8 @@ export namespace JSX {
|
|
|
2650
2685
|
interface MetadataSVGAttributes<T> extends SVGAttributes<T> {}
|
|
2651
2686
|
interface MPathSVGAttributes<T> extends SVGAttributes<T> {}
|
|
2652
2687
|
interface PathSVGAttributes<T>
|
|
2653
|
-
extends
|
|
2688
|
+
extends
|
|
2689
|
+
GraphicsElementSVGAttributes<T>,
|
|
2654
2690
|
ShapeElementSVGAttributes<T>,
|
|
2655
2691
|
ConditionalProcessingSVGAttributes,
|
|
2656
2692
|
ExternalResourceSVGAttributes,
|
|
@@ -2661,7 +2697,8 @@ export namespace JSX {
|
|
|
2661
2697
|
pathLength?: number | string | RemoveAttribute;
|
|
2662
2698
|
}
|
|
2663
2699
|
interface PatternSVGAttributes<T>
|
|
2664
|
-
extends
|
|
2700
|
+
extends
|
|
2701
|
+
ContainerElementSVGAttributes<T>,
|
|
2665
2702
|
ConditionalProcessingSVGAttributes,
|
|
2666
2703
|
ExternalResourceSVGAttributes,
|
|
2667
2704
|
StylableSVGAttributes,
|
|
@@ -2677,7 +2714,8 @@ export namespace JSX {
|
|
|
2677
2714
|
y?: number | string | RemoveAttribute;
|
|
2678
2715
|
}
|
|
2679
2716
|
interface PolygonSVGAttributes<T>
|
|
2680
|
-
extends
|
|
2717
|
+
extends
|
|
2718
|
+
GraphicsElementSVGAttributes<T>,
|
|
2681
2719
|
ShapeElementSVGAttributes<T>,
|
|
2682
2720
|
ConditionalProcessingSVGAttributes,
|
|
2683
2721
|
ExternalResourceSVGAttributes,
|
|
@@ -2687,7 +2725,8 @@ export namespace JSX {
|
|
|
2687
2725
|
points?: string | RemoveAttribute;
|
|
2688
2726
|
}
|
|
2689
2727
|
interface PolylineSVGAttributes<T>
|
|
2690
|
-
extends
|
|
2728
|
+
extends
|
|
2729
|
+
GraphicsElementSVGAttributes<T>,
|
|
2691
2730
|
ShapeElementSVGAttributes<T>,
|
|
2692
2731
|
ConditionalProcessingSVGAttributes,
|
|
2693
2732
|
ExternalResourceSVGAttributes,
|
|
@@ -2704,7 +2743,8 @@ export namespace JSX {
|
|
|
2704
2743
|
r?: number | string | RemoveAttribute;
|
|
2705
2744
|
}
|
|
2706
2745
|
interface RectSVGAttributes<T>
|
|
2707
|
-
extends
|
|
2746
|
+
extends
|
|
2747
|
+
GraphicsElementSVGAttributes<T>,
|
|
2708
2748
|
ShapeElementSVGAttributes<T>,
|
|
2709
2749
|
ConditionalProcessingSVGAttributes,
|
|
2710
2750
|
ExternalResourceSVGAttributes,
|
|
@@ -2719,17 +2759,17 @@ export namespace JSX {
|
|
|
2719
2759
|
y?: number | string | RemoveAttribute;
|
|
2720
2760
|
}
|
|
2721
2761
|
interface SetSVGAttributes<T>
|
|
2722
|
-
extends AnimationElementSVGAttributes<T>,
|
|
2723
|
-
StylableSVGAttributes,
|
|
2724
|
-
AnimationTimingSVGAttributes {}
|
|
2762
|
+
extends AnimationElementSVGAttributes<T>, StylableSVGAttributes, AnimationTimingSVGAttributes {}
|
|
2725
2763
|
interface StopSVGAttributes<T>
|
|
2726
|
-
extends
|
|
2764
|
+
extends
|
|
2765
|
+
SVGAttributes<T>,
|
|
2727
2766
|
StylableSVGAttributes,
|
|
2728
2767
|
Pick<PresentationSVGAttributes, "color" | "stop-color" | "stop-opacity"> {
|
|
2729
2768
|
offset?: number | string | RemoveAttribute;
|
|
2730
2769
|
}
|
|
2731
2770
|
interface SvgSVGAttributes<T>
|
|
2732
|
-
extends
|
|
2771
|
+
extends
|
|
2772
|
+
ContainerElementSVGAttributes<T>,
|
|
2733
2773
|
NewViewportSVGAttributes<T>,
|
|
2734
2774
|
ConditionalProcessingSVGAttributes,
|
|
2735
2775
|
ExternalResourceSVGAttributes,
|
|
@@ -2752,14 +2792,16 @@ export namespace JSX {
|
|
|
2752
2792
|
version?: string | RemoveAttribute;
|
|
2753
2793
|
}
|
|
2754
2794
|
interface SwitchSVGAttributes<T>
|
|
2755
|
-
extends
|
|
2795
|
+
extends
|
|
2796
|
+
ContainerElementSVGAttributes<T>,
|
|
2756
2797
|
ConditionalProcessingSVGAttributes,
|
|
2757
2798
|
ExternalResourceSVGAttributes,
|
|
2758
2799
|
StylableSVGAttributes,
|
|
2759
2800
|
TransformableSVGAttributes,
|
|
2760
2801
|
Pick<PresentationSVGAttributes, "display" | "visibility"> {}
|
|
2761
2802
|
interface SymbolSVGAttributes<T>
|
|
2762
|
-
extends
|
|
2803
|
+
extends
|
|
2804
|
+
ContainerElementSVGAttributes<T>,
|
|
2763
2805
|
NewViewportSVGAttributes<T>,
|
|
2764
2806
|
ExternalResourceSVGAttributes,
|
|
2765
2807
|
StylableSVGAttributes,
|
|
@@ -2775,7 +2817,8 @@ export namespace JSX {
|
|
|
2775
2817
|
y?: number | string | RemoveAttribute;
|
|
2776
2818
|
}
|
|
2777
2819
|
interface TextSVGAttributes<T>
|
|
2778
|
-
extends
|
|
2820
|
+
extends
|
|
2821
|
+
TextContentElementSVGAttributes<T>,
|
|
2779
2822
|
GraphicsElementSVGAttributes<T>,
|
|
2780
2823
|
ConditionalProcessingSVGAttributes,
|
|
2781
2824
|
ExternalResourceSVGAttributes,
|
|
@@ -2791,7 +2834,8 @@ export namespace JSX {
|
|
|
2791
2834
|
y?: number | string | RemoveAttribute;
|
|
2792
2835
|
}
|
|
2793
2836
|
interface TextPathSVGAttributes<T>
|
|
2794
|
-
extends
|
|
2837
|
+
extends
|
|
2838
|
+
TextContentElementSVGAttributes<T>,
|
|
2795
2839
|
ConditionalProcessingSVGAttributes,
|
|
2796
2840
|
ExternalResourceSVGAttributes,
|
|
2797
2841
|
StylableSVGAttributes,
|
|
@@ -2805,7 +2849,8 @@ export namespace JSX {
|
|
|
2805
2849
|
startOffset?: number | string | RemoveAttribute;
|
|
2806
2850
|
}
|
|
2807
2851
|
interface TSpanSVGAttributes<T>
|
|
2808
|
-
extends
|
|
2852
|
+
extends
|
|
2853
|
+
TextContentElementSVGAttributes<T>,
|
|
2809
2854
|
ConditionalProcessingSVGAttributes,
|
|
2810
2855
|
ExternalResourceSVGAttributes,
|
|
2811
2856
|
StylableSVGAttributes,
|
|
@@ -2823,7 +2868,8 @@ export namespace JSX {
|
|
|
2823
2868
|
}
|
|
2824
2869
|
/** @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use */
|
|
2825
2870
|
interface UseSVGAttributes<T>
|
|
2826
|
-
extends
|
|
2871
|
+
extends
|
|
2872
|
+
SVGAttributes<T>,
|
|
2827
2873
|
StylableSVGAttributes,
|
|
2828
2874
|
ConditionalProcessingSVGAttributes,
|
|
2829
2875
|
GraphicsElementSVGAttributes<T>,
|
|
@@ -2837,7 +2883,8 @@ export namespace JSX {
|
|
|
2837
2883
|
y?: number | string | RemoveAttribute;
|
|
2838
2884
|
}
|
|
2839
2885
|
interface ViewSVGAttributes<T>
|
|
2840
|
-
extends
|
|
2886
|
+
extends
|
|
2887
|
+
SVGAttributes<T>,
|
|
2841
2888
|
ExternalResourceSVGAttributes,
|
|
2842
2889
|
FitToViewBoxSVGAttributes,
|
|
2843
2890
|
ZoomAndPanSVGAttributes {
|
|
@@ -4122,8 +4169,5 @@ export namespace JSX {
|
|
|
4122
4169
|
}
|
|
4123
4170
|
|
|
4124
4171
|
interface IntrinsicElements
|
|
4125
|
-
extends HTMLElementTags,
|
|
4126
|
-
HTMLElementDeprecatedTags,
|
|
4127
|
-
SVGElementTags,
|
|
4128
|
-
MathMLElementTags {}
|
|
4172
|
+
extends HTMLElementTags, HTMLElementDeprecatedTags, SVGElementTags, MathMLElementTags {}
|
|
4129
4173
|
}
|
package/types/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { $PROXY, $REFRESH, $TRACK, action, createEffect, createMemo, createOptimistic, createOptimisticStore, createOwner, createProjection, createReaction, createRenderEffect, createRoot, createSignal, createStore, createTrackedEffect, deep, flatten, flush, getNextChildId, getObserver, getOwner, isEqual, isRefreshing, isPending, isWrappable, mapArray, merge, omit, onCleanup, onSettled, latest, reconcile, refresh, repeat, resolve, NotReadyError, runWithOwner, snapshot, storePath, createDeepProxy,
|
|
2
|
-
export type { Accessor, ComputeFunction, EffectFunction, EffectOptions, Merge, NoInfer, NotWrappable, Omit, Owner, Signal, SignalOptions, Setter, Store, SolidStore, StoreNode, StoreSetter, StorePathRange, ArrayFilterFn, CustomPartial, Part, PathSetter, PatchOp } from "./signals.js";
|
|
1
|
+
export { $PROXY, $REFRESH, $TRACK, action, createEffect, createMemo, createOptimistic, createOptimisticStore, createErrorBoundary, createLoadingBoundary, createOwner, createProjection, createReaction, createRenderEffect, createRoot, createSignal, createStore, createTrackedEffect, deep, flatten, flush, getNextChildId, getObserver, getOwner, isEqual, isRefreshing, isPending, isWrappable, mapArray, merge, omit, onCleanup, onSettled, latest, reconcile, refresh, repeat, resolve, NotReadyError, runWithOwner, snapshot, storePath, createDeepProxy, enableExternalSource, enforceLoadingBoundary, untrack } from "./signals.js";
|
|
2
|
+
export type { Accessor, ComputeFunction, EffectFunction, EffectOptions, ExternalSource, ExternalSourceConfig, ExternalSourceFactory, Merge, NoInfer, NotWrappable, Omit, Owner, Signal, SignalOptions, Setter, Store, SolidStore, StoreNode, StoreSetter, StorePathRange, ArrayFilterFn, CustomPartial, Part, PathSetter, PatchOp } from "./signals.js";
|
|
3
3
|
export { $DEVCOMP, children, createContext, useContext, ssrRunInScope } from "./core.js";
|
|
4
4
|
export type { ChildrenReturn, Context, ContextProviderComponent, ResolvedChildren, ResolvedJSXElement } from "./core.js";
|
|
5
5
|
export * from "./component.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createRoot, createOwner, runWithOwner, getOwner, onCleanup, getNextChildId, createContext, setContext, getContext, NotReadyError, NoOwnerError, ContextNotFoundError, isEqual, isWrappable, SUPPORTS_PROXY,
|
|
1
|
+
export { createRoot, createOwner, runWithOwner, getOwner, onCleanup, getNextChildId, createContext, setContext, getContext, NotReadyError, NoOwnerError, ContextNotFoundError, isEqual, isWrappable, SUPPORTS_PROXY, enableExternalSource, enforceLoadingBoundary } from "@solidjs/signals";
|
|
2
2
|
export { flatten } from "@solidjs/signals";
|
|
3
3
|
export { snapshot, merge, omit, storePath, $PROXY, $REFRESH, $TRACK } from "@solidjs/signals";
|
|
4
|
-
export type { Accessor, ComputeFunction, EffectFunction, EffectBundle, EffectOptions, MemoOptions, NoInfer, SignalOptions, Setter, Signal, Owner, Maybe, Store, StoreSetter, StoreNode, NotWrappable, SolidStore, Merge, Omit, Context, ContextRecord, IQueue, StorePathRange, ArrayFilterFn, CustomPartial, Part, PathSetter } from "@solidjs/signals";
|
|
4
|
+
export type { Accessor, ComputeFunction, EffectFunction, EffectBundle, EffectOptions, ExternalSource, ExternalSourceConfig, ExternalSourceFactory, MemoOptions, NoInfer, SignalOptions, Setter, Signal, Owner, Maybe, Store, StoreSetter, StoreNode, NotWrappable, SolidStore, Merge, Omit, Context, ContextRecord, IQueue, StorePathRange, ArrayFilterFn, CustomPartial, Part, PathSetter } from "@solidjs/signals";
|
|
5
5
|
import type { Accessor, ComputeFunction, EffectFunction, EffectBundle, EffectOptions, MemoOptions, SignalOptions, Signal, Owner, Store, StoreSetter, Context } from "@solidjs/signals";
|
|
6
6
|
import { NoHydrateContext } from "./shared.js";
|
|
7
7
|
interface ServerComputation<T = any> {
|
|
@@ -49,7 +49,9 @@ declare const ErrorContext: Context<((err: any) => void) | null>;
|
|
|
49
49
|
export { ErrorContext };
|
|
50
50
|
export { NoHydrateContext };
|
|
51
51
|
export declare function createErrorBoundary<U>(fn: () => any, fallback: (error: unknown, reset: () => void) => U): () => unknown;
|
|
52
|
-
export declare function
|
|
52
|
+
export declare function createLoadingBoundary(fn: () => any, fallback: () => any, options?: {
|
|
53
|
+
on?: () => any;
|
|
54
|
+
}): () => unknown;
|
|
53
55
|
export declare function untrack<T>(fn: () => T): T;
|
|
54
56
|
export declare function flush(): void;
|
|
55
57
|
export declare function resolve<T>(fn: () => T): Promise<T>;
|