@askrjs/askr 0.2.3 → 0.2.4
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/{access-Rr7CMa06.js → access-BucjYZcX.js} +4 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +2 -2
- package/dist/{activity-CAJ5eho-.d.ts → activity-DooIuxQO.d.ts} +2 -2
- package/dist/{activity-ZxJXI9hF.js → activity-FirwPXA_.js} +14 -2
- package/dist/benchmark.d.ts +1 -1
- package/dist/benchmark.js +8 -8
- package/dist/boot/index.d.ts +4 -2
- package/dist/boot/index.js +1 -1
- package/dist/{boot-D4GaLA0d.js → boot-tWyF6121.js} +13 -12
- package/dist/{cleanup-DsrbV-rr.js → cleanup-TXSsApEl.js} +4 -4
- package/dist/{component-cleanup-DjpwO9WX.js → component-cleanup-jdbgjkT1.js} +2 -2
- package/dist/{component-internal-Dl02WQKS.js → component-internal-C4hKKQBF.js} +5 -5
- package/dist/components/index.d.ts +2 -2
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-57x3wa4J.js → control-C-wSaq9V.js} +4 -4
- package/dist/{control-DdFw-Caz.d.ts → control-Cxag1yqV.d.ts} +1 -1
- package/dist/{csp-nonce-C9OuML0U.js → csp-nonce-9NFUb7hJ.js} +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +1 -1
- package/dist/{data-B7XCDeC8.js → data-ghKopAbp.js} +32 -23
- package/dist/{deferred-BELyvMsC.js → deferred-CxjWCkIn.js} +2 -2
- package/dist/{effect-4LwBwV58.js → effect-CNwstBBD.js} +2 -2
- package/dist/{fastlane-Buz1Rvlr.js → fastlane-BKZduiBQ.js} +2 -2
- package/dist/{for-internal-DeoSg_AV.js → for-internal-DyBHfKJA.js} +33 -25
- package/dist/foundations/icon/index.d.ts +1 -1
- package/dist/foundations/index.d.ts +2 -2
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/state/index.d.ts +1 -1
- package/dist/foundations/state/index.js +1 -1
- package/dist/foundations/structures/index.d.ts +2 -2
- package/dist/foundations/structures/index.js +1 -1
- package/dist/fx/index.d.ts +1 -1
- package/dist/fx/index.js +1 -1
- package/dist/{index-r5THqzPN.d.ts → index-CTpMmzgN.d.ts} +2 -2
- package/dist/{index-DSqXWc77.d.ts → index-Dgjbo2gU.d.ts} +58 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-runtime-Cg7GqY1S.d.ts +2 -0
- package/dist/{jsx-runtime-Cdd6Gkb0.d.ts → jsx-runtime-gVIaTPw0.d.ts} +2 -2
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/{lifecycle-batch-Be-CLDjV.js → lifecycle-batch-63aXFf2S.js} +2 -2
- package/dist/{lifecycle-operations-C5m03NQc.js → lifecycle-operations-Q0k3EFnG.js} +94 -2
- package/dist/{navigate-wel1e6cU.d.ts → navigate-F4sHgWbw.d.ts} +3 -1
- package/dist/{navigate-C46GtScG.js → navigate-ZZu1IV0B.js} +88 -13
- package/dist/{readable-CEcteIDE.js → readable-Di1fzSwm.js} +1 -1
- package/dist/{renderer-BhXofszH.js → renderer-Cl23O0hV.js} +148 -130
- package/dist/{resolution-t8J0yNaU.js → resolution-ClD-K7Lz.js} +3 -3
- package/dist/{resource-operation-B8q-QRUx.js → resource-operation-Vz1S5h2k.js} +4 -4
- package/dist/resources/index.d.ts +3 -37
- package/dist/resources/index.js +6 -6
- package/dist/router/index.d.ts +4 -4
- package/dist/router/index.js +5 -5
- package/dist/{selector-C7rIpOnN.js → selector-CsKuomw0.js} +17 -16
- package/dist/{shared-CGrx2AOL.js → shared-CYBH3F8I.js} +1 -1
- package/dist/ssg/index.d.ts +1 -1
- package/dist/ssg/index.js +4 -4
- package/dist/ssr/index.d.ts +2 -2
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-BaC5qHEw.js → ssr-Doog-AfJ.js} +7 -7
- package/dist/{state-BzhOW2TX.js → state-BGJgYSyQ.js} +3 -3
- package/dist/{structures-BwfeO4Iz.js → structures-DFyK5AdQ.js} +4 -4
- package/dist/testing/index.d.ts +3 -1
- package/dist/testing/index.js +6 -5
- package/dist/{types-DkVJhVs9.d.ts → types-DWVrKn9N.d.ts} +5 -0
- package/dist/{verify-hydration-_Q6avFp0.js → verify-hydration-BZPJ_kYa.js} +1 -1
- package/package.json +6 -6
- package/dist/jsx-runtime-BTzDdBJ_.d.ts +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __CONTROL_BOUNDARY__ } from "./control-C-ApnFs1.js";
|
|
2
2
|
import { t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
|
|
3
|
-
import { y as logger } from "./access-
|
|
3
|
+
import { y as logger } from "./access-BucjYZcX.js";
|
|
4
4
|
import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } from "./component-scope-4I3yEMkb.js";
|
|
5
5
|
import { i as isFragmentType, n as Fragment, t as ELEMENT_TYPE } from "./jsx-DRS-qjiN.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as cleanupComponent } from "./component-cleanup-
|
|
8
|
-
import { p as isPromiseLike } from "./lifecycle-batch-
|
|
9
|
-
import { _ as setControlBoundaryContextFrame, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-
|
|
6
|
+
import { _ as getVNodeContextFrame, g as getExecutionContextFrame, n as createComponentInstance, p as callWithContext, y as markVNodeTreeWithContextFrame } from "./component-internal-C4hKKQBF.js";
|
|
7
|
+
import { t as cleanupComponent } from "./component-cleanup-jdbgjkT1.js";
|
|
8
|
+
import { p as isPromiseLike } from "./lifecycle-batch-63aXFf2S.js";
|
|
9
|
+
import { _ as setControlBoundaryContextFrame, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-DyBHfKJA.js";
|
|
10
10
|
import { C as SSRDataMissingError, _ as isEmptyPageRenderEnvelope, f as stopRenderPhase$1, h as createPageRenderEnvelope, t as configureRenderContextProvider, u as startRenderPhase$1, v as isPageRenderEnvelope, x as withHydrationRenderUrl } from "./render-context-B7ohlh6t.js";
|
|
11
11
|
import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTOfe.js";
|
|
12
|
-
import { o as isUnsafeUrlAttribute, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-
|
|
12
|
+
import { o as isUnsafeUrlAttribute, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-9NFUb7hJ.js";
|
|
13
13
|
import { n as SSR_PORTAL_HOST, t as SSR_PORTAL_ANCHOR } from "./portal-w3oQ6oQU.js";
|
|
14
14
|
import { t as createDataRuntime } from "./data-runtime-7t_Y0iv3.js";
|
|
15
15
|
import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-Bua3cDyb.js";
|
|
16
16
|
import { a as resolveRouteFromRoutes, c as removeRouteBasePath, s as normalizeRouteBasePath, t as _resolveRouteMatchFromRoutes } from "./route-matching-Bo6UqG-5.js";
|
|
17
|
-
import { a as resolveRouteRequest, d as DEFERRED_BOUNDARY, l as validateRouteHydrationData, n as getRouteRenderContext, o as getRouteHydrationMetadata, p as isDeferred } from "./resolution-
|
|
17
|
+
import { a as resolveRouteRequest, d as DEFERRED_BOUNDARY, l as validateRouteHydrationData, n as getRouteRenderContext, o as getRouteHydrationMetadata, p as isDeferred } from "./resolution-ClD-K7Lz.js";
|
|
18
18
|
import { n as disposeRegisteredDefaultPortalScope, r as getDefaultPortalHost } from "./default-portal-runtime-DvMvWJVp.js";
|
|
19
19
|
import { n as renderDocument, t as SSR_RENDER_DATA_ATTR } from "./ssr-DSHd_Q9K.js";
|
|
20
20
|
//#region src/ssr/escape.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as isProductionEnvironment } from "./access-
|
|
2
|
-
import { n as isBulkCommitActive, t as deferBulkCommitReadableNotification } from "./fastlane-
|
|
1
|
+
import { S as isProductionEnvironment } from "./access-BucjYZcX.js";
|
|
2
|
+
import { n as isBulkCommitActive, t as deferBulkCommitReadableNotification } from "./fastlane-BKZduiBQ.js";
|
|
3
3
|
import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
|
|
4
|
-
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-
|
|
4
|
+
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-Di1fzSwm.js";
|
|
5
5
|
//#region src/runtime/state.ts
|
|
6
6
|
/**
|
|
7
7
|
* State primitive for Askr components
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as getRuntimeRenderer } from "./access-
|
|
1
|
+
import { o as getRuntimeRenderer } from "./access-BucjYZcX.js";
|
|
2
2
|
import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-4I3yEMkb.js";
|
|
3
3
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-DRS-qjiN.js";
|
|
4
|
-
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-
|
|
5
|
-
import { t as cleanupComponent } from "./component-cleanup-
|
|
6
|
-
import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-
|
|
4
|
+
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-Di1fzSwm.js";
|
|
5
|
+
import { t as cleanupComponent } from "./component-cleanup-jdbgjkT1.js";
|
|
6
|
+
import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-63aXFf2S.js";
|
|
7
7
|
import { n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
8
8
|
import { i as createSSRPortalHostToken, n as SSR_PORTAL_HOST, r as createSSRPortalAnchorToken, t as SSR_PORTAL_ANCHOR } from "./portal-w3oQ6oQU.js";
|
|
9
9
|
import { i as registerDefaultPortalRuntime } from "./default-portal-runtime-DvMvWJVp.js";
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Et as RouteAuthOptions, Kt as RouteRegistry, Pt as RouteMatch, Sn as ComponentFunction, _n as QueryStaleReason, an as Mutation, sn as Query, tn as DataRuntime } from "../index-Dgjbo2gU.js";
|
|
2
2
|
//#region src/testing/render.d.ts
|
|
3
3
|
/** Options for {@link render} and {@link mount}. */
|
|
4
4
|
interface RenderOptions {
|
|
@@ -9,6 +9,8 @@ interface RenderOptions {
|
|
|
9
9
|
container?: HTMLElement;
|
|
10
10
|
/** Surface lifecycle cleanup errors during unmount. */
|
|
11
11
|
cleanupStrict?: boolean;
|
|
12
|
+
/** Isolated data runtime owned by this component render. */
|
|
13
|
+
dataRuntime?: DataRuntime;
|
|
12
14
|
}
|
|
13
15
|
/** Options for {@link renderRoute}. */
|
|
14
16
|
interface RouteRenderOptions extends RenderOptions {
|
package/dist/testing/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as flushRuntimeScheduler } from "../access-
|
|
2
|
-
import { u as recordReadableRead } from "../readable-
|
|
1
|
+
import { r as flushRuntimeScheduler } from "../access-BucjYZcX.js";
|
|
2
|
+
import { u as recordReadableRead } from "../readable-Di1fzSwm.js";
|
|
3
3
|
import { l as addInvalidationListener, t as createDataRuntime } from "../data-runtime-7t_Y0iv3.js";
|
|
4
|
-
import { a as normalizeAsyncDataError, o as notifySource, t as createReadableSource } from "../shared-
|
|
4
|
+
import { a as normalizeAsyncDataError, o as notifySource, t as createReadableSource } from "../shared-CYBH3F8I.js";
|
|
5
5
|
import { r as computeRouteActivityMatches } from "../route-matching-Bo6UqG-5.js";
|
|
6
|
-
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-
|
|
6
|
+
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-tWyF6121.js";
|
|
7
7
|
//#region src/testing/render.ts
|
|
8
8
|
const renderStates = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
const eventConstructorNames = {
|
|
@@ -149,7 +149,8 @@ function render(component, options) {
|
|
|
149
149
|
createIsland({
|
|
150
150
|
root: container,
|
|
151
151
|
component,
|
|
152
|
-
cleanupStrict: options?.cleanupStrict
|
|
152
|
+
cleanupStrict: options?.cleanupStrict,
|
|
153
|
+
dataRuntime: options?.dataRuntime
|
|
153
154
|
});
|
|
154
155
|
flush();
|
|
155
156
|
return createRenderResult(container);
|
|
@@ -89,6 +89,11 @@ interface IntrinsicProps extends IntrinsicEventProps {
|
|
|
89
89
|
hidden?: ReactiveProp<IntrinsicBooleanValue>;
|
|
90
90
|
dir?: ReactiveProp<IntrinsicTextValue>;
|
|
91
91
|
lang?: ReactiveProp<IntrinsicTextValue>;
|
|
92
|
+
contentEditable?: ReactiveProp<IntrinsicTextValue>;
|
|
93
|
+
draggable?: ReactiveProp<IntrinsicTextValue>;
|
|
94
|
+
enterKeyHint?: ReactiveProp<IntrinsicTextValue>;
|
|
95
|
+
inputMode?: ReactiveProp<IntrinsicTextValue>;
|
|
96
|
+
spellCheck?: ReactiveProp<IntrinsicTextValue>;
|
|
92
97
|
[attr: `aria-${string}`]: ReactiveProp<IntrinsicAriaValue>;
|
|
93
98
|
[attr: `data-${string}`]: ReactiveProp<IntrinsicDataValue>;
|
|
94
99
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as getHydrationRenderUrl, m as withHydrationVerificationRender } from "./render-context-B7ohlh6t.js";
|
|
2
2
|
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-DSHd_Q9K.js";
|
|
3
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
3
|
+
import { a as renderResolvedToStringSync } from "./ssr-Doog-AfJ.js";
|
|
4
4
|
//#region src/ssr/verify-hydration.ts
|
|
5
5
|
function normalizeHydrationHtml(html) {
|
|
6
6
|
const template = document.createElement("template");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askrjs/askr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Lane-scheduled deterministic UI framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"askr",
|
|
@@ -148,20 +148,20 @@
|
|
|
148
148
|
"prepublishOnly": "npm run check"
|
|
149
149
|
},
|
|
150
150
|
"dependencies": {
|
|
151
|
-
"@askrjs/auth": ">=0.2.
|
|
152
|
-
"@askrjs/schema": ">=0.2.
|
|
151
|
+
"@askrjs/auth": ">=0.2.1 <0.3.0",
|
|
152
|
+
"@askrjs/schema": ">=0.2.1 <0.3.0"
|
|
153
153
|
},
|
|
154
154
|
"devDependencies": {
|
|
155
|
-
"@types/node": "^26.
|
|
155
|
+
"@types/node": "^26.3.0",
|
|
156
156
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
157
157
|
"@vitest/browser-playwright": "4.1.10",
|
|
158
158
|
"cross-env": "^10.1.0",
|
|
159
159
|
"jsdom": "^30.0.1",
|
|
160
160
|
"playwright": "^1.62.1",
|
|
161
|
-
"publint": "^0.3.
|
|
161
|
+
"publint": "^0.3.24",
|
|
162
162
|
"tsd": "^0.33.0",
|
|
163
163
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
164
|
-
"vite": "^8.2.
|
|
164
|
+
"vite": "^8.2.2",
|
|
165
165
|
"vite-plus": "^0.2.8"
|
|
166
166
|
},
|
|
167
167
|
"tsd": {
|