octane 0.1.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.
@@ -0,0 +1,59 @@
1
+ /**
2
+ * `octane-ts/server` — server-rendering entry (SSR Phase 1).
3
+ *
4
+ * Re-exports the server runtime. The `octane-ts/compiler` compiler, in
5
+ * `mode: 'server'`, emits component modules that `import { … } from
6
+ * 'octane-ts/server'` — pulling the server hook implementations and the `ssr*`
7
+ * string-building helpers from here. `render(Component, props)` is the server
8
+ * analogue of `createRoot().render()`.
9
+ */
10
+
11
+ export {
12
+ // Entry
13
+ render,
14
+ type RenderResult,
15
+ setSsrSuspenseTimeout,
16
+ getSsrSuspenseTimeout,
17
+
18
+ // Hooks (server semantics)
19
+ useState,
20
+ useReducer,
21
+ useEffect,
22
+ useLayoutEffect,
23
+ useInsertionEffect,
24
+ useImperativeHandle,
25
+ useMemo,
26
+ useCallback,
27
+ useRef,
28
+ useId,
29
+ useEffectEvent,
30
+ useTransition,
31
+ useDeferredValue,
32
+ useSyncExternalStore,
33
+ useActionState,
34
+ useFormStatus,
35
+ useOptimistic,
36
+ memo,
37
+
38
+ // Context
39
+ createContext,
40
+ use,
41
+ useContext,
42
+ ssrIsSuspense,
43
+ type Context,
44
+ type FormStatus,
45
+
46
+ // Compiler-emitted codegen helpers
47
+ escapeHtml,
48
+ escapeAttr,
49
+ ssrText,
50
+ ssrChild,
51
+ ssrAttr,
52
+ ssrStyle,
53
+ ssrSpread,
54
+ ssrComponent,
55
+ ssrBlock,
56
+ ssrPortal,
57
+ injectStyle,
58
+ ssrHeadEl,
59
+ } from '../runtime.server';