@askrjs/askr 0.0.61 → 0.0.62
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/dist/actions/index.d.ts +1 -1
- package/dist/benchmark.js +4 -4
- package/dist/boot/index.d.ts +2 -2
- package/dist/boot/index.js +1 -1
- package/dist/{boot-DmVZR_IA.js → boot-B0mMBddb.js} +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/control/index.d.ts +1 -1
- package/dist/{control-Bf4Wkdvv.d.ts → control-B5xu8v4m.d.ts} +1 -1
- package/dist/{control-D-9LKE3W.d.ts → control-CFIrGbD7.d.ts} +1 -1
- package/dist/foundations/icon/index.d.ts +1 -1
- package/dist/foundations/index.d.ts +2 -2
- package/dist/foundations/state/index.d.ts +1 -1
- package/dist/foundations/structures/index.d.ts +2 -2
- package/dist/{index-BRjBZbDy.d.ts → index-Bce-RQg-.d.ts} +2 -2
- package/dist/{index-XB38_9B8.d.ts → index-CRck4XVe.d.ts} +1 -1
- package/dist/{index-YLt-Qg_P.d.ts → index-DaWuMuIc.d.ts} +2 -2
- package/dist/{index-DdkXZQEM.d.ts → index-DlvpxdSz.d.ts} +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/{jsx-CP0gmYwJ.d.ts → jsx-Dvr2SGRG.d.ts} +5 -0
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/{jsx-runtime-92bV2hSa.d.ts → jsx-runtime-iTU73uwP.d.ts} +2 -2
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/{renderer-DhojfVg4.js → renderer-CVr_nktj.js} +8 -6
- package/dist/router/index.d.ts +3 -3
- package/dist/{router-DGbBBIB-.d.ts → router-lmH-Tmwh.d.ts} +2 -2
- package/dist/ssg/index.d.ts +2 -2
- package/dist/ssg/index.js +1 -1
- package/dist/ssr/index.d.ts +3 -3
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-CbU-1UHm.js → ssr-5HlhmLhU.js} +2 -2
- package/dist/testing/index.d.ts +1 -1
- package/dist/{types-BujHn5pL.d.ts → types-4k3RFEaC.d.ts} +1 -1
- package/dist/{verify-hydration-BaWDqe5H.js → verify-hydration-13f0FOPd.js} +1 -1
- package/package.json +1 -1
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as action, i as ActionValidationError, n as ActionForm, o as defineAction, r as ActionStatus, t as ActionDescriptor } from "../index-
|
|
1
|
+
import { a as action, i as ActionValidationError, n as ActionForm, o as defineAction, r as ActionStatus, t as ActionDescriptor } from "../index-DaWuMuIc.js";
|
|
2
2
|
export { ActionDescriptor, ActionForm, ActionStatus, ActionValidationError, action, defineAction };
|
package/dist/benchmark.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as flushRuntimeScheduler } from "./access-ePqdQqkV.js";
|
|
2
|
-
import { t as installRendererBridge } from "./renderer-
|
|
2
|
+
import { t as installRendererBridge } from "./renderer-CVr_nktj.js";
|
|
3
3
|
import { t as state } from "./state-Cc5HumQ0.js";
|
|
4
4
|
import { t as selector } from "./selector-pApF_lGd.js";
|
|
5
5
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
6
6
|
import { i as For } from "./control-KVP6LMEQ.js";
|
|
7
|
-
import { t as createIsland } from "./boot-
|
|
7
|
+
import { t as createIsland } from "./boot-B0mMBddb.js";
|
|
8
8
|
//#region src/bench/components/benchmark-row.tsx
|
|
9
9
|
function BenchmarkRow({ item, isSelected, onSelect, onRemove }) {
|
|
10
10
|
return /* @__PURE__ */ jsxs("tr", {
|
|
@@ -63,8 +63,8 @@ function BenchmarkTable({ rows, isSelected, onSelect, onRemove }) {
|
|
|
63
63
|
installRendererBridge();
|
|
64
64
|
const benchmarkMetadata = {
|
|
65
65
|
packageName: "@askrjs/askr",
|
|
66
|
-
packageVersion: "0.0.
|
|
67
|
-
buildLabel: "0.0.
|
|
66
|
+
packageVersion: "0.0.62",
|
|
67
|
+
buildLabel: "0.0.62-local"
|
|
68
68
|
};
|
|
69
69
|
function getBenchmarkMetadata() {
|
|
70
70
|
return { ...benchmarkMetadata };
|
package/dist/boot/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as ComponentFunction } from "../control-
|
|
1
|
+
import { s as ComponentFunction } from "../control-CFIrGbD7.js";
|
|
2
2
|
import { v as DataRuntime } from "../index-Bki2rqcr.js";
|
|
3
|
-
import { P as RouteRegistry, m as RouteAuthOptions, p as Route, x as RouteManifest } from "../router-
|
|
3
|
+
import { P as RouteRegistry, m as RouteAuthOptions, p as Route, x as RouteManifest } from "../router-lmH-Tmwh.js";
|
|
4
4
|
import { d as ScrollRestorationOptions } from "../navigate-BVDCzOuB.js";
|
|
5
5
|
|
|
6
6
|
//#region src/boot/types.d.ts
|
package/dist/boot/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-
|
|
1
|
+
import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-B0mMBddb.js";
|
|
2
2
|
export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
|
|
@@ -2,7 +2,7 @@ import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger,
|
|
|
2
2
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
3
3
|
import { n as createComponentInstance, r as executeComponent } from "./component-internal-CbALfPGD.js";
|
|
4
4
|
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-DEMPihoZ.js";
|
|
5
|
-
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-
|
|
5
|
+
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-CVr_nktj.js";
|
|
6
6
|
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-B6KovDZZ.js";
|
|
7
7
|
import { C as assertExecutionModel, S as route, a as resolveRouteMeta, c as registerAppInstance, d as clearRoutes, g as createAppRenderRuntime, h as setServerLocation, i as reconcileRouteMeta, l as unregisterAppInstance, s as configureScrollRestoration, t as initializeNavigation, u as _applyManifest } from "./navigate-DLi79IZr.js";
|
|
8
8
|
import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
|
|
@@ -594,7 +594,7 @@ async function hydrateSPA(config) {
|
|
|
594
594
|
handler: r.handler,
|
|
595
595
|
namespace: r.options.namespace
|
|
596
596
|
})) : routeTable;
|
|
597
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
597
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-13f0FOPd.js");
|
|
598
598
|
if (!verifyHydrationSyncForUrl({
|
|
599
599
|
root: rootElement,
|
|
600
600
|
url: currentUrl,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as VNode } from "../control-
|
|
2
|
-
import { r as JSXElement, s as Props } from "../jsx-
|
|
1
|
+
import { l as VNode } from "../control-CFIrGbD7.js";
|
|
2
|
+
import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
|
|
3
3
|
|
|
4
4
|
//#region src/common/error-boundary.d.ts
|
|
5
5
|
type ErrorBoundaryContent = VNode | readonly VNode[];
|
package/dist/control/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "../index-
|
|
1
|
+
import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "../index-DlvpxdSz.js";
|
|
2
2
|
export { Case, type CaseProps, For, type ForProps, Match, type MatchProps, Show, type ShowProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as JSXElement } from "../jsx-
|
|
2
|
-
import { _ as definePortal, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, l as PresenceProps, m as DefaultPortal, p as layout, u as Slot } from "../index-
|
|
1
|
+
import { r as JSXElement } from "../jsx-Dvr2SGRG.js";
|
|
2
|
+
import { _ as definePortal, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, l as PresenceProps, m as DefaultPortal, p as layout, u as Slot } from "../index-Bce-RQg-.js";
|
|
3
3
|
export { DefaultPortal, type JSXElement, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, definePortal, layout };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as JSXElement } from "../../jsx-
|
|
2
|
-
import { _ as definePortal, a as Collection, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, i as createLayer, l as PresenceProps, m as DefaultPortal, n as LayerManager, o as CollectionItem, p as layout, r as LayerOptions, s as createCollection, t as Layer, u as Slot } from "../../index-
|
|
1
|
+
import { r as JSXElement } from "../../jsx-Dvr2SGRG.js";
|
|
2
|
+
import { _ as definePortal, a as Collection, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, i as createLayer, l as PresenceProps, m as DefaultPortal, n as LayerManager, o as CollectionItem, p as layout, r as LayerOptions, s as createCollection, t as Layer, u as Slot } from "../../index-Bce-RQg-.js";
|
|
3
3
|
export { type Collection, type CollectionItem, DefaultPortal, type JSXElement, type Layer, type LayerManager, type LayerOptions, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, createCollection, createLayer, definePortal, layout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as RenderableChild } from "./control-
|
|
2
|
-
import { r as JSXElement } from "./jsx-
|
|
1
|
+
import { c as RenderableChild } from "./control-CFIrGbD7.js";
|
|
2
|
+
import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
|
|
3
3
|
//#region src/runtime/portal.d.ts
|
|
4
4
|
interface Portal<T extends RenderableChild = RenderableChild> {
|
|
5
5
|
(): unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReadableSource, r as ComponentInstance } from "./control-
|
|
1
|
+
import { n as ReadableSource, r as ComponentInstance } from "./control-CFIrGbD7.js";
|
|
2
2
|
import { t as Scheduler } from "./scheduler-CmLO4Dfm.js";
|
|
3
3
|
//#region src/runtime/runtime.d.ts
|
|
4
4
|
interface RuntimeKeyedReorderDecision {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as RenderableChild, g as StateTuple } from "./control-
|
|
2
|
-
import { r as JSXElement } from "./jsx-
|
|
1
|
+
import { c as RenderableChild, g as StateTuple } from "./control-CFIrGbD7.js";
|
|
2
|
+
import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
|
|
3
3
|
import { ObjectSchema } from "@askrjs/schema";
|
|
4
4
|
|
|
5
5
|
//#region src/actions/index.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-
|
|
2
|
-
import { r as JSXElement } from "./jsx-
|
|
1
|
+
import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-CFIrGbD7.js";
|
|
2
|
+
import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
|
|
3
3
|
|
|
4
4
|
//#region src/control/shared.d.ts
|
|
5
5
|
type BoundaryChild = RenderableChild;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as state, a as defineScope, g as StateTuple, h as StateSetter, i as Scope, m as State, o as readScope } from "./control-
|
|
2
|
-
import { s as Props, t as Fragment } from "./jsx-
|
|
1
|
+
import { _ as state, a as defineScope, g as StateTuple, h as StateSetter, i as Scope, m as State, o as readScope } from "./control-CFIrGbD7.js";
|
|
2
|
+
import { s as Props, t as Fragment } from "./jsx-Dvr2SGRG.js";
|
|
3
3
|
import { t as getSignal } from "./component-scope-CvPba6O6.js";
|
|
4
|
-
import { a as AskrRuntime, c as RuntimeRendererHost, i as derive, l as createRuntime, n as selector, o as AskrRuntimeOptions, r as Derived, s as RuntimeKeyedReorderDecision, t as Selector, u as getDefaultRuntime } from "./index-
|
|
5
|
-
import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "./index-
|
|
6
|
-
import { i as jsxs, n as jsx } from "./jsx-runtime-
|
|
4
|
+
import { a as AskrRuntime, c as RuntimeRendererHost, i as derive, l as createRuntime, n as selector, o as AskrRuntimeOptions, r as Derived, s as RuntimeKeyedReorderDecision, t as Selector, u as getDefaultRuntime } from "./index-CRck4XVe.js";
|
|
5
|
+
import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "./index-DlvpxdSz.js";
|
|
6
|
+
import { i as jsxs, n as jsx } from "./jsx-runtime-iTU73uwP.js";
|
|
7
7
|
import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, g as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-Bki2rqcr.js";
|
|
8
8
|
export { AskrRuntime, type AskrRuntimeOptions, Case, type CaseProps, type DataRuntime, type Derived, For, type ForProps, Fragment, Match, type MatchProps, type Props, type QueryDefinition, type QueryPrefetchContext, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, createQuery, createRuntime, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, selector, serveQuery, state };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { n as Fragment } from "./jsx-CUpRxrLH.js";
|
|
|
4
4
|
import { l as defineScope, m as readScope } from "./component-internal-CbALfPGD.js";
|
|
5
5
|
import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
6
|
import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
7
|
-
import { t as installRendererBridge } from "./renderer-
|
|
7
|
+
import { t as installRendererBridge } from "./renderer-CVr_nktj.js";
|
|
8
8
|
import { t as state } from "./state-Cc5HumQ0.js";
|
|
9
9
|
import { t as selector } from "./selector-pApF_lGd.js";
|
|
10
10
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
@@ -73,6 +73,11 @@ interface IntrinsicEventProps {
|
|
|
73
73
|
interface IntrinsicProps extends IntrinsicEventProps {
|
|
74
74
|
key?: string | number | symbol;
|
|
75
75
|
children?: unknown;
|
|
76
|
+
/**
|
|
77
|
+
* Leaves descendant DOM ownership to an imperative widget after mount.
|
|
78
|
+
* Askr will continue updating the host element's props, events, and ref.
|
|
79
|
+
*/
|
|
80
|
+
imperativeChildren?: boolean;
|
|
76
81
|
class?: ReactiveProp<IntrinsicClassValue>;
|
|
77
82
|
className?: ReactiveProp<IntrinsicClassValue>;
|
|
78
83
|
style?: ReactiveProp<IntrinsicStyleValue>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./jsx-
|
|
2
|
-
import { t as EagerControlPrimitive } from "./control-
|
|
1
|
+
import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./jsx-Dvr2SGRG.js";
|
|
2
|
+
import { t as EagerControlPrimitive } from "./control-B5xu8v4m.js";
|
|
3
3
|
//#region src/jsx/jsx-dev-runtime.d.ts
|
|
4
4
|
declare namespace JSX {
|
|
5
5
|
interface Element extends JSXElement {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-
|
|
2
|
-
import { t as EagerControlPrimitive } from "./control-
|
|
1
|
+
import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-Dvr2SGRG.js";
|
|
2
|
+
import { t as EagerControlPrimitive } from "./control-B5xu8v4m.js";
|
|
3
3
|
//#region src/jsx/jsx-runtime.d.ts
|
|
4
4
|
declare namespace JSX {
|
|
5
5
|
interface Element extends JSXElement {
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./jsx-
|
|
2
|
-
import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-
|
|
1
|
+
import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./jsx-Dvr2SGRG.js";
|
|
2
|
+
import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-iTU73uwP.js";
|
|
3
3
|
export { Fragment, JSX, type JSXComponent, type JSXElement, type JSXElementType, jsx, jsxDEV, jsxs };
|
|
@@ -155,7 +155,7 @@ function createMutableWrappedHandler(handler, flushAfter = false) {
|
|
|
155
155
|
}
|
|
156
156
|
/** Props that should be skipped during attribute processing */
|
|
157
157
|
function isSkippedProp(key) {
|
|
158
|
-
return key === "children" || key === "key" || key === "ref";
|
|
158
|
+
return key === "children" || key === "imperativeChildren" || key === "key" || key === "ref";
|
|
159
159
|
}
|
|
160
160
|
/** Check if prop should be ignored for prop-change detection */
|
|
161
161
|
function isIgnoredForPropChanges(key) {
|
|
@@ -3704,12 +3704,12 @@ function processFragmentChildren(target, childArray, cleanupRangeNode) {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
function applyPropsToElement(el, props) {
|
|
3706
3706
|
for (const [key, value] of Object.entries(props)) {
|
|
3707
|
-
if (key === "children" || key === "key") continue;
|
|
3708
|
-
if (value === void 0 || value === null || value === false) continue;
|
|
3709
3707
|
if (key === "ref") {
|
|
3710
3708
|
updateElementRef(el, value);
|
|
3711
3709
|
continue;
|
|
3712
3710
|
}
|
|
3711
|
+
if (isSkippedProp(key)) continue;
|
|
3712
|
+
if (value === void 0 || value === null || value === false) continue;
|
|
3713
3713
|
const eventProp = parseEventProp(key);
|
|
3714
3714
|
if (eventProp) {
|
|
3715
3715
|
const { eventName, capture } = eventProp;
|
|
@@ -6061,6 +6061,7 @@ function applyElementUpdateFromVnode(el, vnode, updateChildren, forceChildrenUpd
|
|
|
6061
6061
|
if (!_isDOMElement(vnode)) return;
|
|
6062
6062
|
const props = vnode.props || {};
|
|
6063
6063
|
const domVNode = vnode;
|
|
6064
|
+
const shouldUpdateChildren = updateChildren && props.imperativeChildren !== true;
|
|
6064
6065
|
if (isHydrationSkipped(el)) {
|
|
6065
6066
|
rememberDeferredHydrationVNode(el, vnode, getCurrentInstance(), getCurrentInstance()?.ownerFrame ?? null);
|
|
6066
6067
|
clearHydrationDeferredSubtree(el);
|
|
@@ -6070,7 +6071,7 @@ function applyElementUpdateFromVnode(el, vnode, updateChildren, forceChildrenUpd
|
|
|
6070
6071
|
updateElementRef(el, props.ref);
|
|
6071
6072
|
if (!hasTrackedElementPropBindings(el)) {
|
|
6072
6073
|
if (!forceChildrenUpdate && hasMatchingStaticProps(el, props, vnode.type)) {
|
|
6073
|
-
if (
|
|
6074
|
+
if (shouldUpdateChildren) {
|
|
6074
6075
|
const children = props.children ?? vnode.children;
|
|
6075
6076
|
if (!forceChildrenUpdate && canReuseStaticSubtree(el, domVNode)) return;
|
|
6076
6077
|
updateElementChildren$1(el, children, forceChildrenUpdate);
|
|
@@ -6078,9 +6079,10 @@ function applyElementUpdateFromVnode(el, vnode, updateChildren, forceChildrenUpd
|
|
|
6078
6079
|
return;
|
|
6079
6080
|
}
|
|
6080
6081
|
}
|
|
6081
|
-
const
|
|
6082
|
+
const nextChildren = props.children ?? domVNode.children;
|
|
6083
|
+
const usesReactiveChildren = shouldUpdateChildren ? syncReactiveScalarChild(el, nextChildren, rendererReactiveChildDOMHost) : false;
|
|
6082
6084
|
syncElementPropBindings(el, domVNode, props, usesReactiveChildren);
|
|
6083
|
-
if (
|
|
6085
|
+
if (shouldUpdateChildren) {
|
|
6084
6086
|
const children = props.children ?? vnode.children;
|
|
6085
6087
|
if (usesReactiveChildren) return;
|
|
6086
6088
|
updateElementChildren$1(el, children, forceChildrenUpdate);
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as RenderableChild } from "../control-
|
|
2
|
-
import { r as JSXElement, s as Props } from "../jsx-
|
|
3
|
-
import { A as RouteQuery, B as RouteSnapshot, C as RouteMeta, D as RouteParams, E as RouteOptions, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRef, N as RouteRefSearch, O as RoutePathParams, P as RouteRegistry, R as RouteSearch, S as RouteMatch, T as RouteMode, _ as RouteContext, a as AccessRedirectDecision, b as RouteHandler, c as LayoutScopeRecord, d as ParsedSegment, f as RegisterRoutesOptions, g as RouteComponent, h as RouteAuthResolver, i as AccessDenyStatus, j as RouteRecord, k as RoutePolicy, l as PageHelperOptions, m as RouteAuthOptions, n as AccessDecision, o as AccessRedirectStatus, p as Route, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDefinition, w as RouteMetaSource, x as RouteManifest, y as RouteDestination, z as RouteSearchValue } from "../router-
|
|
1
|
+
import { c as RenderableChild } from "../control-CFIrGbD7.js";
|
|
2
|
+
import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
|
|
3
|
+
import { A as RouteQuery, B as RouteSnapshot, C as RouteMeta, D as RouteParams, E as RouteOptions, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRef, N as RouteRefSearch, O as RoutePathParams, P as RouteRegistry, R as RouteSearch, S as RouteMatch, T as RouteMode, _ as RouteContext, a as AccessRedirectDecision, b as RouteHandler, c as LayoutScopeRecord, d as ParsedSegment, f as RegisterRoutesOptions, g as RouteComponent, h as RouteAuthResolver, i as AccessDenyStatus, j as RouteRecord, k as RoutePolicy, l as PageHelperOptions, m as RouteAuthOptions, n as AccessDecision, o as AccessRedirectStatus, p as Route, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDefinition, w as RouteMetaSource, x as RouteManifest, y as RouteDestination, z as RouteSearchValue } from "../router-lmH-Tmwh.js";
|
|
4
4
|
import { a as RouteQueryUpdates, c as NavigateOptions, d as ScrollRestorationOptions, i as RouteQueryUpdater, l as HistoryScrollBehavior, n as RouteQueryParamInput, o as UpdateRouteQueryOptions, r as RouteQueryParamValue, s as updateRouteQuery, t as navigate, u as NavigationScrollBehavior } from "../navigate-BVDCzOuB.js";
|
|
5
5
|
import { AuthContext, AuthContext as AuthContext$1, AuthRequirement, AuthRequirement as AuthRequirement$1 } from "@askrjs/auth";
|
|
6
6
|
import { ObjectSchema } from "@askrjs/schema";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as RenderableChild } from "./control-
|
|
1
|
+
import { c as RenderableChild } from "./control-CFIrGbD7.js";
|
|
2
2
|
import { D as QueryPrefetchContext, u as CoreTelemetry } from "./index-Bki2rqcr.js";
|
|
3
|
-
import { t as ActionDescriptor } from "./index-
|
|
3
|
+
import { t as ActionDescriptor } from "./index-DaWuMuIc.js";
|
|
4
4
|
import { AuthContext, AuthRequirement } from "@askrjs/auth";
|
|
5
5
|
import { InferSchema, ObjectSchema } from "@askrjs/schema";
|
|
6
6
|
|
package/dist/ssg/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, s as ComponentFunction, u as DocumentRenderArgs } from "../control-
|
|
2
|
-
import { E as RouteOptions, O as RoutePathParams, P as RouteRegistry, b as RouteHandler, k as RoutePolicy } from "../router-
|
|
1
|
+
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, s as ComponentFunction, u as DocumentRenderArgs } from "../control-CFIrGbD7.js";
|
|
2
|
+
import { E as RouteOptions, O as RoutePathParams, P as RouteRegistry, b as RouteHandler, k as RoutePolicy } from "../router-lmH-Tmwh.js";
|
|
3
3
|
import { AuthRequirement } from "@askrjs/auth";
|
|
4
4
|
//#region src/ssg/types.d.ts
|
|
5
5
|
type SSGMode = 'full' | 'incremental';
|
package/dist/ssg/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../access-ePqdQqkV.js";
|
|
2
2
|
import { a as resolveDeferredValues, b as getRenderHandler, c as bindResolvedRouteData } from "../deferred-BeNnjR4r.js";
|
|
3
3
|
import { n as renderDocument } from "../ssr-CbQO5xd3.js";
|
|
4
|
-
import { n as renderToString } from "../ssr-
|
|
4
|
+
import { n as renderToString } from "../ssr-5HlhmLhU.js";
|
|
5
5
|
import * as fs from "node:fs/promises";
|
|
6
6
|
import * as pathModule from "node:path";
|
|
7
7
|
import * as os from "node:os";
|
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-
|
|
2
|
-
import { r as JSXElement, s as Props } from "../jsx-
|
|
1
|
+
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-CFIrGbD7.js";
|
|
2
|
+
import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
|
|
3
3
|
import { D as QueryPrefetchContext, n as ServerQueryRegistry, u as CoreTelemetry, v as DataRuntime } from "../index-Bki2rqcr.js";
|
|
4
|
-
import { L as RouteRequestResult, P as RouteRegistry, a as AccessRedirectDecision, b as RouteHandler, j as RouteRecord, m as RouteAuthOptions, p as Route, r as AccessDenyDecision, x as RouteManifest } from "../router-
|
|
4
|
+
import { L as RouteRequestResult, P as RouteRegistry, a as AccessRedirectDecision, b as RouteHandler, j as RouteRecord, m as RouteAuthOptions, p as Route, r as AccessDenyDecision, x as RouteManifest } from "../router-lmH-Tmwh.js";
|
|
5
5
|
import { AuthContext } from "@askrjs/auth";
|
|
6
6
|
|
|
7
7
|
//#region src/common/page-render-envelope.d.ts
|
package/dist/ssr/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { u as SSRDataMissingError } from "../render-context-Clw3rFiO.js";
|
|
2
|
-
import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-5HlhmLhU.js";
|
|
3
3
|
export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
|
|
@@ -821,7 +821,7 @@ function renderAttrsDirect(props, sink) {
|
|
|
821
821
|
const propsObj = props;
|
|
822
822
|
for (const key in propsObj) {
|
|
823
823
|
const value = propsObj[key];
|
|
824
|
-
if (key === "children" || key === "key" || key === "ref" || key === "dangerouslySetInnerHTML") continue;
|
|
824
|
+
if (key === "children" || key === "imperativeChildren" || key === "key" || key === "ref" || key === "dangerouslySetInnerHTML") continue;
|
|
825
825
|
if (isEventHandler(key)) continue;
|
|
826
826
|
if (key.charCodeAt(0) === 95) continue;
|
|
827
827
|
const attrName = getPublicAttributeName(key);
|
|
@@ -855,7 +855,7 @@ function renderAttrs(props, opts) {
|
|
|
855
855
|
const propsObj = props;
|
|
856
856
|
for (const key in propsObj) {
|
|
857
857
|
const value = propsObj[key];
|
|
858
|
-
if (key === "children") continue;
|
|
858
|
+
if (key === "children" || key === "imperativeChildren") continue;
|
|
859
859
|
if (key === "key" || key === "ref") continue;
|
|
860
860
|
if (key === "dangerouslySetInnerHTML") {
|
|
861
861
|
if (value && typeof value === "object" && "__html" in value) dangerousHtml = String(value.__html);
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Query, k as QueryStaleReason } from "../index-Bki2rqcr.js";
|
|
2
|
-
import { S as RouteMatch, p as Route, x as RouteManifest } from "../router-
|
|
2
|
+
import { S as RouteMatch, p as Route, x as RouteManifest } from "../router-lmH-Tmwh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/testing/index.d.ts
|
|
5
5
|
type MockRefresh = () => void | Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-
|
|
1
|
+
import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-Dvr2SGRG.js";
|
|
2
2
|
|
|
3
3
|
//#region src/jsx/types.d.ts
|
|
4
4
|
declare global {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
2
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync } from "./ssr-5HlhmLhU.js";
|
|
3
3
|
//#region src/ssr/verify-hydration.ts
|
|
4
4
|
function normalizeHydrationHtml(html) {
|
|
5
5
|
const template = document.createElement("template");
|