@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.
Files changed (100) hide show
  1. package/dist/{src/cli → cli}/interactive.d.ts +1 -1
  2. package/dist/{src/cli → cli}/utils.d.ts +1 -1
  3. package/dist/{src/core → core}/build.d.ts +1 -1
  4. package/dist/{src/core → core}/devBuild.d.ts +1 -1
  5. package/dist/dev/client/cssUtils.ts +2 -2
  6. package/dist/dev/client/domState.ts +1 -1
  7. package/dist/dev/client/errorOverlay.ts +1 -1
  8. package/dist/dev/client/handlers/html.ts +2 -2
  9. package/dist/dev/client/handlers/htmx.ts +2 -2
  10. package/dist/dev/client/hmrClient.ts +2 -2
  11. package/dist/{src/dev → dev}/clientManager.d.ts +2 -2
  12. package/dist/{src/dev → dev}/configResolver.d.ts +1 -1
  13. package/dist/{src/dev → dev}/fileWatcher.d.ts +1 -1
  14. package/dist/{src/dev → dev}/pathUtils.d.ts +1 -1
  15. package/dist/{src/dev → dev}/rebuildTrigger.d.ts +1 -1
  16. package/dist/{src/dev → dev}/webSocket.d.ts +1 -1
  17. package/dist/{src/index.d.ts → index.d.ts} +1 -1
  18. package/dist/index.js +4 -4
  19. package/dist/index.js.map +11 -11
  20. package/dist/react/hooks/index.d.ts +2 -0
  21. package/dist/react/hooks/index.js.map +1 -1
  22. package/dist/{src/react → react}/hooks/useMediaQuery.d.ts +1 -1
  23. package/dist/types/build.d.ts +2 -2
  24. package/dist/types/userAgentTypes.d.ts +1 -1
  25. package/package.json +7 -23
  26. package/react.d.ts +1 -1
  27. package/svelte.d.ts +1 -1
  28. package/tsconfig.build.json +2 -1
  29. package/vue.d.ts +1 -1
  30. package/dist/src/react/hooks/index.d.ts +0 -2
  31. package/types/build.ts +0 -40
  32. package/types/cli.ts +0 -20
  33. package/types/client.ts +0 -111
  34. package/types/index.ts +0 -5
  35. package/types/mediaQuery.ts +0 -10
  36. package/types/messages.ts +0 -205
  37. package/types/react.ts +0 -4
  38. package/types/svelte.ts +0 -4
  39. package/types/userAgentTypes.ts +0 -3
  40. package/types/vue.ts +0 -4
  41. package/types/websocket.ts +0 -12
  42. package/types/window-globals.ts +0 -53
  43. /package/dist/{src/build → build}/buildReactVendor.d.ts +0 -0
  44. /package/dist/{src/build → build}/compileSvelte.d.ts +0 -0
  45. /package/dist/{src/build → build}/compileVue.d.ts +0 -0
  46. /package/dist/{src/build → build}/generateManifest.d.ts +0 -0
  47. /package/dist/{src/build → build}/generateReactIndexes.d.ts +0 -0
  48. /package/dist/{src/build → build}/htmlScriptHMRPlugin.d.ts +0 -0
  49. /package/dist/{src/build → build}/outputLogs.d.ts +0 -0
  50. /package/dist/{src/build → build}/rewriteReactImports.d.ts +0 -0
  51. /package/dist/{src/build → build}/scanEntryPoints.d.ts +0 -0
  52. /package/dist/{src/build → build}/updateAssetPaths.d.ts +0 -0
  53. /package/dist/{src/build → build}/wrapHTMLScript.d.ts +0 -0
  54. /package/dist/{src/cli → cli}/index.d.ts +0 -0
  55. /package/dist/{src/cli → cli}/scripts/dev.d.ts +0 -0
  56. /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
  57. /package/dist/{src/core → core}/devVendorPaths.d.ts +0 -0
  58. /package/dist/{src/core → core}/index.d.ts +0 -0
  59. /package/dist/{src/core → core}/lookup.d.ts +0 -0
  60. /package/dist/{src/core → core}/pageHandlers.d.ts +0 -0
  61. /package/dist/{src/dev → dev}/assetStore.d.ts +0 -0
  62. /package/dist/{src/dev → dev}/buildHMRClient.d.ts +0 -0
  63. /package/dist/{src/dev → dev}/dependencyGraph.d.ts +0 -0
  64. /package/dist/{src/dev → dev}/fileHashTracker.d.ts +0 -0
  65. /package/dist/{src/dev → dev}/moduleMapper.d.ts +0 -0
  66. /package/dist/{src/dev → dev}/moduleVersionTracker.d.ts +0 -0
  67. /package/dist/{src/dev → dev}/reactComponentClassifier.d.ts +0 -0
  68. /package/dist/{src/dev → dev}/simpleHTMLHMR.d.ts +0 -0
  69. /package/dist/{src/dev → dev}/simpleHTMXHMR.d.ts +0 -0
  70. /package/dist/{src/dev → dev}/simpleSvelteHMR.d.ts +0 -0
  71. /package/dist/{src/dev → dev}/simpleVueHMR.d.ts +0 -0
  72. /package/dist/{src/plugins → plugins}/hmr.d.ts +0 -0
  73. /package/dist/{src/plugins → plugins}/index.d.ts +0 -0
  74. /package/dist/{src/plugins → plugins}/networking.d.ts +0 -0
  75. /package/dist/{src/plugins → plugins}/pageRouter.d.ts +0 -0
  76. /package/dist/{src/react → react}/index.d.ts +0 -0
  77. /package/dist/{src/react → react}/pageHandler.d.ts +0 -0
  78. /package/dist/{src/svelte → svelte}/index.d.ts +0 -0
  79. /package/dist/{src/svelte → svelte}/pageHandler.d.ts +0 -0
  80. /package/dist/{src/svelte → svelte}/renderToPipeableStream.d.ts +0 -0
  81. /package/dist/{src/svelte → svelte}/renderToReadableStream.d.ts +0 -0
  82. /package/dist/{src/svelte → svelte}/renderToString.d.ts +0 -0
  83. /package/dist/{src/utils → utils}/cleanup.d.ts +0 -0
  84. /package/dist/{src/utils → utils}/commonAncestor.d.ts +0 -0
  85. /package/dist/{src/utils → utils}/escapeScriptContent.d.ts +0 -0
  86. /package/dist/{src/utils → utils}/generateHeadElement.d.ts +0 -0
  87. /package/dist/{src/utils → utils}/getDurationString.d.ts +0 -0
  88. /package/dist/{src/utils → utils}/getEnv.d.ts +0 -0
  89. /package/dist/{src/utils → utils}/getRegisterClientScript.d.ts +0 -0
  90. /package/dist/{src/utils → utils}/index.d.ts +0 -0
  91. /package/dist/{src/utils → utils}/logger.d.ts +0 -0
  92. /package/dist/{src/utils → utils}/networking.d.ts +0 -0
  93. /package/dist/{src/utils → utils}/normalizePath.d.ts +0 -0
  94. /package/dist/{src/utils → utils}/registerClientScript.d.ts +0 -0
  95. /package/dist/{src/utils → utils}/ssrErrorPage.d.ts +0 -0
  96. /package/dist/{src/utils → utils}/stringModifiers.d.ts +0 -0
  97. /package/dist/{src/utils → utils}/userAgentFunctions.d.ts +0 -0
  98. /package/dist/{src/utils → utils}/validateSafePath.d.ts +0 -0
  99. /package/dist/{src/vue → vue}/index.d.ts +0 -0
  100. /package/dist/{src/vue → vue}/pageHandler.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- import type { Actions, InteractiveHandler } from '../../types/cli';
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 '../../types/cli';
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 '../../types/build';
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,4 +1,4 @@
1
- import type { BuildConfig } from '../../types/build';
1
+ import type { BuildConfig } from '../types/build';
2
2
  import { type HMRState } from '../dev/clientManager';
3
3
  export declare const devBuild: (config: BuildConfig) => Promise<{
4
4
  hmrState: HMRState;
@@ -1,7 +1,7 @@
1
1
  /* CSS reload/preload utilities for HMR */
2
2
 
3
- import type { CSSUpdateResult } from '../../../types/client';
4
- import { hmrState } from '../../../types/client';
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 '../../../types/client';
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 '../../../types/client';
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 '../../../../types/client';
16
- import { hmrState } from '../../../../types/client';
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 '../../../../types/client';
16
- import { hmrState } from '../../../../types/client';
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 '../../../types/client'; // Window global type extensions
4
+ import '../../types/client'; // Window global type extensions
5
5
 
6
- import { hmrState } from '../../../types/client';
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 '../../types/websocket';
5
- import type { BuildConfig } from '../../types/build';
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 '../../types/build';
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 '../../types/build';
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 '../../types/build';
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 '../../types/build';
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 '../../types/websocket';
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;
@@ -1,4 +1,4 @@
1
- export * from '../types';
1
+ export * from './types';
2
2
  export * from './constants';
3
3
  export * from './core';
4
4
  export * from './plugins/index';
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=05B6DFB97B78673E64756E2164756E21
3771
+ //# debugId=49F1075E01ECFCD164756E2164756E21
3772
3772
  //# sourceMappingURL=index.js.map