@vidact/runtime 0.2.0-beta.0 → 0.2.0-beta.5

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 (244) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +1 -1
  3. package/dist/actions.d.ts +32 -30
  4. package/dist/actions.d.ts.map +1 -1
  5. package/dist/actions.js +251 -266
  6. package/dist/actions.js.map +1 -1
  7. package/dist/async.d.ts +20 -17
  8. package/dist/async.d.ts.map +1 -1
  9. package/dist/async.js +18 -17
  10. package/dist/async.js.map +1 -1
  11. package/dist/compiled/async-resource.d.ts +9 -6
  12. package/dist/compiled/async-resource.d.ts.map +1 -1
  13. package/dist/compiled/async-resource.js +69 -77
  14. package/dist/compiled/async-resource.js.map +1 -1
  15. package/dist/compiled/core.d.ts +136 -147
  16. package/dist/compiled/core.d.ts.map +1 -1
  17. package/dist/compiled/core.js +2672 -2985
  18. package/dist/compiled/core.js.map +1 -1
  19. package/dist/compiled/types.d.ts +44 -56
  20. package/dist/compiled/types.d.ts.map +1 -1
  21. package/dist/compiled/types.js +10 -6
  22. package/dist/compiled/types.js.map +1 -1
  23. package/dist/compiled/validation.d.ts +4 -1
  24. package/dist/compiled/validation.d.ts.map +1 -1
  25. package/dist/compiled/validation.js +17 -20
  26. package/dist/compiled/validation.js.map +1 -1
  27. package/dist/component-spread.d.ts +5 -3
  28. package/dist/component-spread.d.ts.map +1 -1
  29. package/dist/component-spread.js +49 -67
  30. package/dist/component-spread.js.map +1 -1
  31. package/dist/concurrent.d.ts +20 -18
  32. package/dist/concurrent.d.ts.map +1 -1
  33. package/dist/concurrent.js +191 -210
  34. package/dist/concurrent.js.map +1 -1
  35. package/dist/direct-dom.d.ts +17 -12
  36. package/dist/direct-dom.d.ts.map +1 -1
  37. package/dist/direct-dom.js +187 -221
  38. package/dist/direct-dom.js.map +1 -1
  39. package/dist/dom/attributes.d.ts +9 -6
  40. package/dist/dom/attributes.d.ts.map +1 -1
  41. package/dist/dom/attributes.js +65 -47
  42. package/dist/dom/attributes.js.map +1 -1
  43. package/dist/dom/events.d.ts +5 -2
  44. package/dist/dom/events.d.ts.map +1 -1
  45. package/dist/dom/events.js +53 -65
  46. package/dist/dom/events.js.map +1 -1
  47. package/dist/dom/forms.d.ts +9 -6
  48. package/dist/dom/forms.d.ts.map +1 -1
  49. package/dist/dom/forms.js +152 -198
  50. package/dist/dom/forms.js.map +1 -1
  51. package/dist/dom/intrinsic.d.ts +17 -15
  52. package/dist/dom/intrinsic.d.ts.map +1 -1
  53. package/dist/dom/intrinsic.js +48 -50
  54. package/dist/dom/intrinsic.js.map +1 -1
  55. package/dist/dom/namespace.d.ts +4 -1
  56. package/dist/dom/namespace.d.ts.map +1 -1
  57. package/dist/dom/namespace.js +25 -28
  58. package/dist/dom/namespace.js.map +1 -1
  59. package/dist/dom/namespaces.d.ts +11 -8
  60. package/dist/dom/namespaces.d.ts.map +1 -1
  61. package/dist/dom/namespaces.js +14 -12
  62. package/dist/dom/namespaces.js.map +1 -1
  63. package/dist/dom/properties.d.ts +18 -16
  64. package/dist/dom/properties.d.ts.map +1 -1
  65. package/dist/dom/properties.js +273 -296
  66. package/dist/dom/properties.js.map +1 -1
  67. package/dist/dom/style-properties.d.ts +4 -1
  68. package/dist/dom/style-properties.d.ts.map +1 -1
  69. package/dist/dom/style-properties.js +49 -45
  70. package/dist/dom/style-properties.js.map +1 -1
  71. package/dist/dom/styles.d.ts +5 -2
  72. package/dist/dom/styles.d.ts.map +1 -1
  73. package/dist/dom/styles.js +47 -67
  74. package/dist/dom/styles.js.map +1 -1
  75. package/dist/dom-forms.d.ts +4 -1
  76. package/dist/dom-forms.d.ts.map +1 -1
  77. package/dist/dom-forms.js +16 -13
  78. package/dist/dom-forms.js.map +1 -1
  79. package/dist/dom-styles.d.ts +4 -1
  80. package/dist/dom-styles.d.ts.map +1 -1
  81. package/dist/dom-styles.js +10 -7
  82. package/dist/dom-styles.js.map +1 -1
  83. package/dist/framework-hydrate.d.ts +20 -17
  84. package/dist/framework-hydrate.d.ts.map +1 -1
  85. package/dist/framework-hydrate.js +128 -146
  86. package/dist/framework-hydrate.js.map +1 -1
  87. package/dist/framework-protocol.d.ts +27 -25
  88. package/dist/framework-protocol.d.ts.map +1 -1
  89. package/dist/framework-protocol.js +173 -211
  90. package/dist/framework-protocol.js.map +1 -1
  91. package/dist/framework.d.ts +34 -32
  92. package/dist/framework.d.ts.map +1 -1
  93. package/dist/framework.js +74 -93
  94. package/dist/framework.js.map +1 -1
  95. package/dist/hydrate.d.ts +11 -8
  96. package/dist/hydrate.d.ts.map +1 -1
  97. package/dist/hydrate.js +13 -9
  98. package/dist/hydrate.js.map +1 -1
  99. package/dist/hydration-bridge.d.ts +70 -58
  100. package/dist/hydration-bridge.d.ts.map +1 -1
  101. package/dist/hydration-bridge.js +77 -66
  102. package/dist/hydration-bridge.js.map +1 -1
  103. package/dist/hydration.d.ts +54 -28
  104. package/dist/hydration.d.ts.map +1 -1
  105. package/dist/hydration.js +450 -463
  106. package/dist/hydration.js.map +1 -1
  107. package/dist/index.d.ts +13 -13
  108. package/dist/index.js +11 -13
  109. package/dist/indexed-list.d.ts +8 -5
  110. package/dist/indexed-list.d.ts.map +1 -1
  111. package/dist/indexed-list.js +14 -7
  112. package/dist/indexed-list.js.map +1 -1
  113. package/dist/jsx-runtime.d.ts +10 -8
  114. package/dist/jsx-runtime.d.ts.map +1 -1
  115. package/dist/jsx-runtime.js +28 -23
  116. package/dist/jsx-runtime.js.map +1 -1
  117. package/dist/keyed-list.d.ts +13 -14
  118. package/dist/keyed-list.d.ts.map +1 -1
  119. package/dist/keyed-list.js +132 -160
  120. package/dist/keyed-list.js.map +1 -1
  121. package/dist/metadata.d.ts +6 -3
  122. package/dist/metadata.d.ts.map +1 -1
  123. package/dist/metadata.js +131 -164
  124. package/dist/metadata.js.map +1 -1
  125. package/dist/nested-prop.d.ts +4 -2
  126. package/dist/nested-prop.d.ts.map +1 -1
  127. package/dist/nested-prop.js +17 -16
  128. package/dist/nested-prop.js.map +1 -1
  129. package/dist/profiling.d.ts +11 -8
  130. package/dist/profiling.d.ts.map +1 -1
  131. package/dist/profiling.js +17 -17
  132. package/dist/profiling.js.map +1 -1
  133. package/dist/protocol.d.ts +5 -2
  134. package/dist/protocol.d.ts.map +1 -1
  135. package/dist/protocol.js +8 -5
  136. package/dist/protocol.js.map +1 -1
  137. package/dist/raw-html.d.ts +5 -2
  138. package/dist/raw-html.d.ts.map +1 -1
  139. package/dist/raw-html.js +86 -146
  140. package/dist/raw-html.js.map +1 -1
  141. package/dist/ref.d.ts +8 -3
  142. package/dist/ref.d.ts.map +1 -1
  143. package/dist/ref.js +10 -2
  144. package/dist/ref.js.map +1 -1
  145. package/dist/renderable-protocol.d.ts +26 -8
  146. package/dist/renderable-protocol.d.ts.map +1 -1
  147. package/dist/renderable-protocol.js +30 -9
  148. package/dist/renderable-protocol.js.map +1 -1
  149. package/dist/renderable.d.ts +27 -22
  150. package/dist/renderable.d.ts.map +1 -1
  151. package/dist/renderable.js +141 -133
  152. package/dist/renderable.js.map +1 -1
  153. package/dist/retained-ui.d.ts +9 -6
  154. package/dist/retained-ui.d.ts.map +1 -1
  155. package/dist/retained-ui.js +12 -10
  156. package/dist/retained-ui.js.map +1 -1
  157. package/dist/root.d.ts +18 -15
  158. package/dist/root.d.ts.map +1 -1
  159. package/dist/root.js +73 -85
  160. package/dist/root.js.map +1 -1
  161. package/dist/scheduler.d.ts +10 -8
  162. package/dist/scheduler.d.ts.map +1 -1
  163. package/dist/scheduler.js +97 -105
  164. package/dist/scheduler.js.map +1 -1
  165. package/dist/server-framework.d.ts +45 -42
  166. package/dist/server-framework.d.ts.map +1 -1
  167. package/dist/server-framework.js +209 -217
  168. package/dist/server-framework.js.map +1 -1
  169. package/dist/server.d.ts +130 -128
  170. package/dist/server.d.ts.map +1 -1
  171. package/dist/server.js +603 -710
  172. package/dist/server.js.map +1 -1
  173. package/dist/shared/promise.d.ts +6 -3
  174. package/dist/shared/promise.d.ts.map +1 -1
  175. package/dist/shared/promise.js +21 -19
  176. package/dist/shared/promise.js.map +1 -1
  177. package/dist/source-mask.d.ts +9 -6
  178. package/dist/source-mask.d.ts.map +1 -1
  179. package/dist/source-mask.js +45 -63
  180. package/dist/source-mask.js.map +1 -1
  181. package/dist/spread.d.ts +5 -2
  182. package/dist/spread.d.ts.map +1 -1
  183. package/dist/spread.js +79 -99
  184. package/dist/spread.js.map +1 -1
  185. package/dist/state-slot.d.ts +18 -15
  186. package/dist/state-slot.d.ts.map +1 -1
  187. package/dist/state-slot.js +43 -42
  188. package/dist/state-slot.js.map +1 -1
  189. package/dist/testing.d.ts +9 -6
  190. package/dist/testing.d.ts.map +1 -1
  191. package/dist/testing.js +16 -12
  192. package/dist/testing.js.map +1 -1
  193. package/package.json +8 -7
  194. package/src/actions.ts +415 -0
  195. package/src/async.ts +78 -0
  196. package/src/compiled/async-resource.ts +113 -0
  197. package/src/compiled/core.ts +4041 -0
  198. package/src/compiled/types.ts +96 -0
  199. package/src/compiled/validation.ts +23 -0
  200. package/src/component-spread.ts +86 -0
  201. package/src/concurrent.ts +310 -0
  202. package/src/direct-dom.ts +365 -0
  203. package/src/dom/attributes.ts +55 -0
  204. package/src/dom/events.ts +93 -0
  205. package/src/dom/forms.ts +220 -0
  206. package/src/dom/intrinsic.ts +94 -0
  207. package/src/dom/namespace.ts +30 -0
  208. package/src/dom/namespaces.ts +14 -0
  209. package/src/dom/properties.ts +355 -0
  210. package/src/dom/style-properties.ts +46 -0
  211. package/src/dom/styles.ts +86 -0
  212. package/src/dom-forms.ts +23 -0
  213. package/src/dom-styles.ts +11 -0
  214. package/src/env.d.ts +6 -0
  215. package/src/framework-hydrate.ts +224 -0
  216. package/src/framework-protocol.ts +335 -0
  217. package/src/framework.ts +161 -0
  218. package/src/hydrate.ts +38 -0
  219. package/src/hydration-bridge.ts +196 -0
  220. package/src/hydration.ts +642 -0
  221. package/src/index.ts +92 -0
  222. package/src/indexed-list.ts +20 -0
  223. package/src/jsx-runtime.ts +55 -0
  224. package/src/keyed-list.ts +233 -0
  225. package/src/metadata.ts +212 -0
  226. package/src/nested-prop.ts +27 -0
  227. package/src/profiling.ts +43 -0
  228. package/src/protocol.ts +8 -0
  229. package/src/raw-html.ts +206 -0
  230. package/src/ref.ts +13 -0
  231. package/src/renderable-protocol.ts +63 -0
  232. package/src/renderable.ts +283 -0
  233. package/src/retained-ui.ts +19 -0
  234. package/src/root.ts +122 -0
  235. package/src/scheduler.ts +136 -0
  236. package/src/server-framework.ts +397 -0
  237. package/src/server.ts +1160 -0
  238. package/src/shared/promise.ts +28 -0
  239. package/src/source-mask.ts +83 -0
  240. package/src/spread.ts +131 -0
  241. package/src/state-slot.ts +76 -0
  242. package/src/testing.ts +27 -0
  243. package/dist/index.d.ts.map +0 -1
  244. package/dist/index.js.map +0 -1
package/dist/server.d.ts CHANGED
@@ -1,159 +1,161 @@
1
- import type { JSX as ReactJSX } from 'react';
2
- import type { PreinitOptions, PreloadOptions, ResourceHintOptions } from './framework.js';
1
+ import { PreinitOptions, PreloadOptions, ResourceHintOptions } from "./framework.js";
2
+ import { JSX as JSX$1 } from "react";
3
+ //#region src/server.d.ts
3
4
  declare const SERVER_NODE: unique symbol;
4
5
  declare const SERVER_NODE_KIND: unique symbol;
5
6
  declare const SERVER_CONTEXT: unique symbol;
6
7
  declare const SERVER_ASYNC_RESOURCE: unique symbol;
7
8
  declare const SERVER_RENDERABLE: unique symbol;
8
- export interface ServerNode {
9
- readonly [SERVER_NODE]: (context: RenderContext) => string;
10
- readonly [SERVER_NODE_KIND]: 'component' | 'intrinsic' | 'transparent';
9
+ interface ServerNode {
10
+ readonly [SERVER_NODE]: (context: RenderContext) => string;
11
+ readonly [SERVER_NODE_KIND]: 'component' | 'intrinsic' | 'transparent';
11
12
  }
12
- export type ServerChild = ServerNode | ServerRenderable | string | number | bigint | boolean | null | undefined | readonly ServerChild[];
13
- export type ServerComponent = (props: Record<string, unknown>) => ServerChild;
14
- export type ServerElementType = string | typeof Fragment | ServerComponent | ServerRenderable;
15
- export type ServerProps = Record<string, unknown> | null;
13
+ type ServerChild = ServerNode | ServerRenderable | string | number | bigint | boolean | null | undefined | readonly ServerChild[];
14
+ type ServerComponent = (props: Record<string, unknown>) => ServerChild;
15
+ type ServerElementType = string | typeof Fragment | ServerComponent | ServerRenderable;
16
+ type ServerProps = Record<string, unknown> | null;
16
17
  type ServerRenderable = {
17
- readonly props: Record<string, unknown>;
18
- readonly [SERVER_RENDERABLE]: {
19
- readonly input: Record<string, unknown>;
20
- readonly construct: (input: Record<string, unknown>) => ServerChild;
21
- };
18
+ readonly props: Record<string, unknown>;
19
+ readonly [SERVER_RENDERABLE]: {
20
+ readonly input: Record<string, unknown>;
21
+ readonly construct: (input: Record<string, unknown>) => ServerChild;
22
+ };
22
23
  };
23
- type ServerIntrinsicElements = {
24
- [Name in keyof ReactJSX.IntrinsicElements]: Omit<ReactJSX.IntrinsicElements[Name], 'children'> & {
25
- readonly children?: ServerChild;
26
- };
27
- };
28
- export declare namespace JSX {
29
- type Element = ServerNode;
30
- type ElementType = keyof IntrinsicElements | ServerComponent | ServerRenderable;
31
- interface ElementChildrenAttribute extends ReactJSX.ElementChildrenAttribute {
32
- }
33
- interface IntrinsicAttributes extends ReactJSX.IntrinsicAttributes {
34
- }
35
- type IntrinsicElements = ServerIntrinsicElements;
24
+ type ServerIntrinsicElements = { [Name in keyof JSX$1.IntrinsicElements]: Omit<JSX$1.IntrinsicElements[Name], 'children'> & {
25
+ readonly children?: ServerChild;
26
+ }; };
27
+ declare namespace JSX {
28
+ type Element = ServerNode;
29
+ type ElementType = keyof IntrinsicElements | ServerComponent | ServerRenderable;
30
+ interface ElementChildrenAttribute extends JSX$1.ElementChildrenAttribute {}
31
+ interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
32
+ type IntrinsicElements = ServerIntrinsicElements;
36
33
  }
37
- export declare function createRenderable(input: Record<string, unknown>, construct: (input: Record<string, unknown>) => ServerChild): ServerRenderable;
38
- export declare function isRenderable(value: unknown): value is ServerRenderable;
39
- export declare function renderableToArray(value: unknown): [ServerRenderable];
40
- export declare function renderableMarker(value: unknown): undefined;
41
- export declare function cloneRenderable(value: unknown, overrides?: Record<string, unknown>): ServerChild;
42
- export declare function cloneRenderableComponent(props: Record<string, unknown>): ServerChild;
43
- export declare function renderableProps(input: Record<string, unknown>): Record<string, unknown>;
44
- export declare function renderableChildren(input: Record<string, unknown>): ServerChild;
45
- export declare function renderableRef(_input: Record<string, unknown>): undefined;
46
- export declare function forwardedRef(_props: Record<string, unknown>): undefined;
47
- export declare function dynamicIntrinsicComponent(props: Record<string, unknown>): ServerNode;
48
- export interface ServerRenderOptions {
49
- readonly identifierPrefix?: string;
34
+ declare function createRenderable(input: Record<string, unknown>, construct: (input: Record<string, unknown>) => ServerChild): ServerRenderable;
35
+ declare function isRenderable(value: unknown): value is ServerRenderable;
36
+ declare function renderableToArray(value: unknown): [ServerRenderable];
37
+ declare function renderableMarker(value: unknown): undefined;
38
+ declare function cloneRenderable(value: unknown, overrides?: Record<string, unknown> | null, childrenOverride?: ServerChild): ServerChild;
39
+ declare function cloneRenderableComponent(props: Record<string, unknown>): ServerChild;
40
+ declare function keyedFragmentComponent(props: Record<string, unknown>): ServerChild;
41
+ declare function renderableProps(input: Record<string, unknown>): Record<string, unknown>;
42
+ declare function renderableChildren(input: Record<string, unknown>): ServerChild;
43
+ declare function renderableRef(_input: Record<string, unknown>): undefined;
44
+ declare function forwardedRef(_props: Record<string, unknown>): undefined;
45
+ declare function dynamicIntrinsicComponent(props: Record<string, unknown>): ServerNode;
46
+ interface ServerRenderOptions {
47
+ readonly identifierPrefix?: string;
50
48
  }
51
49
  type FrameworkCacheEntry = {
52
- readonly args: readonly unknown[];
53
- readonly status: 'fulfilled' | 'rejected';
54
- readonly value: unknown;
50
+ readonly args: readonly unknown[];
51
+ readonly status: 'fulfilled' | 'rejected';
52
+ readonly value: unknown;
55
53
  };
56
54
  /** @internal */
57
- export interface ServerFrameworkRenderContext {
58
- readonly signal: AbortSignal;
59
- readonly pending: Set<PromiseLike<unknown>>;
60
- readonly cache: Map<Function, FrameworkCacheEntry[]>;
61
- readonly head: Map<string, {
62
- readonly html: string;
63
- readonly precedence: string;
64
- }>;
65
- readonly stylePrecedence: string[];
66
- sawHead: boolean;
55
+ interface ServerFrameworkRenderContext {
56
+ readonly signal: AbortSignal;
57
+ readonly pending: Set<PromiseLike<unknown>>;
58
+ readonly cache: Map<Function, FrameworkCacheEntry[]>;
59
+ readonly head: Map<string, {
60
+ readonly html: string;
61
+ readonly precedence: string;
62
+ }>;
63
+ readonly stylePrecedence: string[];
64
+ sawHead: boolean;
67
65
  }
68
66
  interface RenderContext {
69
- hydrationMarkers: boolean;
70
- identifierPrefix: string;
71
- nextBoundary: number;
72
- nextId: number;
73
- activityHidden: boolean;
67
+ hydrationMarkers: boolean;
68
+ identifierPrefix: string;
69
+ nextBoundary: number;
70
+ nextId: number;
71
+ activityHidden: boolean;
74
72
  }
75
73
  interface ContextState<Value> {
76
- readonly defaultValue: Value;
77
- readonly stack: Value[];
74
+ readonly defaultValue: Value;
75
+ readonly stack: Value[];
78
76
  }
79
- export interface ServerContext<Value> {
80
- readonly Provider: ServerComponent;
81
- readonly [SERVER_CONTEXT]: ContextState<Value>;
77
+ interface ServerContext<Value> {
78
+ readonly Provider: ServerComponent;
79
+ readonly [SERVER_CONTEXT]: ContextState<Value>;
82
80
  }
83
81
  type ServerAsyncState<Value> = {
84
- readonly status: 'pending';
82
+ readonly status: 'pending';
85
83
  } | {
86
- readonly status: 'fulfilled';
87
- readonly value: Value;
84
+ readonly status: 'fulfilled';
85
+ readonly value: Value;
88
86
  } | {
89
- readonly status: 'rejected';
90
- readonly reason: unknown;
87
+ readonly status: 'rejected';
88
+ readonly reason: unknown;
91
89
  };
92
- export interface ServerAsyncResource<Value> {
93
- readonly [SERVER_ASYNC_RESOURCE]: ServerAsyncState<Value>;
94
- readonly promise: PromiseLike<Value>;
90
+ interface ServerAsyncResource<Value> {
91
+ readonly [SERVER_ASYNC_RESOURCE]: ServerAsyncState<Value>;
92
+ readonly promise: PromiseLike<Value>;
95
93
  }
96
- export type ServerLazyModule<Props extends Record<string, unknown>> = {
97
- readonly default: (props: Props) => ServerChild;
94
+ type ServerLazyModule<Props extends Record<string, unknown>> = {
95
+ readonly default: (props: Props) => ServerChild;
98
96
  };
99
- export declare const Fragment: unique symbol;
97
+ declare const Fragment: unique symbol;
100
98
  /** @internal */
101
- export declare function createServerFrameworkRenderContext(signal: AbortSignal): ServerFrameworkRenderContext;
99
+ declare function createServerFrameworkRenderContext(signal: AbortSignal): ServerFrameworkRenderContext;
102
100
  /** @internal */
103
- export declare function withServerFrameworkRenderContext<Result>(context: ServerFrameworkRenderContext, operation: () => Result): Result;
104
- export declare function cache<Arguments extends readonly unknown[], Result>(operation: (...arguments_: Arguments) => Result): (...arguments_: Arguments) => Result;
105
- export declare function cacheSignal(): AbortSignal | null;
106
- export declare function preconnect(href: string, options?: ResourceHintOptions): void;
107
- export declare function prefetchDNS(href: string): void;
108
- export declare function preload(href: string, options: PreloadOptions): void;
109
- export declare function preloadModule(href: string, options?: ResourceHintOptions): void;
110
- export declare function preinit(href: string, options: PreinitOptions): void;
111
- export declare function preinitModule(href: string, options?: ResourceHintOptions): void;
112
- export declare function jsx(type: ServerElementType, props: ServerProps, _key?: unknown): ServerNode;
113
- export declare function jsxs(type: ServerElementType, props: ServerProps, _key?: unknown): ServerNode;
114
- export declare function jsxDEV(type: ServerElementType, props: ServerProps, _key?: unknown, isStaticChildren?: boolean): ServerNode;
115
- export declare function createElement(type: ServerElementType, props: ServerProps, ...children: ServerChild[]): ServerNode;
101
+ declare function withServerFrameworkRenderContext<Result>(context: ServerFrameworkRenderContext, operation: () => Result): Result;
102
+ declare function cache<Arguments extends readonly unknown[], Result>(operation: (...arguments_: Arguments) => Result): (...arguments_: Arguments) => Result;
103
+ declare function cacheSignal(): AbortSignal | null;
104
+ declare function preconnect(href: string, options?: ResourceHintOptions): void;
105
+ declare function prefetchDNS(href: string): void;
106
+ declare function preload(href: string, options: PreloadOptions): void;
107
+ declare function preloadModule(href: string, options?: ResourceHintOptions): void;
108
+ declare function preinit(href: string, options: PreinitOptions): void;
109
+ declare function preinitModule(href: string, options?: ResourceHintOptions): void;
110
+ declare function jsx(type: ServerElementType, props: ServerProps, _key?: unknown): ServerNode;
111
+ declare function jsxs(type: ServerElementType, props: ServerProps, _key?: unknown): ServerNode;
112
+ declare function jsxDEV(type: ServerElementType, props: ServerProps, _key?: unknown, isStaticChildren?: boolean): ServerNode;
113
+ declare function createElement(type: ServerElementType, props: ServerProps, ...children: ServerChild[]): ServerNode;
116
114
  /** @internal */
117
- export declare function createServerHydrationBoundary(value: ServerChild, hostProps?: Readonly<Record<string, unknown>>): ServerNode;
118
- export declare function renderToString(value: ServerChild | (() => ServerChild), options?: ServerRenderOptions): string;
119
- export declare function renderToStaticMarkup(value: ServerChild | (() => ServerChild), options?: ServerRenderOptions): string;
120
- export type StateUpdate<Value> = Value | ((previous: Value) => Value);
121
- export declare function useState<Value>(initial: Value | (() => Value)): [Value, (value: StateUpdate<Value>) => void];
122
- export declare function useReducer<State, Action>(_reducer: (state: State, action: Action) => State, initial: State, initialize?: (value: State) => State): [State, (action: Action) => void];
123
- export declare function startTransition(action: () => void | PromiseLike<void>): void;
124
- export declare function useTransition(): [boolean, typeof startTransition];
125
- export declare function useDeferredValue<Value>(value: Value, _initialValue?: Value): Value;
126
- export declare function flushSync<Result>(operation?: () => Result): Result | undefined;
127
- export declare function useActionState<State, Payload>(_action: (previousState: State, payload: Payload) => State | PromiseLike<State>, initialState: State, permalink?: string): [State, (payload: Payload) => void, boolean];
128
- export declare function useOptimistic<Value, Update = Value>(passthrough: Value, _reducer?: (current: Value, update: Update) => Value): [Value, (update: Update) => void];
129
- export declare function useFormStatus(): {
130
- readonly pending: false;
131
- readonly data: null;
132
- readonly method: 'get';
133
- readonly action: null;
115
+ declare function createServerHydrationBoundary(value: ServerChild, hostProps?: Readonly<Record<string, unknown>>): ServerNode;
116
+ declare function renderToString(value: ServerChild | (() => ServerChild), options?: ServerRenderOptions): string;
117
+ declare function renderToStaticMarkup(value: ServerChild | (() => ServerChild), options?: ServerRenderOptions): string;
118
+ type StateUpdate<Value> = Value | ((previous: Value) => Value);
119
+ declare function useState<Value>(initial: Value | (() => Value)): [Value, (value: StateUpdate<Value>) => void];
120
+ declare function useReducer<State, Action>(_reducer: (state: State, action: Action) => State, initial: State, initialize?: (value: State) => State): [State, (action: Action) => void];
121
+ declare function startTransition(action: () => void | PromiseLike<void>): void;
122
+ declare function useTransition(): [boolean, typeof startTransition];
123
+ declare function useDeferredValue<Value>(value: Value, _initialValue?: Value): Value;
124
+ declare function flushSync<Result>(operation?: () => Result): Result | undefined;
125
+ declare function useActionState<State, Payload>(_action: (previousState: State, payload: Payload) => State | PromiseLike<State>, initialState: State, permalink?: string): [State, (payload: Payload) => void, boolean];
126
+ declare function useOptimistic<Value, Update = Value>(passthrough: Value, _reducer?: (current: Value, update: Update) => Value): [Value, (update: Update) => void];
127
+ declare function useFormStatus(): {
128
+ readonly pending: false;
129
+ readonly data: null;
130
+ readonly method: 'get';
131
+ readonly action: null;
132
+ };
133
+ declare function useMemo<Value>(factory: () => Value, _dependencies: readonly unknown[]): Value;
134
+ declare function useCallback<Value extends (...arguments_: never[]) => unknown>(callback: Value, _dependencies: readonly unknown[]): Value;
135
+ declare function useRef<Value>(initial: Value): {
136
+ current: Value;
134
137
  };
135
- export declare function useMemo<Value>(factory: () => Value, _dependencies: readonly unknown[]): Value;
136
- export declare function useCallback<Value extends (...arguments_: never[]) => unknown>(callback: Value, _dependencies: readonly unknown[]): Value;
137
- export declare function useRef<Value>(initial: Value): {
138
- current: Value;
138
+ declare function createRef<Value>(): {
139
+ current: Value | null;
139
140
  };
140
- export declare function useEffect(_create: () => void | (() => void), _dependencies?: readonly unknown[]): void;
141
- export declare const useLayoutEffect: typeof useEffect;
142
- export declare const useInsertionEffect: typeof useEffect;
143
- export declare function useImperativeHandle(_ref: unknown, _create: () => unknown, _dependencies?: readonly unknown[]): void;
144
- export declare function useEffectEvent<Arguments extends unknown[], Result>(callback: (...arguments_: Arguments) => Result): (...arguments_: Arguments) => Result;
145
- export declare function useSyncExternalStore<Value>(_subscribe: (notify: () => void) => () => void, getSnapshot: () => Value, getServerSnapshot?: () => Value): Value;
146
- export declare function useId(): string;
147
- export declare function createContext<Value>(defaultValue: Value): ServerContext<Value>;
148
- export declare function useContext<Value>(context: ServerContext<Value>): Value;
149
- export declare function createResource<Value>(input: PromiseLike<Value>): ServerAsyncResource<Value>;
150
- export declare function use<Value>(input: ServerContext<Value> | ServerAsyncResource<Value> | PromiseLike<Value>): Value;
151
- export declare function lazy<Props extends Record<string, unknown>>(load: () => PromiseLike<ServerLazyModule<Props>>): ServerComponent;
152
- export declare function Suspense(props: Record<string, unknown>): ServerNode;
153
- export declare function Activity(props: Record<string, unknown>): ServerNode;
154
- export declare function Profiler(props: Record<string, unknown>): ServerChild;
155
- export declare function useDebugValue<Value>(_value: Value, _format?: (value: Value) => unknown): void;
156
- export declare function captureOwnerStack(): null;
157
- export declare function createPortal(_children: ServerChild, _container: unknown): never;
158
- export {};
141
+ declare function useEffect(_create: () => void | (() => void), _dependencies?: readonly unknown[]): void;
142
+ declare const useLayoutEffect: typeof useEffect;
143
+ declare const useInsertionEffect: typeof useEffect;
144
+ declare function useImperativeHandle(_ref: unknown, _create: () => unknown, _dependencies?: readonly unknown[]): void;
145
+ declare function useEffectEvent<Arguments extends unknown[], Result>(callback: (...arguments_: Arguments) => Result): (...arguments_: Arguments) => Result;
146
+ declare function useSyncExternalStore<Value>(_subscribe: (notify: () => void) => () => void, getSnapshot: () => Value, getServerSnapshot?: () => Value): Value;
147
+ declare function useId(): string;
148
+ declare function createContext<Value>(defaultValue: Value): ServerContext<Value>;
149
+ declare function useContext<Value>(context: ServerContext<Value>): Value;
150
+ declare function createResource<Value>(input: PromiseLike<Value>): ServerAsyncResource<Value>;
151
+ declare function use<Value>(input: ServerContext<Value> | ServerAsyncResource<Value> | PromiseLike<Value>): Value;
152
+ declare function lazy<Props extends Record<string, unknown>>(load: () => PromiseLike<ServerLazyModule<Props>>): ServerComponent;
153
+ declare function Suspense(props: Record<string, unknown>): ServerNode;
154
+ declare function Activity(props: Record<string, unknown>): ServerNode;
155
+ declare function Profiler(props: Record<string, unknown>): ServerChild;
156
+ declare function useDebugValue<Value>(_value: Value, _format?: (value: Value) => unknown): void;
157
+ declare function captureOwnerStack(): null;
158
+ declare function createPortal(_children: ServerChild, _container: unknown): never;
159
+ //#endregion
160
+ export { Activity, Fragment, JSX, Profiler, ServerAsyncResource, ServerChild, ServerComponent, ServerContext, ServerElementType, ServerFrameworkRenderContext, ServerLazyModule, ServerNode, ServerProps, ServerRenderOptions, StateUpdate, Suspense, cache, cacheSignal, captureOwnerStack, cloneRenderable, cloneRenderableComponent, createContext, createElement, createPortal, createRef, createRenderable, createResource, createServerFrameworkRenderContext, createServerHydrationBoundary, dynamicIntrinsicComponent, flushSync, forwardedRef, isRenderable, jsx, jsxDEV, jsxs, keyedFragmentComponent, lazy, preconnect, prefetchDNS, preinit, preinitModule, preload, preloadModule, renderToStaticMarkup, renderToString, renderableChildren, renderableMarker, renderableProps, renderableRef, renderableToArray, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useEffectEvent, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, withServerFrameworkRenderContext };
159
161
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,IAAI,QAAQ,EAAE,MAAM,OAAO,CAAA;AAU5C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,gBAA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