eclipsa 0.1.10 → 0.1.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/{action-DCc4fBhy.mjs → action-BcEktMN2.mjs} +26 -14
- package/action-BcEktMN2.mjs.map +1 -0
- package/{client--uq9YZzN.mjs → client-DI_VsKvi.mjs} +3 -3
- package/{client--uq9YZzN.mjs.map → client-DI_VsKvi.mjs.map} +1 -1
- package/core/client/mod.mjs +3 -3
- package/core/dev-client/mod.mjs +3 -3
- package/core/internal.d.mts +1 -1
- package/core/internal.mjs +1 -1
- package/core/prod-client/mod.mjs +3 -3
- package/{internal-1QlldZaD.d.mts → internal-L0hnuNCn.d.mts} +2 -1
- package/jsx/mod.mjs +1 -1
- package/mod.d.mts +2 -2
- package/mod.mjs +3 -3
- package/package.json +2 -2
- package/{signal-DoW9q--8.mjs → signal-B1aQQyxh.mjs} +2 -2
- package/{signal-DoW9q--8.mjs.map → signal-B1aQQyxh.mjs.map} +1 -1
- package/{ssr-lXZqUHZs.mjs → ssr-Bqev931T.mjs} +4 -4
- package/{ssr-lXZqUHZs.mjs.map → ssr-Bqev931T.mjs.map} +1 -1
- package/{ssr-wXShLrdB.d.mts → ssr-OV5GBPzK.d.mts} +2 -2
- package/vite/build/runtime.d.mts +2 -2
- package/vite/build/runtime.mjs +2 -2
- package/vite/mod.mjs +6 -3
- package/vite/mod.mjs.map +1 -1
- package/web-utils/mod.mjs +2 -2
- package/action-DCc4fBhy.mjs.map +0 -1
|
@@ -2780,6 +2780,10 @@ const pushContainer = (container, fn) => {
|
|
|
2780
2780
|
}
|
|
2781
2781
|
};
|
|
2782
2782
|
const withRuntimeContainer = pushContainer;
|
|
2783
|
+
const runReactiveEffectInContainer = (effect, fn) => {
|
|
2784
|
+
if (!effect.container) return fn();
|
|
2785
|
+
return pushContainer(effect.container, fn);
|
|
2786
|
+
};
|
|
2783
2787
|
const withRuntimeContextValue = (token, value, fn) => {
|
|
2784
2788
|
const stack = getContextValueStack();
|
|
2785
2789
|
stack.push({
|
|
@@ -2935,6 +2939,7 @@ const getOrCreateWatchState = (container, id, componentId) => {
|
|
|
2935
2939
|
return existing;
|
|
2936
2940
|
}
|
|
2937
2941
|
const effect = {
|
|
2942
|
+
container,
|
|
2938
2943
|
fn() {},
|
|
2939
2944
|
signals: /* @__PURE__ */ new Set()
|
|
2940
2945
|
};
|
|
@@ -6346,22 +6351,26 @@ const notFound = () => {
|
|
|
6346
6351
|
};
|
|
6347
6352
|
const isRouteNotFoundError = (error) => !!error && typeof error === "object" && (error.__eclipsa_not_found__ === true || error[ROUTE_NOT_FOUND_KEY] === true);
|
|
6348
6353
|
const createEffect = (fn, options) => {
|
|
6354
|
+
const container = getCurrentContainer();
|
|
6349
6355
|
const frame = getCurrentFrame();
|
|
6350
6356
|
const effect = {
|
|
6357
|
+
container,
|
|
6351
6358
|
fn() {
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
+
runReactiveEffectInContainer(effect, () => {
|
|
6360
|
+
const dependencies = options?.dependencies;
|
|
6361
|
+
if (!dependencies) {
|
|
6362
|
+
collectTrackedDependencies(effect, fn);
|
|
6363
|
+
return;
|
|
6364
|
+
}
|
|
6365
|
+
collectTrackedDependencies(effect, () => {
|
|
6366
|
+
trackWatchDependencies(dependencies, options?.errorLabel);
|
|
6367
|
+
});
|
|
6368
|
+
if (options?.untracked) {
|
|
6369
|
+
runWithoutDependencyTracking(fn);
|
|
6370
|
+
return;
|
|
6371
|
+
}
|
|
6372
|
+
fn();
|
|
6359
6373
|
});
|
|
6360
|
-
if (options?.untracked) {
|
|
6361
|
-
runWithoutDependencyTracking(fn);
|
|
6362
|
-
return;
|
|
6363
|
-
}
|
|
6364
|
-
fn();
|
|
6365
6374
|
},
|
|
6366
6375
|
signals: /* @__PURE__ */ new Set()
|
|
6367
6376
|
};
|
|
@@ -6399,8 +6408,11 @@ const createWatch = (fn, dependencies) => {
|
|
|
6399
6408
|
if (!container || !frame || frame.component.id === "$root" || !watchMeta) {
|
|
6400
6409
|
const cleanupSlot = createCleanupSlot();
|
|
6401
6410
|
const effect = {
|
|
6411
|
+
container,
|
|
6402
6412
|
fn() {
|
|
6403
|
-
|
|
6413
|
+
runReactiveEffectInContainer(effect, () => {
|
|
6414
|
+
createLocalWatchRunner(effect, cleanupSlot, fn, dependencies)();
|
|
6415
|
+
});
|
|
6404
6416
|
},
|
|
6405
6417
|
signals: /* @__PURE__ */ new Set()
|
|
6406
6418
|
};
|
|
@@ -7036,4 +7048,4 @@ const __eclipsaAction = (id, middlewares, handler) => {
|
|
|
7036
7048
|
//#endregion
|
|
7037
7049
|
export { shouldReconnectDetachedInsertMarkers as $, deserializeValue as $n, __eclipsaLoader as $t, getRuntimeComponentId as A, createPendingSignalError as An, getActionHookMeta as At, refreshRegisteredRouteContainers as B, createRequestFetch as Bn, getRegisteredLoaderHook as Bt, createOnCleanup as C, createContext as Cn, RESUME_FINAL_STATE_ELEMENT_ID as Ct, createStandaloneRuntimeSignal as D, materializeRuntimeContextProvider as Dn, __eclipsaLazy as Dt, createResumeContainer as E, materializeRuntimeContext as En, __eclipsaEvent as Et, notFound as F, applyActionCsrfCookie as Fn, getLoaderHandleMeta as Ft, renderSSRAttr as G, registerClientHooks as Gn, registerLoaderHook as Gt, registerRuntimeScopedStyle as H, getClientHooks as Hn, getSignalMeta as Ht, preserveReusableContentInRoots as I, ensureActionCsrfToken as In, getLoaderHookMeta as It, renderString as J, runHandleError as Jn, setExternalComponentMeta as Jt, renderSSRMap as K, resetClientHooks as Kn, setActionHandleMeta as Kt, primeLocationState as L, readActionCsrfTokenFromDocument as Ln, getNavigateMeta as Lt, getRuntimeSignalId as M, isSuspenseType as Mn, getEventMeta as Mt, getStreamingResumeBootstrapScriptContent as N, ACTION_CSRF_FIELD as Nn, getExternalComponentMeta as Nt, createWatch as O, useContext as On, __eclipsaWatch as Ot, installResumeListeners as P, ACTION_CSRF_INPUT_ATTR as Pn, getLazyMeta as Pt, restoreSignalRefs as Q, withServerRequestContext as Qn, setSignalMeta as Qt, primeRouteModules as R, APP_HOOKS_ELEMENT_ID as Rn, getRegisteredActionHook as Rt, createEffect as S, resolveRouteMetadata as Sn, ACTION_FORM_ATTR$1 as St, createOnVisible as T, getRuntimeContextReference as Tn, __eclipsaComponent as Tt, renderClientInsertable as U, getCurrentServerRequestContext as Un, getWatchMeta as Ut, registerResumeContainer as V, deserializePublicValue as Vn, getRegisteredLoaderHookIds as Vt, renderClientInsertableForOwner as W, markPublicError as Wn, registerActionHook as Wt, restoreResumedExternalComponents as X, toPublicError as Xn, setLoaderHookMeta as Xt, restoreRegisteredRpcHandles as Y, serializePublicValue as Yn, setLoaderHandleMeta as Yt, restoreResumedLocalSignalEffects as Z, transformCurrentPublicError as Zn, setNavigateMeta as Zt, beginSSRContainer as _, ROUTE_REPLACE_ATTR as _n, getRememberedInsertMarkerNodeCount as _t, action as a, loader_exports as an, IS_BROWSER as ar, useRuntimeLocation as at, collectPendingSuspenseBoundaryIds as b, composeRouteMetadata as bn, rememberManagedAttributesForNodes as bt, getActionFormSubmissionId as c, registerLoader as cn, noSerialize as cr, useRuntimeRouteParams as ct, primeActionState as d, ROUTE_DATA_REQUEST_HEADER as dn, writeAsyncSignalSnapshot as dt, consumePendingSsrLoaderIds as en, escapeInlineScriptText as er, syncRuntimeRefMarker as et, registerAction as f, ROUTE_LINK_ATTR as fn, INSERT_MARKER_PREFIX as ft, beginAsyncSSRContainer as g, ROUTE_PREFLIGHT_REQUEST_HEADER as gn, parseInsertMarker as gt, assignRuntimeRef as h, ROUTE_PREFLIGHT_ENDPOINT as hn, parseComponentBoundaryMarker as ht, __eclipsaAction as i, loader as in, serializeValue as ir, tryPatchNodeSequenceInPlace as it, getRuntimeContainer as j, isPendingSignalError as jn, getComponentMeta as jt, getResumePayloadScriptContent as k, Suspense as kn, getActionHandleMeta as kt, getNormalizedActionInput as l, resolvePendingLoaders as ln, useRuntimeSignal as lt, applyResumeHmrUpdateToRegisteredContainers as m, ROUTE_PREFETCH_ATTR as mn, createInsertMarker as mt, ACTION_FORM_ATTR as n, hasLoader as nn, parseSerializedJSON as nr, toResumePayloadSubset as nt, executeAction as o, markPendingSsrLoader as on, IS_SSR as or, useRuntimeNavigate as ot, validator as p, ROUTE_MANIFEST_ELEMENT_ID as pn, createComponentBoundaryHtmlComment as pt, renderSSRValue as q, resolveReroute as qn, setActionHookMeta as qt, ACTION_FORM_FIELD as r, isPendingSsrLoaderError as rn, serializeJSONScriptContent as rr, tryPatchElementShellInPlace as rt, executeActionSubmission as s, primeLoaderState as sn, isNoSerialize as sr, useRuntimeRouteError as st, ACTION_CONTENT_TYPE as t, executeLoader as tn, escapeJSONScriptText as tr, toResumePayload as tt, hasAction as u, ROUTE_DATA_ENDPOINT as un, withRuntimeContainer as ut, bindRuntimeEvent as v, ROUTE_RPC_URL_HEADER as vn, rememberInsertMarkerRange as vt, createOnMount as w, getContextProviderMeta as wn, RESUME_STATE_ELEMENT_ID as wt, createDetachedClientInsertOwner as x, renderRouteMetadataHead as xn, syncManagedAttributeSnapshot as xt, captureClientInsertOwner as y, ROUTE_METADATA_HEAD_ATTR as yn, rememberManagedAttributesForNode as yt, readAsyncSignalSnapshot as z, attachRequestFetch as zn, getRegisteredActionHookIds as zt };
|
|
7038
7050
|
|
|
7039
|
-
//# sourceMappingURL=action-
|
|
7051
|
+
//# sourceMappingURL=action-BcEktMN2.mjs.map
|