@askrjs/askr 0.0.83 → 0.0.85
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-ePqdQqkV.js → access-Dpfoi4cA.js} +7 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +1 -1
- package/dist/{activity-CXEaU-Al.d.ts → activity-B1I5HJQI.d.ts} +1 -1
- package/dist/{activity-CnSRFO3d.js → activity-Jd9CgEa3.js} +52 -15
- package/dist/{authoring-DbGEgg40.js → authoring-DdQ3pHqt.js} +6 -3
- package/dist/benchmark.js +8 -8
- package/dist/boot/index.d.ts +3 -3
- package/dist/boot/index.js +1 -1
- package/dist/{boot-uK1hzONI.js → boot-DWe880Et.js} +16 -15
- package/dist/{cleanup-CEF-cX49.js → cleanup-c837KVij.js} +17 -7
- package/dist/{component-cleanup-oWN45rfa.js → component-cleanup-BUfUleGZ.js} +2 -2
- package/dist/{component-internal-DsM75Gl1.js → component-internal-DcrLymUJ.js} +9 -6
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-Cix3yjVf.d.ts → control-DhUZU4_V.d.ts} +2 -1
- package/dist/{control-C0X1zgrM.js → control-oLADku43.js} +4 -4
- package/dist/{csp-nonce-DDt0UNdt.js → csp-nonce-Bc52OIVc.js} +19 -2
- package/dist/data/index.js +1 -1
- package/dist/{data-G0hURNm_.js → data-Dkqb8_QP.js} +3 -3
- package/dist/{deferred-rdHAgyKe.js → deferred-vUOy-awa.js} +198 -16
- package/dist/{effect-2IIWvUjG.js → effect-lnxQIpJG.js} +2 -2
- package/dist/{fastlane-CkBXZ_3K.js → fastlane-CrfB3QG0.js} +2 -2
- package/dist/{for-internal-DRbV0h1d.js → for-internal-B_mnQhan.js} +55 -22
- package/dist/foundations/index.d.ts +1 -1
- package/dist/foundations/index.js +2 -2
- 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 +3 -3
- package/dist/fx/index.js +1 -1
- package/dist/{index-Vs1EeWEr.d.ts → index-Bkh9S9-t.d.ts} +6 -2
- package/dist/{index-TlEvex-C.d.ts → index-pIgGaXvS.d.ts} +21 -4
- package/dist/{index-ho0Htetw.d.ts → index-r-nt13FE.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/{lifecycle-batch-CwHCDseR.js → lifecycle-batch-Dfpid9-A.js} +45 -24
- package/dist/{lifecycle-operations-BJfxWUJr.js → lifecycle-operations-BrYrBsXY.js} +1 -1
- package/dist/{navigate-DfY1BUYc.d.ts → navigate-NyIjQUwI.d.ts} +1 -1
- package/dist/{navigate-Crvd5gUG.js → navigate-b4GGxO_l.js} +15 -14
- package/dist/{portal-BZ_rN17v.js → portal-BVWjAhNQ.js} +5 -5
- package/dist/{readable-B3VIOfd7.js → readable-B5NtV7V0.js} +3 -3
- package/dist/{renderer-VSw0KKDG.js → renderer-CZzNtoj2.js} +3355 -2813
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +5 -5
- package/dist/{route-matching-BUwz4kfl.js → route-matching-DHduNiGk.js} +49 -6
- package/dist/router/index.d.ts +7 -7
- package/dist/router/index.js +9 -7
- package/dist/{selector-DVwvof1M.js → selector-Ck_Pp9av.js} +2 -2
- package/dist/ssg/index.d.ts +10 -4
- package/dist/ssg/index.js +30 -15
- package/dist/ssr/index.d.ts +7 -3
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-C_Ql5_Kg.js → ssr-CpiBHMNv.js} +40 -26
- package/dist/ssr-DSHd_Q9K.js +25 -0
- package/dist/{state-BCl9DeiN.js → state-DCjONcHK.js} +4 -3
- package/dist/{structures-D3vO-WMN.js → structures-DSLF_iis.js} +4 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/dist/{verify-hydration-CNLXUcuR.js → verify-hydration-C3QBBQqR.js} +2 -2
- package/package.json +3 -3
- package/dist/ssr-CbQO5xd3.js +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { x as isProductionEnvironment } from "./access-
|
|
2
|
-
import { t as isBulkCommitActive } from "./fastlane-
|
|
3
|
-
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
|
|
1
|
+
import { v as logger, x as isProductionEnvironment } from "./access-Dpfoi4cA.js";
|
|
2
|
+
import { t as isBulkCommitActive } from "./fastlane-CrfB3QG0.js";
|
|
4
3
|
import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
|
|
4
|
+
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
5
5
|
//#region src/runtime/state.ts
|
|
6
6
|
/**
|
|
7
7
|
* State primitive for Askr components
|
|
@@ -77,6 +77,7 @@ function createStateCell(initialValue, instance) {
|
|
|
77
77
|
else newValue = newValueOrUpdater;
|
|
78
78
|
if (Object.is(value, newValue)) return;
|
|
79
79
|
if (isBulkCommitActive()) {
|
|
80
|
+
if (!isProductionEnvironment()) logger.warn("[Askr] state.set() was called while a bulk commit (fast-lane reorder) was in progress. The value updated, but subscribers were not notified, so this change will not be reflected in the UI until an unrelated update triggers a re-render. This usually happens from a ref callback or a native focus/blur event fired synchronously during a large keyed-list reorder.");
|
|
80
81
|
value = newValue;
|
|
81
82
|
return;
|
|
82
83
|
}
|
|
@@ -5,7 +5,9 @@ function isElement(value) {
|
|
|
5
5
|
}
|
|
6
6
|
function cloneElement(element, props) {
|
|
7
7
|
return {
|
|
8
|
-
|
|
8
|
+
$$typeof: element.$$typeof,
|
|
9
|
+
type: element.type,
|
|
10
|
+
key: element.key,
|
|
9
11
|
props: {
|
|
10
12
|
...element.props,
|
|
11
13
|
...props
|
|
@@ -218,4 +220,4 @@ function createLayer() {
|
|
|
218
220
|
* }
|
|
219
221
|
*/
|
|
220
222
|
//#endregion
|
|
221
|
-
export { layout as a, Slot as i, createCollection as n, Presence as r, createLayer as t };
|
|
223
|
+
export { layout as a, Slot as i, createCollection as n, cloneElement as o, Presence as r, isElement as s, createLayer as t };
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as RouteMatch, W as RouteRegistry, w as RouteAuthOptions } from "../index-
|
|
1
|
+
import { l as ComponentFunction } from "../control-DhUZU4_V.js";
|
|
2
|
+
import { M as RouteMatch, W as RouteRegistry, w as RouteAuthOptions } from "../index-pIgGaXvS.js";
|
|
3
3
|
import { C as Query, k as QueryStaleReason } from "../index-5S-fi2xy.js";
|
|
4
4
|
//#region src/testing/render.d.ts
|
|
5
5
|
interface RenderOptions {
|
package/dist/testing/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as flushRuntimeScheduler } from "../access-
|
|
2
|
-
import { r as computeRouteActivityMatches } from "../route-matching-
|
|
1
|
+
import { r as flushRuntimeScheduler } from "../access-Dpfoi4cA.js";
|
|
2
|
+
import { r as computeRouteActivityMatches } from "../route-matching-DHduNiGk.js";
|
|
3
3
|
import { l as addInvalidationListener } from "../data-runtime-D68YOo9L.js";
|
|
4
|
-
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-
|
|
4
|
+
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-DWe880Et.js";
|
|
5
5
|
//#region src/testing/render.ts
|
|
6
6
|
const renderStates = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
const eventConstructorNames = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-
|
|
2
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
1
|
+
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-DSHd_Q9K.js";
|
|
2
|
+
import { a as renderResolvedToStringSync } from "./ssr-CpiBHMNv.js";
|
|
3
3
|
//#region src/ssr/verify-hydration.ts
|
|
4
4
|
function normalizeHydrationHtml(html) {
|
|
5
5
|
const template = document.createElement("template");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askrjs/askr",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
4
4
|
"description": "Actor-backed deterministic UI framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"askr",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@types/node": "^26.1.1",
|
|
155
155
|
"@vitest/browser-playwright": "4.1.10",
|
|
156
156
|
"cross-env": "^10.1.0",
|
|
157
|
-
"jsdom": "^
|
|
157
|
+
"jsdom": "^30.0.0",
|
|
158
158
|
"playwright": "^1.61.1",
|
|
159
159
|
"publint": "^0.3.21",
|
|
160
160
|
"tsd": "^0.33.0",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
"engines": {
|
|
173
|
-
"node": ">=
|
|
173
|
+
"node": ">=24.15.0"
|
|
174
174
|
},
|
|
175
175
|
"packageManager": "npm@12.0.1",
|
|
176
176
|
"allowScripts": {
|
package/dist/ssr-CbQO5xd3.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/common/ssr.ts
|
|
2
|
-
function renderDocument(document, args, apiName) {
|
|
3
|
-
const html = document(args);
|
|
4
|
-
if (typeof html !== "string") {
|
|
5
|
-
const received = typeof html === "object" && html !== null && "then" in html && typeof html.then === "function" ? "a Promise-like value" : html === null ? "null" : Array.isArray(html) ? "an array" : typeof html;
|
|
6
|
-
throw new Error(`${apiName} document() must synchronously return a string; received ${received}.`);
|
|
7
|
-
}
|
|
8
|
-
return html;
|
|
9
|
-
}
|
|
10
|
-
const SSR_RENDER_DATA_ATTR = "data-askr-render-data";
|
|
11
|
-
//#endregion
|
|
12
|
-
export { renderDocument as n, SSR_RENDER_DATA_ATTR as t };
|