@absolutejs/voice 0.0.1 → 0.0.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.
- package/dist/angular/index.js +1 -1
- package/dist/{voice/src/angular → angular}/voice-stream.service.d.ts +1 -1
- package/dist/{voice/src/client → client}/createVoiceStream.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/{voice/src/react → react}/useVoiceStream.d.ts +1 -1
- package/dist/{voice/src/svelte → svelte}/createVoiceStream.d.ts +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.js +1 -1
- package/dist/{voice/src/vue → vue}/useVoiceStream.d.ts +1 -1
- package/package.json +14 -13
- package/dist/absolutejs/src/angular/angularDeps.d.ts +0 -2
- package/dist/absolutejs/src/angular/angularPatch.d.ts +0 -1
- package/dist/absolutejs/src/angular/injectorPatch.d.ts +0 -1
- package/dist/absolutejs/src/angular/islands.d.ts +0 -3
- package/dist/absolutejs/src/angular/lowerDeferSyntax.d.ts +0 -18
- package/dist/absolutejs/src/angular/lowerServerIslands.d.ts +0 -1
- package/dist/absolutejs/src/angular/pageHandler.d.ts +0 -26
- package/dist/absolutejs/src/angular/resolveAngularPackage.d.ts +0 -7
- package/dist/absolutejs/src/angular/ssrRender.d.ts +0 -16
- package/dist/absolutejs/src/angular/ssrSanitizer.d.ts +0 -3
- package/dist/absolutejs/src/build/angularLinkerPlugin.d.ts +0 -11
- package/dist/absolutejs/src/build/buildAngularVendor.d.ts +0 -4
- package/dist/absolutejs/src/build/buildDepVendor.d.ts +0 -2
- package/dist/absolutejs/src/build/buildReactVendor.d.ts +0 -8
- package/dist/absolutejs/src/build/buildSvelteVendor.d.ts +0 -6
- package/dist/absolutejs/src/build/buildVueVendor.d.ts +0 -6
- package/dist/absolutejs/src/build/compileAngular.d.ts +0 -29
- package/dist/absolutejs/src/build/compileSvelte.d.ts +0 -13
- package/dist/absolutejs/src/build/compileVue.d.ts +0 -19
- package/dist/absolutejs/src/build/generateManifest.d.ts +0 -2
- package/dist/absolutejs/src/build/generateReactIndexes.d.ts +0 -1
- package/dist/absolutejs/src/build/htmlScriptHMRPlugin.d.ts +0 -13
- package/dist/absolutejs/src/build/islandEntries.d.ts +0 -32
- package/dist/absolutejs/src/build/nativeRewrite.d.ts +0 -5
- package/dist/absolutejs/src/build/optimizeHtmlImages.d.ts +0 -2
- package/dist/absolutejs/src/build/outputLogs.d.ts +0 -1
- package/dist/absolutejs/src/build/resolvePackageImport.d.ts +0 -9
- package/dist/absolutejs/src/build/rewriteImports.d.ts +0 -7
- package/dist/absolutejs/src/build/rewriteReactImports.d.ts +0 -7
- package/dist/absolutejs/src/build/scanConventions.d.ts +0 -5
- package/dist/absolutejs/src/build/scanCssEntryPoints.d.ts +0 -1
- package/dist/absolutejs/src/build/scanEntryPoints.d.ts +0 -1
- package/dist/absolutejs/src/build/staticIslandPages.d.ts +0 -9
- package/dist/absolutejs/src/build/updateAssetPaths.d.ts +0 -1
- package/dist/absolutejs/src/build/wrapHTMLScript.d.ts +0 -17
- package/dist/absolutejs/src/cli/scripts/telemetry.d.ts +0 -5
- package/dist/absolutejs/src/cli/telemetryEvent.d.ts +0 -1
- package/dist/absolutejs/src/client/islandStore.d.ts +0 -22
- package/dist/absolutejs/src/client/streamSwap.d.ts +0 -11
- package/dist/absolutejs/src/constants.d.ts +0 -60
- package/dist/absolutejs/src/core/build.d.ts +0 -9
- package/dist/absolutejs/src/core/currentIslandRegistry.d.ts +0 -7
- package/dist/absolutejs/src/core/devBuild.d.ts +0 -6
- package/dist/absolutejs/src/core/devRouteRegistrationCallsite.d.ts +0 -2
- package/dist/absolutejs/src/core/devVendorPaths.d.ts +0 -13
- package/dist/absolutejs/src/core/index.d.ts +0 -7
- package/dist/absolutejs/src/core/islandManifest.d.ts +0 -3
- package/dist/absolutejs/src/core/islandMarkupAttributes.d.ts +0 -12
- package/dist/absolutejs/src/core/islandPageContext.d.ts +0 -12
- package/dist/absolutejs/src/core/islandSsr.d.ts +0 -6
- package/dist/absolutejs/src/core/islands.d.ts +0 -16
- package/dist/absolutejs/src/core/loadIslandRegistry.d.ts +0 -1
- package/dist/absolutejs/src/core/lookup.d.ts +0 -1
- package/dist/absolutejs/src/core/pageHandlers.d.ts +0 -6
- package/dist/absolutejs/src/core/prepare.d.ts +0 -274
- package/dist/absolutejs/src/core/prerender.d.ts +0 -31
- package/dist/absolutejs/src/core/renderIslandMarkup.d.ts +0 -13
- package/dist/absolutejs/src/core/responseEnhancers.d.ts +0 -10
- package/dist/absolutejs/src/core/staticStreaming.d.ts +0 -25
- package/dist/absolutejs/src/core/streamingSlotRegistrar.d.ts +0 -16
- package/dist/absolutejs/src/core/streamingSlotRegistry.d.ts +0 -2
- package/dist/absolutejs/src/core/streamingSlotWarningScope.d.ts +0 -4
- package/dist/absolutejs/src/core/svelteServerModule.d.ts +0 -1
- package/dist/absolutejs/src/core/wrapPageHandlerWithStreamingSlots.d.ts +0 -2
- package/dist/absolutejs/src/dev/assetStore.d.ts +0 -8
- package/dist/absolutejs/src/dev/buildHMRClient.d.ts +0 -1
- package/dist/absolutejs/src/dev/clientManager.d.ts +0 -31
- package/dist/absolutejs/src/dev/configResolver.d.ts +0 -14
- package/dist/absolutejs/src/dev/dependencyGraph.d.ts +0 -10
- package/dist/absolutejs/src/dev/devCert.d.ts +0 -11
- package/dist/absolutejs/src/dev/fileHashTracker.d.ts +0 -2
- package/dist/absolutejs/src/dev/fileWatcher.d.ts +0 -4
- package/dist/absolutejs/src/dev/moduleMapper.d.ts +0 -27
- package/dist/absolutejs/src/dev/moduleServer.d.ts +0 -21
- package/dist/absolutejs/src/dev/moduleVersionTracker.d.ts +0 -7
- package/dist/absolutejs/src/dev/pathUtils.d.ts +0 -5
- package/dist/absolutejs/src/dev/reactComponentClassifier.d.ts +0 -2
- package/dist/absolutejs/src/dev/rebuildTrigger.d.ts +0 -10
- package/dist/absolutejs/src/dev/simpleHTMLHMR.d.ts +0 -4
- package/dist/absolutejs/src/dev/simpleHTMXHMR.d.ts +0 -4
- package/dist/absolutejs/src/dev/transformCache.d.ts +0 -6
- package/dist/absolutejs/src/dev/webSocket.d.ts +0 -9
- package/dist/absolutejs/src/index.d.ts +0 -5
- package/dist/absolutejs/src/islands/pageMetadata.d.ts +0 -13
- package/dist/absolutejs/src/islands/sourceMetadata.d.ts +0 -10
- package/dist/absolutejs/src/plugins/devtoolsJson.d.ts +0 -58
- package/dist/absolutejs/src/plugins/hmr.d.ts +0 -138
- package/dist/absolutejs/src/plugins/imageOptimizer.d.ts +0 -67
- package/dist/absolutejs/src/plugins/index.d.ts +0 -3
- package/dist/absolutejs/src/plugins/networking.d.ts +0 -2
- package/dist/absolutejs/src/plugins/pageRouter.d.ts +0 -1
- package/dist/absolutejs/src/react/Island.d.ts +0 -2
- package/dist/absolutejs/src/react/bridgeInternals.d.ts +0 -1
- package/dist/absolutejs/src/react/createIsland.d.ts +0 -2
- package/dist/absolutejs/src/react/hooks/useIslandStore.d.ts +0 -3
- package/dist/absolutejs/src/react/index.d.ts +0 -4
- package/dist/absolutejs/src/react/pageHandler.d.ts +0 -21
- package/dist/absolutejs/src/svelte/lowerAwaitSlotSyntax.d.ts +0 -4
- package/dist/absolutejs/src/svelte/lowerIslandSyntax.d.ts +0 -4
- package/dist/absolutejs/src/svelte/pageHandler.d.ts +0 -23
- package/dist/absolutejs/src/svelte/renderToReadableStream.d.ts +0 -14
- package/dist/absolutejs/src/utils/cleanStaleOutputs.d.ts +0 -1
- package/dist/absolutejs/src/utils/cleanup.d.ts +0 -8
- package/dist/absolutejs/src/utils/commonAncestor.d.ts +0 -1
- package/dist/absolutejs/src/utils/defineConfig.d.ts +0 -2
- package/dist/absolutejs/src/utils/defineEnv.d.ts +0 -10
- package/dist/absolutejs/src/utils/escapeScriptContent.d.ts +0 -1
- package/dist/absolutejs/src/utils/generateHeadElement.d.ts +0 -4
- package/dist/absolutejs/src/utils/generateSitemap.d.ts +0 -6
- package/dist/absolutejs/src/utils/getDurationString.d.ts +0 -1
- package/dist/absolutejs/src/utils/getEnv.d.ts +0 -1
- package/dist/absolutejs/src/utils/imageProcessing.d.ts +0 -33
- package/dist/absolutejs/src/utils/index.d.ts +0 -9
- package/dist/absolutejs/src/utils/jsonLd.d.ts +0 -2
- package/dist/absolutejs/src/utils/loadConfig.d.ts +0 -1
- package/dist/absolutejs/src/utils/logger.d.ts +0 -55
- package/dist/absolutejs/src/utils/networking.d.ts +0 -2
- package/dist/absolutejs/src/utils/normalizePath.d.ts +0 -9
- package/dist/absolutejs/src/utils/registerClientScript.d.ts +0 -36
- package/dist/absolutejs/src/utils/resolveConvention.d.ts +0 -9
- package/dist/absolutejs/src/utils/ssrErrorPage.d.ts +0 -1
- package/dist/absolutejs/src/utils/startupBanner.d.ts +0 -9
- package/dist/absolutejs/src/utils/streamingSlotMetricSink.d.ts +0 -18
- package/dist/absolutejs/src/utils/streamingSlots.d.ts +0 -76
- package/dist/absolutejs/src/utils/stringModifiers.d.ts +0 -3
- package/dist/absolutejs/src/utils/validateSafePath.d.ts +0 -1
- package/dist/absolutejs/src/vue/pageHandler.d.ts +0 -29
- package/dist/absolutejs/types/ai.d.ts +0 -4631
- package/dist/absolutejs/types/angular.d.ts +0 -29
- package/dist/absolutejs/types/build.d.ts +0 -67
- package/dist/absolutejs/types/cli.d.ts +0 -19
- package/dist/absolutejs/types/client.d.ts +0 -65
- package/dist/absolutejs/types/conventions.d.ts +0 -20
- package/dist/absolutejs/types/env.d.ts +0 -2
- package/dist/absolutejs/types/image.d.ts +0 -77
- package/dist/absolutejs/types/index.d.ts +0 -19
- package/dist/absolutejs/types/island.d.ts +0 -48
- package/dist/absolutejs/types/jsonLd.d.ts +0 -271
- package/dist/absolutejs/types/messages.d.ts +0 -144
- package/dist/absolutejs/types/metadata.d.ts +0 -49
- package/dist/absolutejs/types/react.d.ts +0 -2
- package/dist/absolutejs/types/session.d.ts +0 -16
- package/dist/absolutejs/types/sitemap.d.ts +0 -14
- package/dist/absolutejs/types/svelte.d.ts +0 -2
- package/dist/absolutejs/types/telemetry.d.ts +0 -15
- package/dist/absolutejs/types/tool.d.ts +0 -11
- package/dist/absolutejs/types/typeGuards.d.ts +0 -5
- package/dist/absolutejs/types/vue.d.ts +0 -14
- package/dist/absolutejs/types/websocket.d.ts +0 -6
- /package/dist/{voice/src/angular → angular}/index.d.ts +0 -0
- /package/dist/{voice/src/client → client}/actions.d.ts +0 -0
- /package/dist/{voice/src/client → client}/connection.d.ts +0 -0
- /package/dist/{voice/src/client → client}/index.d.ts +0 -0
- /package/dist/{voice/src/client → client}/microphone.d.ts +0 -0
- /package/dist/{voice/src/client → client}/store.d.ts +0 -0
- /package/dist/{voice/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{voice/src/logger.d.ts → logger.d.ts} +0 -0
- /package/dist/{voice/src/memoryStore.d.ts → memoryStore.d.ts} +0 -0
- /package/dist/{voice/src/plugin.d.ts → plugin.d.ts} +0 -0
- /package/dist/{voice/src/react → react}/index.d.ts +0 -0
- /package/dist/{voice/src/session.d.ts → session.d.ts} +0 -0
- /package/dist/{voice/src/store.d.ts → store.d.ts} +0 -0
- /package/dist/{voice/src/svelte → svelte}/index.d.ts +0 -0
- /package/dist/{voice/src/turnDetection.d.ts → turnDetection.d.ts} +0 -0
- /package/dist/{voice/src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{voice/src/vue → vue}/index.d.ts +0 -0
package/dist/angular/index.js
CHANGED
|
@@ -366,6 +366,7 @@ var createVoiceStreamStore = () => {
|
|
|
366
366
|
state = {
|
|
367
367
|
...state,
|
|
368
368
|
error: null,
|
|
369
|
+
isConnected: action.status === "active",
|
|
369
370
|
sessionId: action.sessionId,
|
|
370
371
|
status: action.status
|
|
371
372
|
};
|
|
@@ -408,7 +409,6 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
408
409
|
notify();
|
|
409
410
|
}
|
|
410
411
|
});
|
|
411
|
-
store.dispatch({ type: "connected" });
|
|
412
412
|
return {
|
|
413
413
|
close() {
|
|
414
414
|
unsubscribeConnection();
|
|
@@ -9,7 +9,7 @@ export declare class VoiceStreamService {
|
|
|
9
9
|
partial: import("@angular/core").Signal<string>;
|
|
10
10
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
11
11
|
sessionId: import("@angular/core").Signal<string>;
|
|
12
|
-
status: import("@angular/core").Signal<
|
|
12
|
+
status: import("@angular/core").Signal<import("..").VoiceSessionStatus | "idle">;
|
|
13
13
|
turns: import("@angular/core").Signal<VoiceTurnRecord<TResult>[]>;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -6,7 +6,7 @@ export declare const createVoiceStream: <TResult = unknown>(path: string, option
|
|
|
6
6
|
readonly isConnected: boolean;
|
|
7
7
|
readonly partial: string;
|
|
8
8
|
readonly sessionId: string;
|
|
9
|
-
readonly status:
|
|
9
|
+
readonly status: import("..").VoiceSessionStatus | "idle";
|
|
10
10
|
readonly turns: import("..").VoiceTurnRecord<TResult>[];
|
|
11
11
|
readonly assistantTexts: string[];
|
|
12
12
|
sendAudio(audio: Uint8Array | ArrayBuffer): void;
|
package/dist/client/index.js
CHANGED
|
@@ -362,6 +362,7 @@ var createVoiceStreamStore = () => {
|
|
|
362
362
|
state = {
|
|
363
363
|
...state,
|
|
364
364
|
error: null,
|
|
365
|
+
isConnected: action.status === "active",
|
|
365
366
|
sessionId: action.sessionId,
|
|
366
367
|
status: action.status
|
|
367
368
|
};
|
|
@@ -404,7 +405,6 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
404
405
|
notify();
|
|
405
406
|
}
|
|
406
407
|
});
|
|
407
|
-
store.dispatch({ type: "connected" });
|
|
408
408
|
return {
|
|
409
409
|
close() {
|
|
410
410
|
unsubscribeConnection();
|
package/dist/react/index.js
CHANGED
|
@@ -366,6 +366,7 @@ var createVoiceStreamStore = () => {
|
|
|
366
366
|
state = {
|
|
367
367
|
...state,
|
|
368
368
|
error: null,
|
|
369
|
+
isConnected: action.status === "active",
|
|
369
370
|
sessionId: action.sessionId,
|
|
370
371
|
status: action.status
|
|
371
372
|
};
|
|
@@ -408,7 +409,6 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
408
409
|
notify();
|
|
409
410
|
}
|
|
410
411
|
});
|
|
411
|
-
store.dispatch({ type: "connected" });
|
|
412
412
|
return {
|
|
413
413
|
close() {
|
|
414
414
|
unsubscribeConnection();
|
|
@@ -8,6 +8,6 @@ export declare const useVoiceStream: <TResult = unknown>(path: string, options?:
|
|
|
8
8
|
isConnected: boolean;
|
|
9
9
|
partial: string;
|
|
10
10
|
sessionId: string;
|
|
11
|
-
status:
|
|
11
|
+
status: import("..").VoiceSessionStatus | "idle";
|
|
12
12
|
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
13
13
|
};
|
|
@@ -6,7 +6,7 @@ export declare const createVoiceStream: <TResult = unknown>(path: string, option
|
|
|
6
6
|
readonly isConnected: boolean;
|
|
7
7
|
readonly partial: string;
|
|
8
8
|
readonly sessionId: string;
|
|
9
|
-
readonly status:
|
|
9
|
+
readonly status: import("..").VoiceSessionStatus | "idle";
|
|
10
10
|
readonly turns: import("..").VoiceTurnRecord<TResult>[];
|
|
11
11
|
readonly assistantTexts: string[];
|
|
12
12
|
sendAudio(audio: Uint8Array | ArrayBuffer): void;
|
package/dist/svelte/index.js
CHANGED
|
@@ -363,6 +363,7 @@ var createVoiceStreamStore = () => {
|
|
|
363
363
|
state = {
|
|
364
364
|
...state,
|
|
365
365
|
error: null,
|
|
366
|
+
isConnected: action.status === "active",
|
|
366
367
|
sessionId: action.sessionId,
|
|
367
368
|
status: action.status
|
|
368
369
|
};
|
|
@@ -405,7 +406,6 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
405
406
|
notify();
|
|
406
407
|
}
|
|
407
408
|
});
|
|
408
|
-
store.dispatch({ type: "connected" });
|
|
409
409
|
return {
|
|
410
410
|
close() {
|
|
411
411
|
unsubscribeConnection();
|
package/dist/vue/index.js
CHANGED
|
@@ -366,6 +366,7 @@ var createVoiceStreamStore = () => {
|
|
|
366
366
|
state = {
|
|
367
367
|
...state,
|
|
368
368
|
error: null,
|
|
369
|
+
isConnected: action.status === "active",
|
|
369
370
|
sessionId: action.sessionId,
|
|
370
371
|
status: action.status
|
|
371
372
|
};
|
|
@@ -408,7 +409,6 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
408
409
|
notify();
|
|
409
410
|
}
|
|
410
411
|
});
|
|
411
|
-
store.dispatch({ type: "connected" });
|
|
412
412
|
return {
|
|
413
413
|
close() {
|
|
414
414
|
unsubscribeConnection();
|
|
@@ -8,6 +8,6 @@ export declare const useVoiceStream: <TResult = unknown>(path: string, options?:
|
|
|
8
8
|
partial: import("vue").Ref<string, string>;
|
|
9
9
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
10
10
|
sessionId: import("vue").Ref<string, string>;
|
|
11
|
-
status: import("vue").Ref<
|
|
11
|
+
status: import("vue").Ref<import("..").VoiceSessionStatus | "idle", import("..").VoiceSessionStatus | "idle">;
|
|
12
12
|
turns: import("vue").ShallowRef<VoiceTurnRecord<TResult>[], VoiceTurnRecord<TResult>[]>;
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/voice",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Voice primitives and Elysia plugin for AbsoluteJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"README.md"
|
|
12
12
|
],
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
|
-
"types": "./dist/
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
15
|
"license": "CC BY-NC 4.0",
|
|
16
16
|
"author": "Alex Kahn",
|
|
17
17
|
"scripts": {
|
|
@@ -25,48 +25,48 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"import": "./dist/index.js",
|
|
28
|
-
"types": "./dist/
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
29
29
|
},
|
|
30
30
|
"./client": {
|
|
31
31
|
"browser": "./dist/client/index.js",
|
|
32
32
|
"import": "./dist/client/index.js",
|
|
33
|
-
"types": "./dist/
|
|
33
|
+
"types": "./dist/client/index.d.ts"
|
|
34
34
|
},
|
|
35
35
|
"./react": {
|
|
36
36
|
"browser": "./dist/react/index.js",
|
|
37
37
|
"import": "./dist/react/index.js",
|
|
38
|
-
"types": "./dist/
|
|
38
|
+
"types": "./dist/react/index.d.ts"
|
|
39
39
|
},
|
|
40
40
|
"./vue": {
|
|
41
41
|
"browser": "./dist/vue/index.js",
|
|
42
42
|
"import": "./dist/vue/index.js",
|
|
43
|
-
"types": "./dist/
|
|
43
|
+
"types": "./dist/vue/index.d.ts"
|
|
44
44
|
},
|
|
45
45
|
"./svelte": {
|
|
46
46
|
"import": "./dist/svelte/index.js",
|
|
47
|
-
"types": "./dist/
|
|
47
|
+
"types": "./dist/svelte/index.d.ts"
|
|
48
48
|
},
|
|
49
49
|
"./angular": {
|
|
50
50
|
"import": "./dist/angular/index.js",
|
|
51
|
-
"types": "./dist/
|
|
51
|
+
"types": "./dist/angular/index.d.ts"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"typesVersions": {
|
|
55
55
|
"*": {
|
|
56
56
|
"client": [
|
|
57
|
-
"dist/
|
|
57
|
+
"dist/client/index.d.ts"
|
|
58
58
|
],
|
|
59
59
|
"react": [
|
|
60
|
-
"dist/
|
|
60
|
+
"dist/react/index.d.ts"
|
|
61
61
|
],
|
|
62
62
|
"svelte": [
|
|
63
|
-
"dist/
|
|
63
|
+
"dist/svelte/index.d.ts"
|
|
64
64
|
],
|
|
65
65
|
"vue": [
|
|
66
|
-
"dist/
|
|
66
|
+
"dist/vue/index.d.ts"
|
|
67
67
|
],
|
|
68
68
|
"angular": [
|
|
69
|
-
"dist/
|
|
69
|
+
"dist/angular/index.d.ts"
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
},
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
+
"@absolutejs/absolute": "0.19.0-beta.646",
|
|
92
93
|
"@angular/core": "^21.0.0",
|
|
93
94
|
"@types/bun": "1.3.9",
|
|
94
95
|
"@types/react": "19.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const applyPatches: () => Promise<boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const patchAngularInjectorSingleton: () => void;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const getAngularIslandSelector: (_islandId: string) => string;
|
|
2
|
-
export declare const mountAngularIsland: <Props extends Record<string, unknown>>(component: import("@angular/core").Type<object>, element: HTMLElement, props: Props, islandId: string) => Promise<import("@angular/core").ApplicationRef>;
|
|
3
|
-
export declare const renderAngularIslandToHtml: <Props extends Record<string, unknown>>(component: import("@angular/core").Type<object>, props: Props, islandId: string) => Promise<string>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type LoweredAngularDeferSlot = {
|
|
2
|
-
delayMs: number;
|
|
3
|
-
errorHtml: string | null;
|
|
4
|
-
fallbackHtml: string;
|
|
5
|
-
id: string;
|
|
6
|
-
resolvedBindings: Array<{
|
|
7
|
-
expression: string;
|
|
8
|
-
key: string;
|
|
9
|
-
}>;
|
|
10
|
-
resolvedHtml: string;
|
|
11
|
-
resolvedTemplate: string;
|
|
12
|
-
};
|
|
13
|
-
export type LoweredAngularDeferResult = {
|
|
14
|
-
slots: LoweredAngularDeferSlot[];
|
|
15
|
-
template: string;
|
|
16
|
-
transformed: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare const lowerAngularDeferSyntax: (template: string) => LoweredAngularDeferResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const lowerAngularServerIslands: (html: string) => Promise<string>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { AngularPageImporter, AngularPagePropsOf } from '../../types/angular';
|
|
2
|
-
import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
|
|
3
|
-
type AngularPageRenderOptions = StreamingSlotEnhancerOptions & {
|
|
4
|
-
collectStreamingSlots?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type AngularPageRequestInput<Page = {
|
|
7
|
-
factory: (props: Record<never, never>) => unknown;
|
|
8
|
-
}> = AngularPageRenderOptions & {
|
|
9
|
-
headTag?: `<head>${string}</head>`;
|
|
10
|
-
indexPath: string;
|
|
11
|
-
pagePath: string;
|
|
12
|
-
} & (keyof AngularPagePropsOf<Page> extends never ? {
|
|
13
|
-
props?: NoInfer<AngularPagePropsOf<Page>>;
|
|
14
|
-
} : {
|
|
15
|
-
props: NoInfer<AngularPagePropsOf<Page>>;
|
|
16
|
-
});
|
|
17
|
-
export type HandleAngularPageRequest = {
|
|
18
|
-
<Page = {
|
|
19
|
-
factory: (props: Record<never, never>) => unknown;
|
|
20
|
-
}>(input: AngularPageRequestInput<Page>): Promise<Response>;
|
|
21
|
-
<Props extends Record<string, unknown> = Record<never, never>>(Page: AngularPageImporter<Props>, pagePath: string, indexPath: string, headTag: `<head>${string}</head>` | undefined, ...args: AngularPageHandlerArgs<Props>): Promise<Response>;
|
|
22
|
-
};
|
|
23
|
-
type AngularPageHandlerArgs<Props extends Record<string, unknown>> = keyof Props extends never ? [props?: NoInfer<Props>, options?: AngularPageRenderOptions] : [props: NoInfer<Props>, options?: AngularPageRenderOptions];
|
|
24
|
-
export declare const invalidateAngularSsrCache: () => void;
|
|
25
|
-
export declare const handleAngularPageRequest: HandleAngularPageRequest;
|
|
26
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolve an Angular package path from process.cwd()/node_modules/ first,
|
|
3
|
-
* falling back to the bare specifier. This prevents Bun's baked import.meta.dir
|
|
4
|
-
* from resolving Angular packages from the absolutejs source tree instead of
|
|
5
|
-
* the consumer's project when running from a published npm package.
|
|
6
|
-
*/
|
|
7
|
-
export declare const resolveAngularPackage: (specifier: string) => string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { EnvironmentProviders, Provider, Type } from '@angular/core';
|
|
2
|
-
import type { AngularDeps, CachedRouteData, SsrDepsResult } from '../../types/angular';
|
|
3
|
-
export declare const cacheRouteData: (pagePath: string, data: CachedRouteData) => void;
|
|
4
|
-
export declare const getCachedRouteData: (pagePath: string) => CachedRouteData | undefined;
|
|
5
|
-
export declare const buildDeps: (ssrResult: SsrDepsResult | null, baseDeps: AngularDeps) => AngularDeps;
|
|
6
|
-
export declare const buildProviders: (deps: AngularDeps, sanitizer: InstanceType<AngularDeps["DomSanitizer"]>, maybeProps: Record<string, unknown> | undefined, tokenMap: Map<string, unknown>) => (Provider | EnvironmentProviders | {
|
|
7
|
-
provide: unknown;
|
|
8
|
-
useValue: unknown;
|
|
9
|
-
})[];
|
|
10
|
-
export declare const clearSelectorCache: () => void;
|
|
11
|
-
export declare const discoverTokens: (pageModule: Record<string, unknown>) => Map<string, unknown>;
|
|
12
|
-
export declare const loadSsrDeps: (pagePath: string) => Promise<SsrDepsResult | null>;
|
|
13
|
-
export declare const resolveSelector: (deps: AngularDeps, pagePath: string, PageComponent: Type<unknown>) => string;
|
|
14
|
-
export declare const injectSsrScripts: (html: string, requestId: string, indexPath: string, props?: Record<string, unknown>) => string;
|
|
15
|
-
export declare const renderAngularApp: (deps: AngularDeps, PageComponent: Type<unknown>, providers: (Provider | EnvironmentProviders)[], document: string | Document) => Promise<string>;
|
|
16
|
-
export declare const withSuppressedAngularDevLogs: <T>(render: () => Promise<T>) => Promise<T>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BunPlugin } from 'bun';
|
|
2
|
-
/**
|
|
3
|
-
* Bun bundler plugin that runs the Angular Linker on partially compiled
|
|
4
|
-
* Angular libraries at build time. Converts ɵɵngDeclare* declarations
|
|
5
|
-
* into fully AOT-compiled code so @angular/compiler is not shipped to
|
|
6
|
-
* the browser.
|
|
7
|
-
*
|
|
8
|
-
* Uses a disk cache keyed by file content hash — Babel only runs once
|
|
9
|
-
* per Angular package version. Subsequent builds are pure file reads.
|
|
10
|
-
*/
|
|
11
|
-
export declare const angularLinkerPlugin: BunPlugin;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Compute the deterministic vendor paths mapping (no build needed).
|
|
2
|
-
* This can be called before vendor files exist on disk. */
|
|
3
|
-
export declare const buildAngularVendor: (buildDir: string) => Promise<void>;
|
|
4
|
-
export declare const computeAngularVendorPaths: () => Record<string, string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Compute the deterministic vendor paths mapping (no build needed).
|
|
2
|
-
* This can be called before vendor files exist on disk. */
|
|
3
|
-
export declare const computeVendorPaths: () => Record<string, string>;
|
|
4
|
-
/** Build React packages into stable vendor files (no content hash).
|
|
5
|
-
* Output goes to {buildDir}/react/vendor/ with predictable names like
|
|
6
|
-
* react.js, react-dom_client.js, etc. These files never change between
|
|
7
|
-
* rebuilds, so the browser always loads React from a single source. */
|
|
8
|
-
export declare const buildReactVendor: (buildDir: string) => Promise<void>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Build Svelte packages into stable vendor files (no content hash).
|
|
2
|
-
* Output goes to {buildDir}/svelte/vendor/ with predictable names. */
|
|
3
|
-
export declare const buildSvelteVendor: (buildDir: string) => Promise<void>;
|
|
4
|
-
/** Compute the deterministic vendor paths mapping (no build needed).
|
|
5
|
-
* This can be called before vendor files exist on disk. */
|
|
6
|
-
export declare const computeSvelteVendorPaths: () => Record<string, string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Build Vue packages into stable vendor files (no content hash).
|
|
2
|
-
* Output goes to {buildDir}/vue/vendor/ with predictable names. */
|
|
3
|
-
export declare const buildVueVendor: (buildDir: string) => Promise<void>;
|
|
4
|
-
/** Compute the deterministic vendor paths mapping (no build needed).
|
|
5
|
-
* This can be called before vendor files exist on disk. */
|
|
6
|
-
export declare const computeVueVendorPaths: () => Record<string, string>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { CompilerOptions } from '@angular/compiler-cli';
|
|
2
|
-
import ts from 'typescript';
|
|
3
|
-
type AngularCompilerCache = {
|
|
4
|
-
host: ts.CompilerHost;
|
|
5
|
-
options: CompilerOptions;
|
|
6
|
-
configHash: string;
|
|
7
|
-
tsLibDir: string;
|
|
8
|
-
lastUsed: number;
|
|
9
|
-
};
|
|
10
|
-
declare global {
|
|
11
|
-
var __angularCompilerCache: AngularCompilerCache | undefined;
|
|
12
|
-
}
|
|
13
|
-
export declare const compileAngularFile: (inputPath: string, outDir: string) => Promise<string[]>;
|
|
14
|
-
/** Angular HMR Runtime Layer (Level 3) — JIT-mode compilation for dev/HMR builds.
|
|
15
|
-
* Uses ts.transpileModule() instead of Angular AOT performCompilation().
|
|
16
|
-
* Inlines templateUrl → template and styleUrls → styles from disk.
|
|
17
|
-
* Recursively transpiles all local imports so Bun's bundler can resolve them.
|
|
18
|
-
* ~50-100ms for a tree of ~10 files vs ~500-700ms for AOT. */
|
|
19
|
-
export declare const compileAngularFileJIT: (inputPath: string, outDir: string, rootDir?: string) => Promise<string[]>;
|
|
20
|
-
export declare const compileAngular: (entryPoints: string[], outRoot: string, hmr?: boolean) => Promise<{
|
|
21
|
-
clientPaths: string[];
|
|
22
|
-
serverPaths: string[];
|
|
23
|
-
allIndexesUnchanged?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
allIndexesUnchanged: boolean;
|
|
26
|
-
clientPaths: string[];
|
|
27
|
-
serverPaths: string[];
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type Built = {
|
|
2
|
-
ssr: string;
|
|
3
|
-
client: string;
|
|
4
|
-
hasAwaitSlot: boolean;
|
|
5
|
-
};
|
|
6
|
-
type Cache = Map<string, Built>;
|
|
7
|
-
export declare const clearSvelteCompilerCache: () => void;
|
|
8
|
-
export declare const compileSvelte: (entryPoints: string[], svelteRoot: string, cache?: Cache, isDev?: boolean) => Promise<{
|
|
9
|
-
svelteClientPaths: string[];
|
|
10
|
-
svelteIndexPaths: string[];
|
|
11
|
-
svelteServerPaths: string[];
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { SFCDescriptor } from '@vue/compiler-sfc';
|
|
2
|
-
export type VueChangeType = 'style-only' | 'template-only' | 'script' | 'full';
|
|
3
|
-
export declare const vueHmrMetadata: Map<string, {
|
|
4
|
-
hmrId: string;
|
|
5
|
-
changeType: VueChangeType;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const clearVueHmrCaches: () => void;
|
|
8
|
-
export declare const detectVueChangeType: (filePath: string, descriptor: SFCDescriptor) => "script" | "style-only" | "template-only" | "full";
|
|
9
|
-
export declare const generateVueHmrId: (sourceFilePath: string, vueRootDir: string) => string;
|
|
10
|
-
export declare const compileVue: (entryPoints: string[], vueRootDir: string, isDev?: boolean) => Promise<{
|
|
11
|
-
hmrMetadata: Map<string, {
|
|
12
|
-
hmrId: string;
|
|
13
|
-
changeType: VueChangeType;
|
|
14
|
-
}>;
|
|
15
|
-
vueClientPaths: string[];
|
|
16
|
-
vueCssPaths: string[];
|
|
17
|
-
vueIndexPaths: string[];
|
|
18
|
-
vueServerPaths: string[];
|
|
19
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateReactIndexFiles: (reactPagesDirectory: string, reactIndexesDirectory: string, isDev?: boolean) => Promise<void>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bun build plugin that wraps HTML/HTMX scripts with import.meta.hot support
|
|
3
|
-
* for granular HMR. This allows script changes to hot-reload independently
|
|
4
|
-
* without triggering a full HTML page rebuild.
|
|
5
|
-
*/
|
|
6
|
-
import type { BunPlugin } from 'bun';
|
|
7
|
-
/**
|
|
8
|
-
* Creates a Bun build plugin that wraps HTML/HTMX scripts with HMR support
|
|
9
|
-
* @param htmlDir - The HTML directory path (normalized with forward slashes)
|
|
10
|
-
* @param htmxDir - The HTMX directory path (normalized with forward slashes)
|
|
11
|
-
* @returns Bun build plugin
|
|
12
|
-
*/
|
|
13
|
-
export declare const createHTMLScriptHMRPlugin: (htmlDir?: string, htmxDir?: string) => BunPlugin;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { IslandFramework, IslandRegistryInput } from '../../types/island';
|
|
2
|
-
type IslandBuildEntry = {
|
|
3
|
-
component: string;
|
|
4
|
-
entryPath: string;
|
|
5
|
-
framework: IslandFramework;
|
|
6
|
-
};
|
|
7
|
-
type IslandDefinition = {
|
|
8
|
-
buildReference: {
|
|
9
|
-
export?: string;
|
|
10
|
-
source: string;
|
|
11
|
-
} | null;
|
|
12
|
-
component: string;
|
|
13
|
-
framework: IslandFramework;
|
|
14
|
-
};
|
|
15
|
-
type IslandRegistryBuildInfo = {
|
|
16
|
-
definitions: IslandDefinition[];
|
|
17
|
-
hasNamedExport: boolean;
|
|
18
|
-
registry: IslandRegistryInput;
|
|
19
|
-
resolvedRegistryPath: string;
|
|
20
|
-
};
|
|
21
|
-
type IslandEntryPathMaps = Partial<Record<IslandFramework, Map<string, string>>>;
|
|
22
|
-
export declare const collectIslandFrameworkSources: (buildInfo: IslandRegistryBuildInfo) => Partial<Record<IslandFramework, string[]>>;
|
|
23
|
-
export declare const generateIslandEntryPoints: ({ buildInfo, buildPath, clientPathMaps }: {
|
|
24
|
-
buildInfo: IslandRegistryBuildInfo;
|
|
25
|
-
buildPath: string;
|
|
26
|
-
clientPathMaps?: IslandEntryPathMaps;
|
|
27
|
-
}) => Promise<{
|
|
28
|
-
entries: IslandBuildEntry[];
|
|
29
|
-
generatedRoot: string;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const loadIslandRegistryBuildInfo: (registryPath: string) => Promise<IslandRegistryBuildInfo>;
|
|
32
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Native Zig import rewriter — 15x faster than JS regex on large files.
|
|
2
|
-
* Falls back to JS if the native addon isn't available (Windows, missing .so). */
|
|
3
|
-
/** Rewrite import specifiers in a string using the native Zig scanner.
|
|
4
|
-
* Returns the rewritten string, or null if native isn't available. */
|
|
5
|
-
export declare const nativeRewriteImports: (content: string, replacements: [string, string][]) => string | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const outputLogs: (logs: (BuildMessage | ResolveMessage)[]) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolve a bare module import (e.g. "@absolutejs/absolute/svelte/components/Image.svelte")
|
|
3
|
-
* to an absolute file path by reading the package's exports map in package.json.
|
|
4
|
-
*
|
|
5
|
-
* Returns the resolved absolute path, or null if the import can't be resolved.
|
|
6
|
-
*/
|
|
7
|
-
type ExportConditions = 'browser' | 'import';
|
|
8
|
-
export declare const resolvePackageImport: (specifier: string, conditions?: ExportConditions[]) => string | null;
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Post-process bundled output files to rewrite bare specifiers
|
|
2
|
-
* (e.g. `from "@angular/core"`) to stable vendor paths
|
|
3
|
-
* (e.g. `from "/angular/vendor/angular_core.js"`).
|
|
4
|
-
*
|
|
5
|
-
* Uses native Zig scanner (15x faster) when available, falls back
|
|
6
|
-
* to JS regex on Windows or when the native addon is missing. */
|
|
7
|
-
export declare const rewriteImports: (outputPaths: string[], vendorPaths: Record<string, string>) => Promise<void>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Post-process bundled output files to rewrite bare React specifiers
|
|
2
|
-
* (e.g. `from "react"`) to stable vendor paths (e.g. `from "/vendor/react.js"`).
|
|
3
|
-
*
|
|
4
|
-
* Uses native Zig scanner when available (15x faster on large files),
|
|
5
|
-
* falls back to JS regex on Windows or when native addon is missing. */
|
|
6
|
-
export declare const patchRefreshGlobals: (outputPaths: string[]) => Promise<void>;
|
|
7
|
-
export declare const rewriteReactImports: (outputPaths: string[], vendorPaths: Record<string, string>) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const scanCssEntryPoints: (dir: string, ignore?: string[]) => Promise<string[]>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const scanEntryPoints: (dir: string, pattern: string) => Promise<string[]>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IslandRegistryInput } from '../../types/island';
|
|
2
|
-
export declare const transformStaticPageHtml: (originalHtml: string, registry: IslandRegistryInput) => Promise<string>;
|
|
3
|
-
export declare const transformStaticHTMXStreamSlotHtml: (originalHtml: string) => string;
|
|
4
|
-
export declare const transformStaticStreamingSlotHtml: (originalHtml: string) => string;
|
|
5
|
-
export declare const transformCurrentStaticPageHtml: (html: string, options?: {
|
|
6
|
-
enableHTMXStreaming?: boolean;
|
|
7
|
-
enableStaticStreaming?: boolean;
|
|
8
|
-
}) => Promise<string>;
|
|
9
|
-
export declare const transformStaticPagesWithIslands: (registryPath: string | undefined, pagePaths: string[]) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const updateAssetPaths: (manifest: Record<string, string>, directory: string) => Promise<void>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wraps HTML/HTMX TypeScript/JavaScript scripts with import.meta.hot support
|
|
3
|
-
* for granular HMR updates. This allows script changes to hot-reload
|
|
4
|
-
* without triggering a full HTML page rebuild.
|
|
5
|
-
*
|
|
6
|
-
* The wrapper is minimal - it just adds import.meta.hot.accept() so Bun
|
|
7
|
-
* knows this module can be hot-reloaded. Event listener cleanup is handled
|
|
8
|
-
* by the HMR client (cloning elements before script re-execution).
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Wrap a script with HMR support using Bun's import.meta.hot API
|
|
12
|
-
* @param code - The original script code
|
|
13
|
-
* @param scriptId - Unique identifier for this script (usually the file path)
|
|
14
|
-
* @returns Wrapped code with HMR support
|
|
15
|
-
*/
|
|
16
|
-
export declare const isHTMLScript: (filePath: string, htmlDir?: string, htmxDir?: string) => boolean;
|
|
17
|
-
export declare const wrapHTMLScriptWithHMR: (code: string, scriptId: string) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { TelemetryConfig } from '../../../types/telemetry';
|
|
2
|
-
export declare const getTelemetryConfig: () => TelemetryConfig | null;
|
|
3
|
-
export declare const isTelemetryEnabled: () => boolean;
|
|
4
|
-
export declare const saveTelemetryConfig: (config: TelemetryConfig) => void;
|
|
5
|
-
export declare const telemetry: (args: string[]) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sendTelemetryEvent: (event: string, payload: Record<string, unknown>) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type StateCreator, type StoreApi } from 'zustand/vanilla';
|
|
2
|
-
export type IslandStoreState = object;
|
|
3
|
-
type IslandStoreSnapshot = Record<string, unknown>;
|
|
4
|
-
export type IslandStateSnapshot = Record<string, IslandStoreSnapshot>;
|
|
5
|
-
type AnyIslandStore = StoreApi<object>;
|
|
6
|
-
type IslandStoreInstance = {
|
|
7
|
-
applyExternalSnapshot: (snapshot: IslandStoreSnapshot) => void;
|
|
8
|
-
store: AnyIslandStore;
|
|
9
|
-
};
|
|
10
|
-
declare const ABSOLUTE_ISLAND_STATE = "__ABS_ISLAND_STATE__";
|
|
11
|
-
declare const ABSOLUTE_ISLAND_STORES = "__ABS_ISLAND_STORES__";
|
|
12
|
-
declare global {
|
|
13
|
-
var __ABS_ISLAND_STATE__: IslandStateSnapshot | undefined;
|
|
14
|
-
var __ABS_ISLAND_STORES__: Map<string, Set<IslandStoreInstance>> | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare const createIslandStore: <TState extends IslandStoreState, TActions extends object>(storeId: string, initialState: TState, createState: StateCreator<TState, [], [], TActions>) => StoreApi<Omit<TState, keyof TActions> & TActions>;
|
|
17
|
-
export declare const getIslandStoreServerSnapshot: <TState extends IslandStoreState, TSelected>(store: StoreApi<TState>, selector: (state: TState) => TSelected) => TSelected;
|
|
18
|
-
export declare const initializeIslandStores: (state: IslandStateSnapshot) => void;
|
|
19
|
-
export declare const readIslandStore: <TState extends IslandStoreState, TSelected>(store: StoreApi<TState>, selector: (state: TState) => TSelected) => TSelected;
|
|
20
|
-
export declare const resetIslandStoreForTesting: () => void;
|
|
21
|
-
export declare const subscribeIslandStore: <TState extends IslandStoreState, TSelected>(store: StoreApi<TState>, selector: (state: TState) => TSelected, listener: (value: TSelected) => void) => () => void;
|
|
22
|
-
export { ABSOLUTE_ISLAND_STATE, ABSOLUTE_ISLAND_STORES };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Window {
|
|
3
|
-
__ABS_SLOT_ENQUEUE__?: (id: string, payload: unknown) => void;
|
|
4
|
-
__ABS_SLOT_FLUSH__?: () => void;
|
|
5
|
-
__ABS_SLOT_CONSUMERS__?: Record<string, ((payload: unknown) => boolean | void) | undefined>;
|
|
6
|
-
__ABS_SLOT_HYDRATION_PENDING__?: boolean;
|
|
7
|
-
__ABS_SLOT_PENDING__?: Record<string, unknown>;
|
|
8
|
-
__ABS_SLOT_RUNTIME__?: boolean;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const getStreamSwapRuntimeScript: () => string;
|