@getforma/core 0.1.0 → 0.2.0
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/README.md +7 -7
- package/dist/{chunk-DB2ULMOM.js → chunk-VKKPX4YU.js} +18 -9
- package/dist/chunk-VKKPX4YU.js.map +1 -0
- package/dist/{chunk-27QSSN4E.cjs → chunk-VP5EOGM5.cjs} +18 -8
- package/dist/chunk-VP5EOGM5.cjs.map +1 -0
- package/dist/formajs.global.js +1 -1
- package/dist/formajs.global.js.map +1 -1
- package/dist/index.cjs +48 -44
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +2 -2
- package/dist/jsx.d.ts +428 -0
- package/dist/runtime.cjs +22 -22
- package/dist/runtime.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-27QSSN4E.cjs.map +0 -1
- package/dist/chunk-DB2ULMOM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVP5EOGM5_cjs = require('./chunk-VP5EOGM5.cjs');
|
|
4
4
|
var chunkFPSLC62A_cjs = require('./chunk-FPSLC62A.cjs');
|
|
5
5
|
|
|
6
6
|
// src/dom/text.ts
|
|
7
7
|
function createText(value) {
|
|
8
8
|
if (typeof value === "function") {
|
|
9
9
|
const node = new Text("");
|
|
10
|
-
|
|
10
|
+
chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
11
11
|
node.data = value();
|
|
12
12
|
});
|
|
13
13
|
return node;
|
|
@@ -23,12 +23,12 @@ function mount(component, container) {
|
|
|
23
23
|
}
|
|
24
24
|
let disposeRoot;
|
|
25
25
|
if (target.hasAttribute("data-forma-ssr")) {
|
|
26
|
-
|
|
26
|
+
chunkVP5EOGM5_cjs.createRoot((dispose) => {
|
|
27
27
|
disposeRoot = dispose;
|
|
28
|
-
|
|
28
|
+
chunkVP5EOGM5_cjs.hydrateIsland(component, target);
|
|
29
29
|
});
|
|
30
30
|
} else {
|
|
31
|
-
const dom =
|
|
31
|
+
const dom = chunkVP5EOGM5_cjs.createRoot((dispose) => {
|
|
32
32
|
disposeRoot = dispose;
|
|
33
33
|
return component();
|
|
34
34
|
});
|
|
@@ -54,7 +54,7 @@ function createSwitch(value, cases, fallback) {
|
|
|
54
54
|
const cache = /* @__PURE__ */ new Map();
|
|
55
55
|
let currentNode = null;
|
|
56
56
|
let currentMatch = UNSET;
|
|
57
|
-
const switchDispose =
|
|
57
|
+
const switchDispose = chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
58
58
|
const val = value();
|
|
59
59
|
if (val === currentMatch) return;
|
|
60
60
|
const DEBUG = typeof globalThis.__FORMA_DEBUG__ !== "undefined";
|
|
@@ -89,9 +89,9 @@ function createSwitch(value, cases, fallback) {
|
|
|
89
89
|
let entry = cache.get(val);
|
|
90
90
|
if (!entry) {
|
|
91
91
|
let branchDispose;
|
|
92
|
-
const node =
|
|
92
|
+
const node = chunkVP5EOGM5_cjs.createRoot((dispose) => {
|
|
93
93
|
branchDispose = dispose;
|
|
94
|
-
return
|
|
94
|
+
return chunkVP5EOGM5_cjs.untrack(() => matchedCase.render());
|
|
95
95
|
});
|
|
96
96
|
entry = { node, dispose: branchDispose };
|
|
97
97
|
cache.set(val, entry);
|
|
@@ -134,7 +134,7 @@ function createPortal(children2, target) {
|
|
|
134
134
|
}
|
|
135
135
|
mountedNode = null;
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
chunkVP5EOGM5_cjs.createEffect(() => {
|
|
138
138
|
const node = children2();
|
|
139
139
|
removeMountedNode();
|
|
140
140
|
mountedNode = node;
|
|
@@ -155,7 +155,7 @@ function createErrorBoundary(tryFn, catchFn) {
|
|
|
155
155
|
fragment2.appendChild(endMarker);
|
|
156
156
|
const [retryCount, setRetryCount] = chunkFPSLC62A_cjs.createSignal(0);
|
|
157
157
|
let currentNode = null;
|
|
158
|
-
|
|
158
|
+
chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
159
159
|
retryCount();
|
|
160
160
|
const parent2 = startMarker.parentNode;
|
|
161
161
|
if (!parent2) return;
|
|
@@ -195,13 +195,13 @@ function createSuspense(fallback, children2) {
|
|
|
195
195
|
setPending((p) => Math.max(0, p - 1));
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
chunkVP5EOGM5_cjs.pushSuspenseContext(ctx);
|
|
199
199
|
try {
|
|
200
200
|
resolvedNode = children2();
|
|
201
201
|
} finally {
|
|
202
|
-
|
|
202
|
+
chunkVP5EOGM5_cjs.popSuspenseContext();
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
205
205
|
const parent2 = startMarker.parentNode;
|
|
206
206
|
if (!parent2) return;
|
|
207
207
|
const isPending = pending() > 0;
|
|
@@ -268,8 +268,8 @@ function hydrateIslandRoot(root, id, componentName, hydrateFn, sharedProps) {
|
|
|
268
268
|
const props = loadIslandProps(root, id, sharedProps);
|
|
269
269
|
root.setAttribute("data-forma-status", "hydrating");
|
|
270
270
|
let activeRoot = root;
|
|
271
|
-
|
|
272
|
-
activeRoot =
|
|
271
|
+
chunkVP5EOGM5_cjs.createRoot((dispose) => {
|
|
272
|
+
activeRoot = chunkVP5EOGM5_cjs.hydrateIsland(() => hydrateFn(props), root);
|
|
273
273
|
activeRoot.__formaDispose = dispose;
|
|
274
274
|
});
|
|
275
275
|
activeRoot.setAttribute("data-forma-status", "active");
|
|
@@ -483,7 +483,7 @@ function createStore(initial) {
|
|
|
483
483
|
if (isArr && ARRAY_MUTATORS.has(key)) {
|
|
484
484
|
return (...args) => {
|
|
485
485
|
let result;
|
|
486
|
-
|
|
486
|
+
chunkVP5EOGM5_cjs.batch(() => {
|
|
487
487
|
const rawArgs = args.map(
|
|
488
488
|
(a) => a != null && typeof a === "object" && a[RAW] ? a[RAW] : a
|
|
489
489
|
);
|
|
@@ -597,11 +597,11 @@ function createStore(initial) {
|
|
|
597
597
|
}
|
|
598
598
|
const rootProxy = wrap(initial, "");
|
|
599
599
|
function getCurrentSnapshot() {
|
|
600
|
-
return
|
|
600
|
+
return chunkVP5EOGM5_cjs.untrack(() => deepClone(initial));
|
|
601
601
|
}
|
|
602
602
|
const setter = (partial) => {
|
|
603
603
|
const updates = typeof partial === "function" ? partial(getCurrentSnapshot()) : partial;
|
|
604
|
-
|
|
604
|
+
chunkVP5EOGM5_cjs.batch(() => {
|
|
605
605
|
for (const key of Object.keys(updates)) {
|
|
606
606
|
rootProxy[key] = updates[key];
|
|
607
607
|
}
|
|
@@ -620,7 +620,7 @@ function createHistory(source, options) {
|
|
|
620
620
|
const [cursorSignal, setCursorSignal] = chunkFPSLC62A_cjs.createValueSignal(_cursor);
|
|
621
621
|
const [stackLenSignal, setStackLenSignal] = chunkFPSLC62A_cjs.createValueSignal(_stack.length);
|
|
622
622
|
function syncSignals() {
|
|
623
|
-
|
|
623
|
+
chunkVP5EOGM5_cjs.batch(() => {
|
|
624
624
|
setStackSignal([..._stack]);
|
|
625
625
|
setCursorSignal(_cursor);
|
|
626
626
|
setStackLenSignal(_stack.length);
|
|
@@ -628,7 +628,7 @@ function createHistory(source, options) {
|
|
|
628
628
|
}
|
|
629
629
|
let ignoreNext = false;
|
|
630
630
|
let isFirstRun = true;
|
|
631
|
-
|
|
631
|
+
chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
632
632
|
const value = sourceGet();
|
|
633
633
|
if (isFirstRun) {
|
|
634
634
|
isFirstRun = false;
|
|
@@ -693,7 +693,7 @@ function persist(source, key, options) {
|
|
|
693
693
|
}
|
|
694
694
|
} catch {
|
|
695
695
|
}
|
|
696
|
-
|
|
696
|
+
chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
697
697
|
const value = sourceGet();
|
|
698
698
|
try {
|
|
699
699
|
const serialized = serialize(value);
|
|
@@ -1135,7 +1135,7 @@ function createFetch(url, options) {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
if (typeof url === "function") {
|
|
1138
|
-
|
|
1138
|
+
chunkVP5EOGM5_cjs.internalEffect(() => {
|
|
1139
1139
|
url();
|
|
1140
1140
|
execute();
|
|
1141
1141
|
});
|
|
@@ -1297,14 +1297,14 @@ function createAction(serverFn, options) {
|
|
|
1297
1297
|
setError(void 0);
|
|
1298
1298
|
if (options?.optimistic) {
|
|
1299
1299
|
try {
|
|
1300
|
-
|
|
1300
|
+
chunkVP5EOGM5_cjs.batch(() => options.optimistic(...args));
|
|
1301
1301
|
} catch {
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
try {
|
|
1305
1305
|
const result = await serverFn(...args);
|
|
1306
1306
|
if (options?.onSuccess) {
|
|
1307
|
-
|
|
1307
|
+
chunkVP5EOGM5_cjs.batch(() => options.onSuccess(result, ...args));
|
|
1308
1308
|
}
|
|
1309
1309
|
if (options?.invalidates) {
|
|
1310
1310
|
for (const resource of options.invalidates) {
|
|
@@ -1316,7 +1316,7 @@ function createAction(serverFn, options) {
|
|
|
1316
1316
|
} catch (err) {
|
|
1317
1317
|
if (options?.onError) {
|
|
1318
1318
|
try {
|
|
1319
|
-
|
|
1319
|
+
chunkVP5EOGM5_cjs.batch(() => options.onError(err, ...args));
|
|
1320
1320
|
} catch {
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
@@ -1477,81 +1477,85 @@ async function renderIsland(slotsJson, islandId) {
|
|
|
1477
1477
|
return wasm.render_island(ir, slotsJson, islandId);
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
+
Object.defineProperty(exports, "Fragment", {
|
|
1481
|
+
enumerable: true,
|
|
1482
|
+
get: function () { return chunkVP5EOGM5_cjs.Fragment; }
|
|
1483
|
+
});
|
|
1480
1484
|
Object.defineProperty(exports, "batch", {
|
|
1481
1485
|
enumerable: true,
|
|
1482
|
-
get: function () { return
|
|
1486
|
+
get: function () { return chunkVP5EOGM5_cjs.batch; }
|
|
1483
1487
|
});
|
|
1484
1488
|
Object.defineProperty(exports, "cleanup", {
|
|
1485
1489
|
enumerable: true,
|
|
1486
|
-
get: function () { return
|
|
1490
|
+
get: function () { return chunkVP5EOGM5_cjs.cleanup; }
|
|
1487
1491
|
});
|
|
1488
1492
|
Object.defineProperty(exports, "createEffect", {
|
|
1489
1493
|
enumerable: true,
|
|
1490
|
-
get: function () { return
|
|
1494
|
+
get: function () { return chunkVP5EOGM5_cjs.createEffect; }
|
|
1491
1495
|
});
|
|
1492
1496
|
Object.defineProperty(exports, "createList", {
|
|
1493
1497
|
enumerable: true,
|
|
1494
|
-
get: function () { return
|
|
1498
|
+
get: function () { return chunkVP5EOGM5_cjs.createList; }
|
|
1495
1499
|
});
|
|
1496
1500
|
Object.defineProperty(exports, "createMemo", {
|
|
1497
1501
|
enumerable: true,
|
|
1498
|
-
get: function () { return
|
|
1502
|
+
get: function () { return chunkVP5EOGM5_cjs.createMemo; }
|
|
1499
1503
|
});
|
|
1500
1504
|
Object.defineProperty(exports, "createReducer", {
|
|
1501
1505
|
enumerable: true,
|
|
1502
|
-
get: function () { return
|
|
1506
|
+
get: function () { return chunkVP5EOGM5_cjs.createReducer; }
|
|
1503
1507
|
});
|
|
1504
1508
|
Object.defineProperty(exports, "createRef", {
|
|
1505
1509
|
enumerable: true,
|
|
1506
|
-
get: function () { return
|
|
1510
|
+
get: function () { return chunkVP5EOGM5_cjs.createRef; }
|
|
1507
1511
|
});
|
|
1508
1512
|
Object.defineProperty(exports, "createResource", {
|
|
1509
1513
|
enumerable: true,
|
|
1510
|
-
get: function () { return
|
|
1514
|
+
get: function () { return chunkVP5EOGM5_cjs.createResource; }
|
|
1511
1515
|
});
|
|
1512
1516
|
Object.defineProperty(exports, "createRoot", {
|
|
1513
1517
|
enumerable: true,
|
|
1514
|
-
get: function () { return
|
|
1518
|
+
get: function () { return chunkVP5EOGM5_cjs.createRoot; }
|
|
1515
1519
|
});
|
|
1516
1520
|
Object.defineProperty(exports, "createShow", {
|
|
1517
1521
|
enumerable: true,
|
|
1518
|
-
get: function () { return
|
|
1522
|
+
get: function () { return chunkVP5EOGM5_cjs.createShow; }
|
|
1519
1523
|
});
|
|
1520
1524
|
Object.defineProperty(exports, "fragment", {
|
|
1521
1525
|
enumerable: true,
|
|
1522
|
-
get: function () { return
|
|
1526
|
+
get: function () { return chunkVP5EOGM5_cjs.fragment; }
|
|
1523
1527
|
});
|
|
1524
1528
|
Object.defineProperty(exports, "h", {
|
|
1525
1529
|
enumerable: true,
|
|
1526
|
-
get: function () { return
|
|
1530
|
+
get: function () { return chunkVP5EOGM5_cjs.h; }
|
|
1527
1531
|
});
|
|
1528
1532
|
Object.defineProperty(exports, "hydrateIsland", {
|
|
1529
1533
|
enumerable: true,
|
|
1530
|
-
get: function () { return
|
|
1534
|
+
get: function () { return chunkVP5EOGM5_cjs.hydrateIsland; }
|
|
1531
1535
|
});
|
|
1532
1536
|
Object.defineProperty(exports, "longestIncreasingSubsequence", {
|
|
1533
1537
|
enumerable: true,
|
|
1534
|
-
get: function () { return
|
|
1538
|
+
get: function () { return chunkVP5EOGM5_cjs.longestIncreasingSubsequence; }
|
|
1535
1539
|
});
|
|
1536
1540
|
Object.defineProperty(exports, "on", {
|
|
1537
1541
|
enumerable: true,
|
|
1538
|
-
get: function () { return
|
|
1542
|
+
get: function () { return chunkVP5EOGM5_cjs.on; }
|
|
1539
1543
|
});
|
|
1540
1544
|
Object.defineProperty(exports, "onCleanup", {
|
|
1541
1545
|
enumerable: true,
|
|
1542
|
-
get: function () { return
|
|
1546
|
+
get: function () { return chunkVP5EOGM5_cjs.onCleanup; }
|
|
1543
1547
|
});
|
|
1544
1548
|
Object.defineProperty(exports, "onError", {
|
|
1545
1549
|
enumerable: true,
|
|
1546
|
-
get: function () { return
|
|
1550
|
+
get: function () { return chunkVP5EOGM5_cjs.onError; }
|
|
1547
1551
|
});
|
|
1548
1552
|
Object.defineProperty(exports, "reconcileList", {
|
|
1549
1553
|
enumerable: true,
|
|
1550
|
-
get: function () { return
|
|
1554
|
+
get: function () { return chunkVP5EOGM5_cjs.reconcileList; }
|
|
1551
1555
|
});
|
|
1552
1556
|
Object.defineProperty(exports, "untrack", {
|
|
1553
1557
|
enumerable: true,
|
|
1554
|
-
get: function () { return
|
|
1558
|
+
get: function () { return chunkVP5EOGM5_cjs.untrack; }
|
|
1555
1559
|
});
|
|
1556
1560
|
Object.defineProperty(exports, "createComputed", {
|
|
1557
1561
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="./jsx.d.ts" />
|
|
1
2
|
import { S as SignalGetter } from './signal-CfLDwMyg.cjs';
|
|
2
3
|
export { c as createSignal } from './signal-CfLDwMyg.cjs';
|
|
3
4
|
|
|
@@ -339,6 +340,16 @@ declare function onError(handler: ErrorHandler): void;
|
|
|
339
340
|
* Supports both HTML and SVG elements with automatic namespace detection.
|
|
340
341
|
* Provides event listener cleanup via AbortController.
|
|
341
342
|
*/
|
|
343
|
+
/**
|
|
344
|
+
* Symbol used as JSX Fragment factory. h(Fragment, null, ...children) returns DocumentFragment.
|
|
345
|
+
*
|
|
346
|
+
* Typed as a callable for TypeScript's JSX checker — at runtime it's a symbol
|
|
347
|
+
* that h() detects via `tag === Fragment`. esbuild transforms `<>...</>` into
|
|
348
|
+
* `h(Fragment, null, ...)` which never actually calls Fragment.
|
|
349
|
+
*/
|
|
350
|
+
declare const Fragment: (props: {
|
|
351
|
+
children?: unknown;
|
|
352
|
+
}) => DocumentFragment;
|
|
342
353
|
/**
|
|
343
354
|
* Remove all event listeners previously attached via `h()` on the given element.
|
|
344
355
|
*
|
|
@@ -369,6 +380,7 @@ declare function cleanup(el: Element): void;
|
|
|
369
380
|
* )
|
|
370
381
|
* ```
|
|
371
382
|
*/
|
|
383
|
+
declare function h(tag: typeof Fragment, props?: null, ...children: unknown[]): DocumentFragment;
|
|
372
384
|
declare function h(tag: string, props?: Record<string, unknown> | null, ...children: unknown[]): HTMLElement;
|
|
373
385
|
/**
|
|
374
386
|
* Create a DocumentFragment from children.
|
|
@@ -1379,4 +1391,4 @@ declare function renderLocal(slotsJson: string): Promise<string>;
|
|
|
1379
1391
|
/** Fragment render (single island) via WASM. */
|
|
1380
1392
|
declare function renderIsland(slotsJson: string, islandId: number): Promise<string>;
|
|
1381
1393
|
|
|
1382
|
-
export { $, $$, $$serverFunction, type Action, type ActionOptions, type IslandHydrateFn, type MutationResponse, type RPCRequest, type RPCResponse, activateIslands, addClass, applyRevalidation, batch, children, cleanup, closest, createAction, createBus, createComputed, createContext, createEffect, createErrorBoundary, createFetch, createHistory, createIndexedDB, createList, createLocalStorage, createMemo, createPortal, createRPCMiddleware, createReducer, createRef, createResource, createRoot, createSSE, createSessionStorage, createShow, createStore, createSuspense, createSwitch, createText, createWebSocket, defineComponent, delegate, disposeComponent, enableAutoRevalidation, fetchJSON, fragment, getRegisteredEndpoints, getServerFunction, h, handleRPC, hydrateIsland, inject, longestIncreasingSubsequence, mount, nextSibling, on, onCleanup, onError, onIntersect, onKey, onMount, onMutation, onResize, onUnmount, parent, persist, prevSibling, provide, reconcileList, registerResource, registerServerFunction, removeClass, renderIsland, renderLocal, setAttr, setHTML, setStyle, setText, siblings, toggleClass, trackDisposer, unprovide, unregisterResource, untrack, withRevalidation };
|
|
1394
|
+
export { $, $$, $$serverFunction, type Action, type ActionOptions, Fragment, type IslandHydrateFn, type MutationResponse, type RPCRequest, type RPCResponse, activateIslands, addClass, applyRevalidation, batch, children, cleanup, closest, createAction, createBus, createComputed, createContext, createEffect, createErrorBoundary, createFetch, createHistory, createIndexedDB, createList, createLocalStorage, createMemo, createPortal, createRPCMiddleware, createReducer, createRef, createResource, createRoot, createSSE, createSessionStorage, createShow, createStore, createSuspense, createSwitch, createText, createWebSocket, defineComponent, delegate, disposeComponent, enableAutoRevalidation, fetchJSON, fragment, getRegisteredEndpoints, getServerFunction, h, handleRPC, hydrateIsland, inject, longestIncreasingSubsequence, mount, nextSibling, on, onCleanup, onError, onIntersect, onKey, onMount, onMutation, onResize, onUnmount, parent, persist, prevSibling, provide, reconcileList, registerResource, registerServerFunction, removeClass, renderIsland, renderLocal, setAttr, setHTML, setStyle, setText, siblings, toggleClass, trackDisposer, unprovide, unregisterResource, untrack, withRevalidation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="./jsx.d.ts" />
|
|
1
2
|
import { S as SignalGetter } from './signal-CfLDwMyg.js';
|
|
2
3
|
export { c as createSignal } from './signal-CfLDwMyg.js';
|
|
3
4
|
|
|
@@ -339,6 +340,16 @@ declare function onError(handler: ErrorHandler): void;
|
|
|
339
340
|
* Supports both HTML and SVG elements with automatic namespace detection.
|
|
340
341
|
* Provides event listener cleanup via AbortController.
|
|
341
342
|
*/
|
|
343
|
+
/**
|
|
344
|
+
* Symbol used as JSX Fragment factory. h(Fragment, null, ...children) returns DocumentFragment.
|
|
345
|
+
*
|
|
346
|
+
* Typed as a callable for TypeScript's JSX checker — at runtime it's a symbol
|
|
347
|
+
* that h() detects via `tag === Fragment`. esbuild transforms `<>...</>` into
|
|
348
|
+
* `h(Fragment, null, ...)` which never actually calls Fragment.
|
|
349
|
+
*/
|
|
350
|
+
declare const Fragment: (props: {
|
|
351
|
+
children?: unknown;
|
|
352
|
+
}) => DocumentFragment;
|
|
342
353
|
/**
|
|
343
354
|
* Remove all event listeners previously attached via `h()` on the given element.
|
|
344
355
|
*
|
|
@@ -369,6 +380,7 @@ declare function cleanup(el: Element): void;
|
|
|
369
380
|
* )
|
|
370
381
|
* ```
|
|
371
382
|
*/
|
|
383
|
+
declare function h(tag: typeof Fragment, props?: null, ...children: unknown[]): DocumentFragment;
|
|
372
384
|
declare function h(tag: string, props?: Record<string, unknown> | null, ...children: unknown[]): HTMLElement;
|
|
373
385
|
/**
|
|
374
386
|
* Create a DocumentFragment from children.
|
|
@@ -1379,4 +1391,4 @@ declare function renderLocal(slotsJson: string): Promise<string>;
|
|
|
1379
1391
|
/** Fragment render (single island) via WASM. */
|
|
1380
1392
|
declare function renderIsland(slotsJson: string, islandId: number): Promise<string>;
|
|
1381
1393
|
|
|
1382
|
-
export { $, $$, $$serverFunction, type Action, type ActionOptions, type IslandHydrateFn, type MutationResponse, type RPCRequest, type RPCResponse, activateIslands, addClass, applyRevalidation, batch, children, cleanup, closest, createAction, createBus, createComputed, createContext, createEffect, createErrorBoundary, createFetch, createHistory, createIndexedDB, createList, createLocalStorage, createMemo, createPortal, createRPCMiddleware, createReducer, createRef, createResource, createRoot, createSSE, createSessionStorage, createShow, createStore, createSuspense, createSwitch, createText, createWebSocket, defineComponent, delegate, disposeComponent, enableAutoRevalidation, fetchJSON, fragment, getRegisteredEndpoints, getServerFunction, h, handleRPC, hydrateIsland, inject, longestIncreasingSubsequence, mount, nextSibling, on, onCleanup, onError, onIntersect, onKey, onMount, onMutation, onResize, onUnmount, parent, persist, prevSibling, provide, reconcileList, registerResource, registerServerFunction, removeClass, renderIsland, renderLocal, setAttr, setHTML, setStyle, setText, siblings, toggleClass, trackDisposer, unprovide, unregisterResource, untrack, withRevalidation };
|
|
1394
|
+
export { $, $$, $$serverFunction, type Action, type ActionOptions, Fragment, type IslandHydrateFn, type MutationResponse, type RPCRequest, type RPCResponse, activateIslands, addClass, applyRevalidation, batch, children, cleanup, closest, createAction, createBus, createComputed, createContext, createEffect, createErrorBoundary, createFetch, createHistory, createIndexedDB, createList, createLocalStorage, createMemo, createPortal, createRPCMiddleware, createReducer, createRef, createResource, createRoot, createSSE, createSessionStorage, createShow, createStore, createSuspense, createSwitch, createText, createWebSocket, defineComponent, delegate, disposeComponent, enableAutoRevalidation, fetchJSON, fragment, getRegisteredEndpoints, getServerFunction, h, handleRPC, hydrateIsland, inject, longestIncreasingSubsequence, mount, nextSibling, on, onCleanup, onError, onIntersect, onKey, onMount, onMutation, onResize, onUnmount, parent, persist, prevSibling, provide, reconcileList, registerResource, registerServerFunction, removeClass, renderIsland, renderLocal, setAttr, setHTML, setStyle, setText, siblings, toggleClass, trackDisposer, unprovide, unregisterResource, untrack, withRevalidation };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { internalEffect, createRoot, hydrateIsland, untrack, createEffect, pushSuspenseContext, popSuspenseContext, batch } from './chunk-
|
|
2
|
-
export { batch, cleanup, createEffect, createList, createMemo, createReducer, createRef, createResource, createRoot, createShow, fragment, h, hydrateIsland, longestIncreasingSubsequence, on, onCleanup, onError, reconcileList, untrack } from './chunk-
|
|
1
|
+
import { internalEffect, createRoot, hydrateIsland, untrack, createEffect, pushSuspenseContext, popSuspenseContext, batch } from './chunk-VKKPX4YU.js';
|
|
2
|
+
export { Fragment, batch, cleanup, createEffect, createList, createMemo, createReducer, createRef, createResource, createRoot, createShow, fragment, h, hydrateIsland, longestIncreasingSubsequence, on, onCleanup, onError, reconcileList, untrack } from './chunk-VKKPX4YU.js';
|
|
3
3
|
import { createSignal, createValueSignal } from './chunk-KX5WRZH7.js';
|
|
4
4
|
export { createComputed, createSignal } from './chunk-KX5WRZH7.js';
|
|
5
5
|
|