@solidjs/web 2.0.0-experimental.1 → 2.0.0-experimental.10
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 +56 -75
- package/dist/dev.js +56 -72
- package/dist/server.cjs +189 -152
- package/dist/server.js +183 -139
- package/dist/web.cjs +56 -75
- 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 +13 -0
- package/types/server.d.ts +0 -1
package/types/index.d.ts
CHANGED
|
@@ -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
|
|