@absolutejs/absolute 0.18.2-beta.2 → 0.18.2-beta.3

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.
@@ -51,19 +51,20 @@
51
51
  "src/dev/client/reactRefreshSetup.ts": "rkzjetmluctl",
52
52
  "src/dev/client/moduleVersions.ts": "248160abau9h5",
53
53
  "src/dev/client/frameworkDetect.ts": "3334zbm26hifu",
54
- "src/dev/client/domDiff.ts": "d7utt4o3pw55",
55
- "src/dev/client/cssUtils.ts": "movpm7seg4oy",
56
- "src/dev/client/errorOverlay.ts": "3ouuxn2oti53k",
57
- "src/dev/client/domState.ts": "3krhs6udgh7xs",
58
- "src/dev/client/hmrClient.ts": "3q59cc8lk8eca",
59
- "src/dev/client/handlers/angular.ts": "10uzgyqjq5460",
54
+ "src/dev/client/domDiff.ts": "1l75iue36jnbj",
55
+ "src/dev/client/constants.ts": "18mgegh7j259m",
56
+ "src/dev/client/cssUtils.ts": "1juz4ohghkhtk",
57
+ "src/dev/client/errorOverlay.ts": "xmgn25pozkow",
58
+ "src/dev/client/domState.ts": "2ynh0cmru6iq3",
59
+ "src/dev/client/hmrClient.ts": "12mtsqgfvgu2d",
60
+ "src/dev/client/handlers/angular.ts": "216fhafx68xki",
60
61
  "src/dev/client/handlers/react.ts": "6u546gn1fmr5",
61
- "src/dev/client/handlers/html.ts": "34fezopn574a3",
62
- "src/dev/client/handlers/rebuild.ts": "18idlj7la0nbg",
62
+ "src/dev/client/handlers/html.ts": "10xzsckw7unvb",
63
+ "src/dev/client/handlers/rebuild.ts": "3nizj7ou45llm",
63
64
  "src/dev/client/handlers/angularRuntime.ts": "3axhduqw7qb85",
64
65
  "src/dev/client/handlers/vue.ts": "3b7e0xcokd1nt",
65
- "src/dev/client/handlers/htmx.ts": "vm7z5yjz4gne",
66
- "src/dev/client/handlers/svelte.ts": "2n3wf36cdhiuc",
66
+ "src/dev/client/handlers/htmx.ts": "sjayu1bz2xrn",
67
+ "src/dev/client/handlers/svelte.ts": "3nk5w54bywimt",
67
68
  "src/utils/escapeScriptContent.ts": "1gg8nciaxrh5v",
68
69
  "src/utils/logger.ts": "o7wfmitlmshq",
69
70
  "src/utils/ssrErrorPage.ts": "1cfwzntnoaf9d",
@@ -178,7 +179,7 @@
178
179
  "example/angular/compiled/components/counter.component.js": "2oew7n0s1wzck",
179
180
  "eslint.config.mjs": "kk4n5twg4v4r",
180
181
  "tsconfig.json": "3pf54bnsv1pxc",
181
- "package.json": "x39cmaydzezz",
182
+ "package.json": "26yvh9amdsu59",
182
183
  "tsconfig.build.json": "976e92rva922",
183
184
  "example/svelte/pages/SvelteExample.svelte": "18y2nvi52u8ps",
184
185
  "example/svelte/components/Counter.svelte": "1p92uo1pko0wo",
@@ -0,0 +1,25 @@
1
+ /* Client-side constants — local copy for dist/dev/client/ portability.
2
+ These values MUST stay in sync with the root constants.ts.
3
+ This file exists because the client files are copied raw to dist/dev/client/
4
+ and cannot import from ../../constants when installed from npm. */
5
+
6
+ export const ANGULAR_INIT_TIMEOUT_MS = 500;
7
+ export const CSS_ERROR_RESOLVE_DELAY_MS = 50;
8
+ export const CSS_MAX_CHECK_ATTEMPTS = 10;
9
+ export const CSS_MAX_PARSE_TIMEOUT_MS = 500;
10
+ export const CSS_SHEET_READY_TIMEOUT_MS = 100;
11
+ export const DOM_UPDATE_DELAY_MS = 50;
12
+ export const FOCUS_ID_PREFIX_LENGTH = 3;
13
+ export const FOCUS_IDX_PREFIX_LENGTH = 4;
14
+ export const FOCUS_NAME_PREFIX_LENGTH = 5;
15
+ export const HMR_UPDATE_TIMEOUT_MS = 2000;
16
+ export const MAX_RECONNECT_ATTEMPTS = 60;
17
+ export const OVERLAY_FADE_DURATION_MS = 150;
18
+ export const PING_INTERVAL_MS = 30_000;
19
+ export const RAF_BATCH_COUNT = 3;
20
+ export const REBUILD_RELOAD_DELAY_MS = 200;
21
+ export const RECONNECT_INITIAL_DELAY_MS = 500;
22
+ export const RECONNECT_POLL_INTERVAL_MS = 300;
23
+ export const SVELTE_CSS_LOAD_TIMEOUT_MS = 500;
24
+ export const UNFOUND_INDEX = -1;
25
+ export const WEBSOCKET_NORMAL_CLOSURE = 1000;
@@ -8,7 +8,7 @@ import {
8
8
  CSS_SHEET_READY_TIMEOUT_MS,
9
9
  DOM_UPDATE_DELAY_MS,
10
10
  RAF_BATCH_COUNT
11
- } from '../../constants';
11
+ } from './constants';
12
12
 
13
13
  export const getCSSBaseName = (href: string) => {
14
14
  const fileName = href.split('?')[0]?.split('/').pop() || '';
@@ -1,6 +1,6 @@
1
1
  /* DOM diffing/patching for in-place updates (zero flicker) */
2
2
 
3
- import { UNFOUND_INDEX } from '../../constants';
3
+ import { UNFOUND_INDEX } from './constants';
4
4
 
5
5
  type KeyedEntry = {
6
6
  index: number;
@@ -6,7 +6,7 @@ import {
6
6
  FOCUS_IDX_PREFIX_LENGTH,
7
7
  FOCUS_NAME_PREFIX_LENGTH,
8
8
  UNFOUND_INDEX
9
- } from '../../constants';
9
+ } from './constants';
10
10
 
11
11
  const trySetSelectionRange = (
12
12
  element: HTMLInputElement | HTMLTextAreaElement,
@@ -1,7 +1,7 @@
1
1
  /* AbsoluteJS Error Overlay - branded, per-framework, modern styling */
2
2
 
3
3
  import type { ErrorOverlayOptions } from '../../../types/client';
4
- import { OVERLAY_FADE_DURATION_MS } from '../../constants';
4
+ import { OVERLAY_FADE_DURATION_MS } from './constants';
5
5
 
6
6
  let errorOverlayElement: HTMLDivElement | null = null;
7
7
  let currentOverlayKind: 'compilation' | 'runtime' | null = null;
@@ -14,7 +14,7 @@
14
14
  callback (which can be async), and crossfades when the callback finishes.
15
15
  The user never sees empty/default state — only the before and after. */
16
16
 
17
- import { ANGULAR_INIT_TIMEOUT_MS } from '../../../constants';
17
+ import { ANGULAR_INIT_TIMEOUT_MS } from '../constants';
18
18
  import {
19
19
  saveFormState,
20
20
  restoreFormState,
@@ -1,6 +1,6 @@
1
1
  /* HTML + script HMR update handlers */
2
2
 
3
- import { DOM_UPDATE_DELAY_MS } from '../../../constants';
3
+ import { DOM_UPDATE_DELAY_MS } from '../constants';
4
4
  import { patchDOMInPlace } from '../domDiff';
5
5
  import {
6
6
  saveDOMState,
@@ -1,6 +1,6 @@
1
1
  /* HTMX HMR update handler */
2
2
 
3
- import { DOM_UPDATE_DELAY_MS } from '../../../constants';
3
+ import { DOM_UPDATE_DELAY_MS } from '../constants';
4
4
  import { patchDOMInPlace } from '../domDiff';
5
5
  import {
6
6
  saveDOMState,
@@ -1,6 +1,6 @@
1
1
  /* Rebuild, manifest, module-update, and error handlers */
2
2
 
3
- import { REBUILD_RELOAD_DELAY_MS } from '../../../constants';
3
+ import { REBUILD_RELOAD_DELAY_MS } from '../constants';
4
4
  import {
5
5
  hideErrorOverlay,
6
6
  isRuntimeErrorOverlay,
@@ -1,6 +1,6 @@
1
1
  /* Svelte HMR update handler */
2
2
 
3
- import { SVELTE_CSS_LOAD_TIMEOUT_MS } from '../../../constants';
3
+ import { SVELTE_CSS_LOAD_TIMEOUT_MS } from '../constants';
4
4
  import {
5
5
  saveDOMState,
6
6
  restoreDOMState,
@@ -9,7 +9,7 @@ import {
9
9
  RECONNECT_INITIAL_DELAY_MS,
10
10
  RECONNECT_POLL_INTERVAL_MS,
11
11
  WEBSOCKET_NORMAL_CLOSURE
12
- } from '../../constants';
12
+ } from './constants';
13
13
  import { detectCurrentFramework } from './frameworkDetect';
14
14
  import { hideErrorOverlay, showErrorOverlay } from './errorOverlay';
15
15
  import { handleAngularUpdate } from './handlers/angular';
package/package.json CHANGED
@@ -152,5 +152,5 @@
152
152
  "typecheck": "bun run vue-tsc --noEmit"
153
153
  },
154
154
  "types": "./dist/src/index.d.ts",
155
- "version": "0.18.2-beta.2"
155
+ "version": "0.18.2-beta.3"
156
156
  }