@solidjs/web 2.0.0-experimental.1 → 2.0.0-experimental.11
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/LICENSE +1 -1
- package/dist/dev.cjs +62 -81
- package/dist/dev.js +56 -72
- package/dist/server.cjs +189 -152
- package/dist/server.js +183 -139
- package/dist/web.cjs +62 -81
- package/dist/web.js +56 -72
- package/package.json +3 -3
- package/types/client.d.ts +0 -2
- package/types/core.d.ts +2 -1
- package/types/index.d.ts +14 -1
- package/types/server.d.ts +0 -1
package/types/client.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export const DelegatedEvents: Set<string>;
|
|
|
5
5
|
export const DOMElements: Set<string>;
|
|
6
6
|
export const SVGElements: Set<string>;
|
|
7
7
|
export const SVGNamespace: Record<string, string>;
|
|
8
|
-
export function getPropAlias(prop: string, tagName: string): string | undefined;
|
|
9
8
|
|
|
10
9
|
type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;
|
|
11
10
|
export function render(code: () => JSX.Element, element: MountableElement): () => void;
|
|
@@ -31,7 +30,6 @@ export function spread<T>(
|
|
|
31
30
|
export function assign(node: Element, props: any, isSVG?: Boolean, skipChildren?: Boolean): void;
|
|
32
31
|
export function setAttribute(node: Element, name: string, value: string): void;
|
|
33
32
|
export function setAttributeNS(node: Element, namespace: string, name: string, value: string): void;
|
|
34
|
-
export function setBoolAttribute(node: Element, name: string, value: any): void;
|
|
35
33
|
type ClassList =
|
|
36
34
|
| Record<string, boolean>
|
|
37
35
|
| Array<string | number | boolean | null | undefined | Record<string, boolean>>;
|
package/types/core.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { getOwner, createComponent, createRoot as root, createRenderEffect as effect,
|
|
1
|
+
export { getOwner, createComponent, createRoot as root, createRenderEffect as effect, sharedConfig, untrack, merge as mergeProps, flatten, ssrHandleError, ssrRunInScope } from "solid-js";
|
|
2
|
+
export declare const memo: (fn: any) => import("solid-js").Accessor<any>;
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { hydrate as hydrateCore } from "./client.js";
|
|
2
2
|
import { JSX, ComponentProps, ValidComponent } from "solid-js";
|
|
3
3
|
export * from "./client.js";
|
|
4
|
-
export { For, Show,
|
|
4
|
+
export { For, Show, Switch, Match, Errored, Loading, merge as mergeProps } from "solid-js";
|
|
5
5
|
export * from "./server-mock.js";
|
|
6
6
|
export declare const isServer: boolean;
|
|
7
7
|
export declare const isDev: boolean;
|
|
@@ -22,6 +22,19 @@ export type DynamicProps<T extends ValidComponent, P = ComponentProps<T>> = {
|
|
|
22
22
|
} & {
|
|
23
23
|
component: T | undefined;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Renders an arbitrary component or element with the given props
|
|
27
|
+
*
|
|
28
|
+
* This is a lower level version of the `Dynamic` component, useful for
|
|
29
|
+
* performance optimizations in libraries. Do not use this unless you know
|
|
30
|
+
* what you are doing.
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const element = () => multiline() ? 'textarea' : 'input';
|
|
33
|
+
* createDynamic(element, { value: value() });
|
|
34
|
+
* ```
|
|
35
|
+
* @description https://docs.solidjs.com/reference/components/dynamic
|
|
36
|
+
*/
|
|
37
|
+
export declare function createDynamic<T extends ValidComponent>(component: () => T | undefined, props: ComponentProps<T>): JSX.Element;
|
|
25
38
|
/**
|
|
26
39
|
* Renders an arbitrary custom or native component and passes the other props
|
|
27
40
|
* ```typescript
|
package/types/server.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export const DelegatedEvents: Set<string>;
|
|
|
5
5
|
export const DOMElements: Set<string>;
|
|
6
6
|
export const SVGElements: Set<string>;
|
|
7
7
|
export const SVGNamespace: Record<string, string>;
|
|
8
|
-
export function getPropAlias(prop: string, tagName: string): string | undefined;
|
|
9
8
|
|
|
10
9
|
type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;
|
|
11
10
|
|