@absolutejs/absolute 0.16.3 → 0.16.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/{src/cli → cli}/interactive.d.ts +1 -1
- package/dist/{src/cli → cli}/utils.d.ts +1 -1
- package/dist/{src/core → core}/build.d.ts +1 -1
- package/dist/{src/core → core}/devBuild.d.ts +1 -1
- package/dist/dev/client/cssUtils.ts +2 -2
- package/dist/dev/client/domState.ts +1 -1
- package/dist/dev/client/errorOverlay.ts +1 -1
- package/dist/dev/client/handlers/html.ts +2 -2
- package/dist/dev/client/handlers/htmx.ts +2 -2
- package/dist/dev/client/hmrClient.ts +2 -2
- package/dist/{src/dev → dev}/clientManager.d.ts +2 -2
- package/dist/{src/dev → dev}/configResolver.d.ts +1 -1
- package/dist/{src/dev → dev}/fileWatcher.d.ts +1 -1
- package/dist/{src/dev → dev}/pathUtils.d.ts +1 -1
- package/dist/{src/dev → dev}/rebuildTrigger.d.ts +1 -1
- package/dist/{src/dev → dev}/webSocket.d.ts +1 -1
- package/dist/{src/index.d.ts → index.d.ts} +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +11 -11
- package/dist/react/hooks/index.d.ts +2 -0
- package/dist/react/hooks/index.js.map +1 -1
- package/dist/{src/react → react}/hooks/useMediaQuery.d.ts +1 -1
- package/dist/types/build.d.ts +2 -2
- package/dist/types/userAgentTypes.d.ts +1 -1
- package/package.json +7 -23
- package/react.d.ts +1 -1
- package/svelte.d.ts +1 -1
- package/tsconfig.build.json +2 -1
- package/vue.d.ts +1 -1
- package/dist/src/react/hooks/index.d.ts +0 -2
- package/types/build.ts +0 -40
- package/types/cli.ts +0 -20
- package/types/client.ts +0 -111
- package/types/index.ts +0 -5
- package/types/mediaQuery.ts +0 -10
- package/types/messages.ts +0 -205
- package/types/react.ts +0 -4
- package/types/svelte.ts +0 -4
- package/types/userAgentTypes.ts +0 -3
- package/types/vue.ts +0 -4
- package/types/websocket.ts +0 -12
- package/types/window-globals.ts +0 -53
- /package/dist/{src/build → build}/buildReactVendor.d.ts +0 -0
- /package/dist/{src/build → build}/compileSvelte.d.ts +0 -0
- /package/dist/{src/build → build}/compileVue.d.ts +0 -0
- /package/dist/{src/build → build}/generateManifest.d.ts +0 -0
- /package/dist/{src/build → build}/generateReactIndexes.d.ts +0 -0
- /package/dist/{src/build → build}/htmlScriptHMRPlugin.d.ts +0 -0
- /package/dist/{src/build → build}/outputLogs.d.ts +0 -0
- /package/dist/{src/build → build}/rewriteReactImports.d.ts +0 -0
- /package/dist/{src/build → build}/scanEntryPoints.d.ts +0 -0
- /package/dist/{src/build → build}/updateAssetPaths.d.ts +0 -0
- /package/dist/{src/build → build}/wrapHTMLScript.d.ts +0 -0
- /package/dist/{src/cli → cli}/index.d.ts +0 -0
- /package/dist/{src/cli → cli}/scripts/dev.d.ts +0 -0
- /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{src/core → core}/devVendorPaths.d.ts +0 -0
- /package/dist/{src/core → core}/index.d.ts +0 -0
- /package/dist/{src/core → core}/lookup.d.ts +0 -0
- /package/dist/{src/core → core}/pageHandlers.d.ts +0 -0
- /package/dist/{src/dev → dev}/assetStore.d.ts +0 -0
- /package/dist/{src/dev → dev}/buildHMRClient.d.ts +0 -0
- /package/dist/{src/dev → dev}/dependencyGraph.d.ts +0 -0
- /package/dist/{src/dev → dev}/fileHashTracker.d.ts +0 -0
- /package/dist/{src/dev → dev}/moduleMapper.d.ts +0 -0
- /package/dist/{src/dev → dev}/moduleVersionTracker.d.ts +0 -0
- /package/dist/{src/dev → dev}/reactComponentClassifier.d.ts +0 -0
- /package/dist/{src/dev → dev}/simpleHTMLHMR.d.ts +0 -0
- /package/dist/{src/dev → dev}/simpleHTMXHMR.d.ts +0 -0
- /package/dist/{src/dev → dev}/simpleSvelteHMR.d.ts +0 -0
- /package/dist/{src/dev → dev}/simpleVueHMR.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/hmr.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/index.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/networking.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/pageRouter.d.ts +0 -0
- /package/dist/{src/react → react}/index.d.ts +0 -0
- /package/dist/{src/react → react}/pageHandler.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/index.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/pageHandler.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/renderToPipeableStream.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/renderToReadableStream.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/renderToString.d.ts +0 -0
- /package/dist/{src/utils → utils}/cleanup.d.ts +0 -0
- /package/dist/{src/utils → utils}/commonAncestor.d.ts +0 -0
- /package/dist/{src/utils → utils}/escapeScriptContent.d.ts +0 -0
- /package/dist/{src/utils → utils}/generateHeadElement.d.ts +0 -0
- /package/dist/{src/utils → utils}/getDurationString.d.ts +0 -0
- /package/dist/{src/utils → utils}/getEnv.d.ts +0 -0
- /package/dist/{src/utils → utils}/getRegisterClientScript.d.ts +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/logger.d.ts +0 -0
- /package/dist/{src/utils → utils}/networking.d.ts +0 -0
- /package/dist/{src/utils → utils}/normalizePath.d.ts +0 -0
- /package/dist/{src/utils → utils}/registerClientScript.d.ts +0 -0
- /package/dist/{src/utils → utils}/ssrErrorPage.d.ts +0 -0
- /package/dist/{src/utils → utils}/stringModifiers.d.ts +0 -0
- /package/dist/{src/utils → utils}/userAgentFunctions.d.ts +0 -0
- /package/dist/{src/utils → utils}/validateSafePath.d.ts +0 -0
- /package/dist/{src/vue → vue}/index.d.ts +0 -0
- /package/dist/{src/vue → vue}/pageHandler.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Actions, InteractiveHandler } from '
|
|
1
|
+
import type { Actions, InteractiveHandler } from '../types/cli';
|
|
2
2
|
export declare const createInteractiveHandler: (actions: Actions) => InteractiveHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DbScripts } from '
|
|
1
|
+
import type { DbScripts } from '../types/cli';
|
|
2
2
|
export declare const isWSLEnvironment: () => boolean;
|
|
3
3
|
export declare const COMPOSE_PATH = "db/docker-compose.db.yml";
|
|
4
4
|
export declare const DEFAULT_SERVER_ENTRY = "src/backend/server.ts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BuildConfig } from '
|
|
1
|
+
import type { BuildConfig } from '../types/build';
|
|
2
2
|
export declare const build: ({ buildDirectory, assetsDirectory, publicDirectory, reactDirectory, htmlDirectory, htmxDirectory, angularDirectory, svelteDirectory, vueDirectory, tailwind, options, incrementalFiles }: BuildConfig) => Promise<Record<string, string>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* CSS reload/preload utilities for HMR */
|
|
2
2
|
|
|
3
|
-
import type { CSSUpdateResult } from '
|
|
4
|
-
import { hmrState } from '
|
|
3
|
+
import type { CSSUpdateResult } from '../../types/client';
|
|
4
|
+
import { hmrState } from '../../types/client';
|
|
5
5
|
|
|
6
6
|
export const getCSSBaseName = (href: string) => {
|
|
7
7
|
const fileName = href.split('?')[0]!.split('/').pop() || '';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* DOM state snapshot/restore to preserve user-visible state across HMR */
|
|
2
2
|
|
|
3
|
-
import type { DOMStateEntry, DOMStateSnapshot } from '
|
|
3
|
+
import type { DOMStateEntry, DOMStateSnapshot } from '../../types/client';
|
|
4
4
|
|
|
5
5
|
export const saveDOMState = (root: HTMLElement) => {
|
|
6
6
|
const snapshot: DOMStateSnapshot = { activeKey: null, items: [] };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* AbsoluteJS Error Overlay - branded, per-framework, modern styling */
|
|
2
2
|
|
|
3
|
-
import type { ErrorOverlayOptions } from '
|
|
3
|
+
import type { ErrorOverlayOptions } from '../../types/client';
|
|
4
4
|
|
|
5
5
|
let errorOverlayElement: HTMLDivElement | null = null;
|
|
6
6
|
let currentOverlayKind: 'compilation' | 'runtime' | null = null;
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import { processCSSLinks, waitForCSSAndUpdate } from '../cssUtils';
|
|
13
13
|
import { patchHeadInPlace } from '../headPatch';
|
|
14
14
|
import { detectCurrentFramework } from '../frameworkDetect';
|
|
15
|
-
import type { ScriptInfo } from '
|
|
16
|
-
import { hmrState } from '
|
|
15
|
+
import type { ScriptInfo } from '../../../types/client';
|
|
16
|
+
import { hmrState } from '../../../types/client';
|
|
17
17
|
|
|
18
18
|
export const handleScriptUpdate = (message: {
|
|
19
19
|
data: { framework?: string; scriptPath?: string };
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import { processCSSLinks, waitForCSSAndUpdate } from '../cssUtils';
|
|
13
13
|
import { patchHeadInPlace } from '../headPatch';
|
|
14
14
|
import { detectCurrentFramework } from '../frameworkDetect';
|
|
15
|
-
import type { ScriptInfo } from '
|
|
16
|
-
import { hmrState } from '
|
|
15
|
+
import type { ScriptInfo } from '../../../types/client';
|
|
16
|
+
import { hmrState } from '../../../types/client';
|
|
17
17
|
|
|
18
18
|
export const handleHTMXUpdate = (message: {
|
|
19
19
|
data: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* AbsoluteJS HMR Client - Entry point
|
|
2
2
|
Initializes WebSocket connection, dispatches messages to framework handlers */
|
|
3
3
|
|
|
4
|
-
import '
|
|
4
|
+
import '../../types/client'; // Window global type extensions
|
|
5
5
|
|
|
6
|
-
import { hmrState } from '
|
|
6
|
+
import { hmrState } from '../../types/client';
|
|
7
7
|
import { detectCurrentFramework } from './frameworkDetect';
|
|
8
8
|
import { hideErrorOverlay, showErrorOverlay } from './errorOverlay';
|
|
9
9
|
import { handleReactUpdate } from './handlers/react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FSWatcher } from 'fs';
|
|
2
2
|
import { type DependencyGraph } from './dependencyGraph';
|
|
3
3
|
import { type ModuleVersions } from './moduleVersionTracker';
|
|
4
|
-
import type { HMRWebSocket } from '
|
|
5
|
-
import type { BuildConfig } from '
|
|
4
|
+
import type { HMRWebSocket } from '../types/websocket';
|
|
5
|
+
import type { BuildConfig } from '../types/build';
|
|
6
6
|
import { type ResolvedBuildPaths } from './configResolver';
|
|
7
7
|
export type HMRState = {
|
|
8
8
|
connectedClients: Set<HMRWebSocket>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BuildConfig } from '
|
|
1
|
+
import type { BuildConfig } from '../types/build';
|
|
2
2
|
/** Normalize and default build paths so HMR works outside the example app. */
|
|
3
3
|
export declare const resolveBuildPaths: (config: BuildConfig) => {
|
|
4
4
|
buildDir: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BuildConfig } from '
|
|
1
|
+
import type { BuildConfig } from '../types/build';
|
|
2
2
|
import type { HMRState } from './clientManager';
|
|
3
3
|
export declare const startFileWatching: (state: HMRState, config: BuildConfig, onFileChange: (filePath: string) => void) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildConfig } from '
|
|
1
|
+
import { BuildConfig } from '../types/build';
|
|
2
2
|
import type { ResolvedBuildPaths } from './configResolver';
|
|
3
3
|
export declare const getWatchPaths: (config: BuildConfig, resolved?: ResolvedBuildPaths) => string[];
|
|
4
4
|
export declare const shouldIgnorePath: (path: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BuildConfig } from '
|
|
1
|
+
import type { BuildConfig } from '../types/build';
|
|
2
2
|
import type { HMRState } from './clientManager';
|
|
3
3
|
export declare const queueFileChange: (state: HMRState, filePath: string, config: BuildConfig, onRebuildComplete: (result: {
|
|
4
4
|
manifest: Record<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HMRState } from './clientManager';
|
|
2
|
-
import type { HMRWebSocket } from '
|
|
2
|
+
import type { HMRWebSocket } from '../types/websocket';
|
|
3
3
|
export declare const handleClientConnect: (state: HMRState, client: HMRWebSocket, manifest: Record<string, string>) => void;
|
|
4
4
|
export declare const handleClientDisconnect: (state: HMRState, client: HMRWebSocket) => void;
|
|
5
5
|
export declare const handleHMRMessage: (state: HMRState, client: HMRWebSocket, message: unknown) => void;
|
package/dist/index.js
CHANGED
|
@@ -921,7 +921,7 @@ var handleHTMXUpdate = async (htmxFilePath) => {
|
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
923
|
var init_simpleHTMXHMR = () => {};
|
|
924
|
-
// types/client.ts
|
|
924
|
+
// src/types/client.ts
|
|
925
925
|
var hmrState = {
|
|
926
926
|
isConnected: false,
|
|
927
927
|
isFirstHMRUpdate: true,
|
|
@@ -929,7 +929,7 @@ var hmrState = {
|
|
|
929
929
|
pingInterval: null,
|
|
930
930
|
reconnectTimeout: null
|
|
931
931
|
};
|
|
932
|
-
// types/messages.ts
|
|
932
|
+
// src/types/messages.ts
|
|
933
933
|
var isValidHMRClientMessage = (data) => {
|
|
934
934
|
if (!data || typeof data !== "object") {
|
|
935
935
|
return false;
|
|
@@ -951,7 +951,7 @@ var isValidHMRClientMessage = (data) => {
|
|
|
951
951
|
return false;
|
|
952
952
|
}
|
|
953
953
|
};
|
|
954
|
-
// types/websocket.ts
|
|
954
|
+
// src/types/websocket.ts
|
|
955
955
|
var WS_READY_STATE_OPEN = 1;
|
|
956
956
|
// src/index.ts
|
|
957
957
|
init_constants();
|
|
@@ -3768,5 +3768,5 @@ export {
|
|
|
3768
3768
|
BUN_BUILD_WARNING_SUPPRESSION
|
|
3769
3769
|
};
|
|
3770
3770
|
|
|
3771
|
-
//# debugId=
|
|
3771
|
+
//# debugId=49F1075E01ECFCD164756E2164756E21
|
|
3772
3772
|
//# sourceMappingURL=index.js.map
|