@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.
Files changed (177) hide show
  1. package/dist/angular/index.js +1 -1
  2. package/dist/{voice/src/angular → angular}/voice-stream.service.d.ts +1 -1
  3. package/dist/{voice/src/client → client}/createVoiceStream.d.ts +1 -1
  4. package/dist/client/index.js +1 -1
  5. package/dist/react/index.js +1 -1
  6. package/dist/{voice/src/react → react}/useVoiceStream.d.ts +1 -1
  7. package/dist/{voice/src/svelte → svelte}/createVoiceStream.d.ts +1 -1
  8. package/dist/svelte/index.js +1 -1
  9. package/dist/vue/index.js +1 -1
  10. package/dist/{voice/src/vue → vue}/useVoiceStream.d.ts +1 -1
  11. package/package.json +14 -13
  12. package/dist/absolutejs/src/angular/angularDeps.d.ts +0 -2
  13. package/dist/absolutejs/src/angular/angularPatch.d.ts +0 -1
  14. package/dist/absolutejs/src/angular/injectorPatch.d.ts +0 -1
  15. package/dist/absolutejs/src/angular/islands.d.ts +0 -3
  16. package/dist/absolutejs/src/angular/lowerDeferSyntax.d.ts +0 -18
  17. package/dist/absolutejs/src/angular/lowerServerIslands.d.ts +0 -1
  18. package/dist/absolutejs/src/angular/pageHandler.d.ts +0 -26
  19. package/dist/absolutejs/src/angular/resolveAngularPackage.d.ts +0 -7
  20. package/dist/absolutejs/src/angular/ssrRender.d.ts +0 -16
  21. package/dist/absolutejs/src/angular/ssrSanitizer.d.ts +0 -3
  22. package/dist/absolutejs/src/build/angularLinkerPlugin.d.ts +0 -11
  23. package/dist/absolutejs/src/build/buildAngularVendor.d.ts +0 -4
  24. package/dist/absolutejs/src/build/buildDepVendor.d.ts +0 -2
  25. package/dist/absolutejs/src/build/buildReactVendor.d.ts +0 -8
  26. package/dist/absolutejs/src/build/buildSvelteVendor.d.ts +0 -6
  27. package/dist/absolutejs/src/build/buildVueVendor.d.ts +0 -6
  28. package/dist/absolutejs/src/build/compileAngular.d.ts +0 -29
  29. package/dist/absolutejs/src/build/compileSvelte.d.ts +0 -13
  30. package/dist/absolutejs/src/build/compileVue.d.ts +0 -19
  31. package/dist/absolutejs/src/build/generateManifest.d.ts +0 -2
  32. package/dist/absolutejs/src/build/generateReactIndexes.d.ts +0 -1
  33. package/dist/absolutejs/src/build/htmlScriptHMRPlugin.d.ts +0 -13
  34. package/dist/absolutejs/src/build/islandEntries.d.ts +0 -32
  35. package/dist/absolutejs/src/build/nativeRewrite.d.ts +0 -5
  36. package/dist/absolutejs/src/build/optimizeHtmlImages.d.ts +0 -2
  37. package/dist/absolutejs/src/build/outputLogs.d.ts +0 -1
  38. package/dist/absolutejs/src/build/resolvePackageImport.d.ts +0 -9
  39. package/dist/absolutejs/src/build/rewriteImports.d.ts +0 -7
  40. package/dist/absolutejs/src/build/rewriteReactImports.d.ts +0 -7
  41. package/dist/absolutejs/src/build/scanConventions.d.ts +0 -5
  42. package/dist/absolutejs/src/build/scanCssEntryPoints.d.ts +0 -1
  43. package/dist/absolutejs/src/build/scanEntryPoints.d.ts +0 -1
  44. package/dist/absolutejs/src/build/staticIslandPages.d.ts +0 -9
  45. package/dist/absolutejs/src/build/updateAssetPaths.d.ts +0 -1
  46. package/dist/absolutejs/src/build/wrapHTMLScript.d.ts +0 -17
  47. package/dist/absolutejs/src/cli/scripts/telemetry.d.ts +0 -5
  48. package/dist/absolutejs/src/cli/telemetryEvent.d.ts +0 -1
  49. package/dist/absolutejs/src/client/islandStore.d.ts +0 -22
  50. package/dist/absolutejs/src/client/streamSwap.d.ts +0 -11
  51. package/dist/absolutejs/src/constants.d.ts +0 -60
  52. package/dist/absolutejs/src/core/build.d.ts +0 -9
  53. package/dist/absolutejs/src/core/currentIslandRegistry.d.ts +0 -7
  54. package/dist/absolutejs/src/core/devBuild.d.ts +0 -6
  55. package/dist/absolutejs/src/core/devRouteRegistrationCallsite.d.ts +0 -2
  56. package/dist/absolutejs/src/core/devVendorPaths.d.ts +0 -13
  57. package/dist/absolutejs/src/core/index.d.ts +0 -7
  58. package/dist/absolutejs/src/core/islandManifest.d.ts +0 -3
  59. package/dist/absolutejs/src/core/islandMarkupAttributes.d.ts +0 -12
  60. package/dist/absolutejs/src/core/islandPageContext.d.ts +0 -12
  61. package/dist/absolutejs/src/core/islandSsr.d.ts +0 -6
  62. package/dist/absolutejs/src/core/islands.d.ts +0 -16
  63. package/dist/absolutejs/src/core/loadIslandRegistry.d.ts +0 -1
  64. package/dist/absolutejs/src/core/lookup.d.ts +0 -1
  65. package/dist/absolutejs/src/core/pageHandlers.d.ts +0 -6
  66. package/dist/absolutejs/src/core/prepare.d.ts +0 -274
  67. package/dist/absolutejs/src/core/prerender.d.ts +0 -31
  68. package/dist/absolutejs/src/core/renderIslandMarkup.d.ts +0 -13
  69. package/dist/absolutejs/src/core/responseEnhancers.d.ts +0 -10
  70. package/dist/absolutejs/src/core/staticStreaming.d.ts +0 -25
  71. package/dist/absolutejs/src/core/streamingSlotRegistrar.d.ts +0 -16
  72. package/dist/absolutejs/src/core/streamingSlotRegistry.d.ts +0 -2
  73. package/dist/absolutejs/src/core/streamingSlotWarningScope.d.ts +0 -4
  74. package/dist/absolutejs/src/core/svelteServerModule.d.ts +0 -1
  75. package/dist/absolutejs/src/core/wrapPageHandlerWithStreamingSlots.d.ts +0 -2
  76. package/dist/absolutejs/src/dev/assetStore.d.ts +0 -8
  77. package/dist/absolutejs/src/dev/buildHMRClient.d.ts +0 -1
  78. package/dist/absolutejs/src/dev/clientManager.d.ts +0 -31
  79. package/dist/absolutejs/src/dev/configResolver.d.ts +0 -14
  80. package/dist/absolutejs/src/dev/dependencyGraph.d.ts +0 -10
  81. package/dist/absolutejs/src/dev/devCert.d.ts +0 -11
  82. package/dist/absolutejs/src/dev/fileHashTracker.d.ts +0 -2
  83. package/dist/absolutejs/src/dev/fileWatcher.d.ts +0 -4
  84. package/dist/absolutejs/src/dev/moduleMapper.d.ts +0 -27
  85. package/dist/absolutejs/src/dev/moduleServer.d.ts +0 -21
  86. package/dist/absolutejs/src/dev/moduleVersionTracker.d.ts +0 -7
  87. package/dist/absolutejs/src/dev/pathUtils.d.ts +0 -5
  88. package/dist/absolutejs/src/dev/reactComponentClassifier.d.ts +0 -2
  89. package/dist/absolutejs/src/dev/rebuildTrigger.d.ts +0 -10
  90. package/dist/absolutejs/src/dev/simpleHTMLHMR.d.ts +0 -4
  91. package/dist/absolutejs/src/dev/simpleHTMXHMR.d.ts +0 -4
  92. package/dist/absolutejs/src/dev/transformCache.d.ts +0 -6
  93. package/dist/absolutejs/src/dev/webSocket.d.ts +0 -9
  94. package/dist/absolutejs/src/index.d.ts +0 -5
  95. package/dist/absolutejs/src/islands/pageMetadata.d.ts +0 -13
  96. package/dist/absolutejs/src/islands/sourceMetadata.d.ts +0 -10
  97. package/dist/absolutejs/src/plugins/devtoolsJson.d.ts +0 -58
  98. package/dist/absolutejs/src/plugins/hmr.d.ts +0 -138
  99. package/dist/absolutejs/src/plugins/imageOptimizer.d.ts +0 -67
  100. package/dist/absolutejs/src/plugins/index.d.ts +0 -3
  101. package/dist/absolutejs/src/plugins/networking.d.ts +0 -2
  102. package/dist/absolutejs/src/plugins/pageRouter.d.ts +0 -1
  103. package/dist/absolutejs/src/react/Island.d.ts +0 -2
  104. package/dist/absolutejs/src/react/bridgeInternals.d.ts +0 -1
  105. package/dist/absolutejs/src/react/createIsland.d.ts +0 -2
  106. package/dist/absolutejs/src/react/hooks/useIslandStore.d.ts +0 -3
  107. package/dist/absolutejs/src/react/index.d.ts +0 -4
  108. package/dist/absolutejs/src/react/pageHandler.d.ts +0 -21
  109. package/dist/absolutejs/src/svelte/lowerAwaitSlotSyntax.d.ts +0 -4
  110. package/dist/absolutejs/src/svelte/lowerIslandSyntax.d.ts +0 -4
  111. package/dist/absolutejs/src/svelte/pageHandler.d.ts +0 -23
  112. package/dist/absolutejs/src/svelte/renderToReadableStream.d.ts +0 -14
  113. package/dist/absolutejs/src/utils/cleanStaleOutputs.d.ts +0 -1
  114. package/dist/absolutejs/src/utils/cleanup.d.ts +0 -8
  115. package/dist/absolutejs/src/utils/commonAncestor.d.ts +0 -1
  116. package/dist/absolutejs/src/utils/defineConfig.d.ts +0 -2
  117. package/dist/absolutejs/src/utils/defineEnv.d.ts +0 -10
  118. package/dist/absolutejs/src/utils/escapeScriptContent.d.ts +0 -1
  119. package/dist/absolutejs/src/utils/generateHeadElement.d.ts +0 -4
  120. package/dist/absolutejs/src/utils/generateSitemap.d.ts +0 -6
  121. package/dist/absolutejs/src/utils/getDurationString.d.ts +0 -1
  122. package/dist/absolutejs/src/utils/getEnv.d.ts +0 -1
  123. package/dist/absolutejs/src/utils/imageProcessing.d.ts +0 -33
  124. package/dist/absolutejs/src/utils/index.d.ts +0 -9
  125. package/dist/absolutejs/src/utils/jsonLd.d.ts +0 -2
  126. package/dist/absolutejs/src/utils/loadConfig.d.ts +0 -1
  127. package/dist/absolutejs/src/utils/logger.d.ts +0 -55
  128. package/dist/absolutejs/src/utils/networking.d.ts +0 -2
  129. package/dist/absolutejs/src/utils/normalizePath.d.ts +0 -9
  130. package/dist/absolutejs/src/utils/registerClientScript.d.ts +0 -36
  131. package/dist/absolutejs/src/utils/resolveConvention.d.ts +0 -9
  132. package/dist/absolutejs/src/utils/ssrErrorPage.d.ts +0 -1
  133. package/dist/absolutejs/src/utils/startupBanner.d.ts +0 -9
  134. package/dist/absolutejs/src/utils/streamingSlotMetricSink.d.ts +0 -18
  135. package/dist/absolutejs/src/utils/streamingSlots.d.ts +0 -76
  136. package/dist/absolutejs/src/utils/stringModifiers.d.ts +0 -3
  137. package/dist/absolutejs/src/utils/validateSafePath.d.ts +0 -1
  138. package/dist/absolutejs/src/vue/pageHandler.d.ts +0 -29
  139. package/dist/absolutejs/types/ai.d.ts +0 -4631
  140. package/dist/absolutejs/types/angular.d.ts +0 -29
  141. package/dist/absolutejs/types/build.d.ts +0 -67
  142. package/dist/absolutejs/types/cli.d.ts +0 -19
  143. package/dist/absolutejs/types/client.d.ts +0 -65
  144. package/dist/absolutejs/types/conventions.d.ts +0 -20
  145. package/dist/absolutejs/types/env.d.ts +0 -2
  146. package/dist/absolutejs/types/image.d.ts +0 -77
  147. package/dist/absolutejs/types/index.d.ts +0 -19
  148. package/dist/absolutejs/types/island.d.ts +0 -48
  149. package/dist/absolutejs/types/jsonLd.d.ts +0 -271
  150. package/dist/absolutejs/types/messages.d.ts +0 -144
  151. package/dist/absolutejs/types/metadata.d.ts +0 -49
  152. package/dist/absolutejs/types/react.d.ts +0 -2
  153. package/dist/absolutejs/types/session.d.ts +0 -16
  154. package/dist/absolutejs/types/sitemap.d.ts +0 -14
  155. package/dist/absolutejs/types/svelte.d.ts +0 -2
  156. package/dist/absolutejs/types/telemetry.d.ts +0 -15
  157. package/dist/absolutejs/types/tool.d.ts +0 -11
  158. package/dist/absolutejs/types/typeGuards.d.ts +0 -5
  159. package/dist/absolutejs/types/vue.d.ts +0 -14
  160. package/dist/absolutejs/types/websocket.d.ts +0 -6
  161. /package/dist/{voice/src/angular → angular}/index.d.ts +0 -0
  162. /package/dist/{voice/src/client → client}/actions.d.ts +0 -0
  163. /package/dist/{voice/src/client → client}/connection.d.ts +0 -0
  164. /package/dist/{voice/src/client → client}/index.d.ts +0 -0
  165. /package/dist/{voice/src/client → client}/microphone.d.ts +0 -0
  166. /package/dist/{voice/src/client → client}/store.d.ts +0 -0
  167. /package/dist/{voice/src/index.d.ts → index.d.ts} +0 -0
  168. /package/dist/{voice/src/logger.d.ts → logger.d.ts} +0 -0
  169. /package/dist/{voice/src/memoryStore.d.ts → memoryStore.d.ts} +0 -0
  170. /package/dist/{voice/src/plugin.d.ts → plugin.d.ts} +0 -0
  171. /package/dist/{voice/src/react → react}/index.d.ts +0 -0
  172. /package/dist/{voice/src/session.d.ts → session.d.ts} +0 -0
  173. /package/dist/{voice/src/store.d.ts → store.d.ts} +0 -0
  174. /package/dist/{voice/src/svelte → svelte}/index.d.ts +0 -0
  175. /package/dist/{voice/src/turnDetection.d.ts → turnDetection.d.ts} +0 -0
  176. /package/dist/{voice/src/types.d.ts → types.d.ts} +0 -0
  177. /package/dist/{voice/src/vue → vue}/index.d.ts +0 -0
@@ -1,29 +0,0 @@
1
- export type AngularDeps = {
2
- APP_BASE_HREF: typeof import('@angular/common').APP_BASE_HREF;
3
- bootstrapApplication: typeof import('@angular/platform-browser').bootstrapApplication;
4
- DomSanitizer: typeof import('@angular/platform-browser').DomSanitizer;
5
- provideClientHydration: typeof import('@angular/platform-browser').provideClientHydration;
6
- provideServerRendering: typeof import('@angular/platform-server').provideServerRendering;
7
- provideZonelessChangeDetection: typeof import('@angular/core').provideZonelessChangeDetection;
8
- reflectComponentType: typeof import('@angular/core').reflectComponentType;
9
- renderApplication: typeof import('@angular/platform-server').renderApplication;
10
- Sanitizer: typeof import('@angular/core').Sanitizer;
11
- SecurityContext: typeof import('@angular/core').SecurityContext;
12
- };
13
- export type AngularPageFactory<Props extends Record<string, unknown> = Record<string, unknown>> = (props: Props) => unknown;
14
- export type AngularPageImporter<Props extends Record<string, unknown> = Record<string, unknown>> = () => Promise<{
15
- factory: AngularPageFactory<Props>;
16
- }>;
17
- export type AngularPagePropsOf<Page> = Page extends {
18
- factory: AngularPageFactory<infer Props>;
19
- } ? Props : Page extends AngularPageImporter<infer Props> ? Props : Record<never, never>;
20
- export type CachedRouteData = {
21
- props: Record<string, unknown> | undefined;
22
- headTag: `<head>${string}</head>`;
23
- };
24
- export type SsrDepsResult = {
25
- common: typeof import('@angular/common');
26
- core: typeof import('@angular/core');
27
- platformBrowser: typeof import('@angular/platform-browser');
28
- platformServer: typeof import('@angular/platform-server');
29
- };
@@ -1,67 +0,0 @@
1
- import { build } from '../src/core/build';
2
- import { devBuild } from '../src/core/devBuild';
3
- import type { ImageConfig } from './image';
4
- import type { SitemapConfig } from './sitemap';
5
- export type BuildOptions = {
6
- /** When true, build() throws on error instead of exit(1) - used by HMR rebuilds */
7
- throwOnError?: boolean;
8
- /** When true, HMR client code is injected into built assets. Set by devBuild(). */
9
- injectHMR?: boolean;
10
- hmr?: {
11
- debounceMs?: number;
12
- };
13
- /** Base manifest to merge into for incremental builds */
14
- baseManifest?: Record<string, string>;
15
- };
16
- export type StylesConfig = {
17
- path: string;
18
- ignore?: string[];
19
- };
20
- export type StaticConfig = {
21
- /** Routes to pre-render at build time. Use "all" to crawl from / and discover all linked pages. */
22
- routes: string[] | 'all';
23
- /** Revalidation interval in seconds. When set, stale pages are re-rendered in the background (ISR). */
24
- revalidate?: number;
25
- };
26
- export type BuildConfig = {
27
- buildDirectory?: string;
28
- assetsDirectory?: string;
29
- publicDirectory?: string;
30
- islands?: {
31
- registry: string;
32
- bootstrap?: string;
33
- };
34
- reactDirectory?: string;
35
- vueDirectory?: string;
36
- angularDirectory?: string;
37
- astroDirectory?: string;
38
- svelteDirectory?: string;
39
- htmlDirectory?: string;
40
- htmxDirectory?: string;
41
- stylesConfig?: string | StylesConfig;
42
- tailwind?: {
43
- input: string;
44
- output: string;
45
- };
46
- options?: BuildOptions;
47
- incrementalFiles?: string[];
48
- mode?: 'production' | 'development';
49
- dev?: {
50
- https?: boolean;
51
- devtools?: {
52
- projectRoot?: string;
53
- uuid?: string;
54
- uuidCachePath?: string;
55
- normalizeForWindowsContainer?: boolean;
56
- };
57
- };
58
- static?: StaticConfig;
59
- images?: ImageConfig;
60
- sitemap?: SitemapConfig;
61
- };
62
- export type BuildResult = ReturnType<typeof build>;
63
- export type DevBuildResult = ReturnType<typeof devBuild>;
64
- export type Result = BuildResult | DevBuildResult;
65
- export type Prettify<T> = {
66
- [K in keyof T]: T[K];
67
- } & {};
@@ -1,19 +0,0 @@
1
- export type Action = () => void | Promise<void>;
2
- export type Actions = {
3
- clear: Action;
4
- help: Action;
5
- open: Action;
6
- pause: Action;
7
- quit: Action;
8
- restart: Action;
9
- shell: (command: string) => Promise<void>;
10
- };
11
- export type DbScripts = {
12
- upCommand: string;
13
- downCommand: string;
14
- };
15
- export type InteractiveHandler = {
16
- clearPrompt: () => void;
17
- dispose: () => void;
18
- showPrompt: () => void;
19
- };
@@ -1,65 +0,0 @@
1
- export type ErrorOverlayOptions = {
2
- column?: number;
3
- file?: string;
4
- framework?: string;
5
- kind?: 'compilation' | 'runtime';
6
- line?: number;
7
- lineText?: string;
8
- message?: string;
9
- };
10
- export type DOMStateEntry = {
11
- checked?: boolean;
12
- id?: string;
13
- idx: number;
14
- name?: string;
15
- open?: boolean;
16
- selEnd?: number;
17
- selStart?: number;
18
- selected?: boolean;
19
- tag: string;
20
- text?: string;
21
- type?: string;
22
- value?: string;
23
- values?: string[];
24
- };
25
- export type DOMStateSnapshot = {
26
- activeKey: string | null;
27
- items: DOMStateEntry[];
28
- };
29
- export type SavedState = {
30
- forms: Record<string, Record<string, boolean | string>>;
31
- scroll: {
32
- window: {
33
- x: number;
34
- y: number;
35
- };
36
- };
37
- };
38
- export type HTMXSavedState = {
39
- componentState: {
40
- count: number;
41
- };
42
- forms: Record<string, Record<string, boolean | string>>;
43
- scroll: {
44
- window: {
45
- x: number;
46
- y: number;
47
- };
48
- };
49
- };
50
- export type ScriptInfo = {
51
- src: string;
52
- type: string;
53
- };
54
- export type CSSUpdateResult = {
55
- linksToActivate: HTMLLinkElement[];
56
- linksToRemove: HTMLLinkElement[];
57
- linksToWaitFor: Promise<void>[];
58
- };
59
- export declare const hmrState: {
60
- isConnected: boolean;
61
- isFirstHMRUpdate: boolean;
62
- isHMRUpdating: boolean;
63
- pingInterval: ReturnType<typeof setInterval> | null;
64
- reconnectTimeout: ReturnType<typeof setTimeout> | null;
65
- };
@@ -1,20 +0,0 @@
1
- export type ConventionKind = 'error' | 'loading' | 'not-found';
2
- export type PageConventions = {
3
- error?: string;
4
- loading?: string;
5
- };
6
- export type FrameworkConventions = {
7
- error?: string;
8
- loading?: string;
9
- notFound?: string;
10
- };
11
- export type FrameworkConventionEntry = {
12
- defaults?: FrameworkConventions;
13
- pages?: Record<string, PageConventions>;
14
- };
15
- export type ConventionsMap = {
16
- react?: FrameworkConventionEntry;
17
- svelte?: FrameworkConventionEntry;
18
- vue?: FrameworkConventionEntry;
19
- angular?: FrameworkConventionEntry;
20
- };
@@ -1,2 +0,0 @@
1
- import type { Static, TObject, TProperties } from '@sinclair/typebox';
2
- export type InferEnv<T extends TProperties> = Readonly<Static<TObject<T>>>;
@@ -1,77 +0,0 @@
1
- export type ImageFormat = 'webp' | 'avif' | 'jpeg' | 'png';
2
- export type RemotePattern = {
3
- protocol?: 'http' | 'https';
4
- hostname: string;
5
- port?: string;
6
- pathname?: string;
7
- };
8
- export type ImageLoaderParams = {
9
- src: string;
10
- width: number;
11
- quality: number;
12
- };
13
- export type ImageLoader = (params: ImageLoaderParams) => string;
14
- export type ImageConfig = {
15
- /** Breakpoints for device-width responsive images (default: [640, 750, 828, 1080, 1200, 1920, 2048, 3840]) */
16
- deviceSizes?: number[];
17
- /** Breakpoints for fixed-width images (default: [16, 32, 48, 64, 96, 128, 256, 384]) */
18
- imageSizes?: number[];
19
- /** Output formats in preference order (default: ['webp']). Add 'avif' for smaller files at slower encode. */
20
- formats?: ImageFormat[];
21
- /** Minimum cache TTL in seconds (default: 60) */
22
- minimumCacheTTL?: number;
23
- /** Allowed remote image origins */
24
- remotePatterns?: RemotePattern[];
25
- /** Default quality 1-100 (default: 75) */
26
- quality?: number;
27
- /** Custom URL builder — overrides the default optimization endpoint */
28
- loader?: ImageLoader;
29
- /** Optimization endpoint path (default: '/_absolute/image') */
30
- path?: string;
31
- /** Globally disable image optimization — serve images as-is */
32
- unoptimized?: boolean;
33
- };
34
- export type ImageProps = {
35
- /** Image source URL or path */
36
- src: string;
37
- /** Alt text for accessibility (required) */
38
- alt: string;
39
- /** Intrinsic width in pixels (required unless fill) */
40
- width?: number;
41
- /** Intrinsic height in pixels (required unless fill) */
42
- height?: number;
43
- /** Fill parent container with position: absolute */
44
- fill?: boolean;
45
- /** Quality 1-100 (default: 75) */
46
- quality?: number;
47
- /** Responsive sizes attribute (e.g., "(max-width: 768px) 100vw, 50vw") */
48
- sizes?: string;
49
- /** Custom URL builder for this image */
50
- loader?: ImageLoader;
51
- /** Bypass optimization for this image */
52
- unoptimized?: boolean;
53
- /** Loading strategy (default: "lazy") */
54
- loading?: 'lazy' | 'eager';
55
- /** Add <link rel="preload"> and set loading="eager" + fetchPriority="high" */
56
- priority?: boolean;
57
- /** Placeholder while loading: "blur" uses blurDataURL, "empty" shows nothing, or pass a data URI */
58
- placeholder?: 'blur' | 'empty' | string;
59
- /** Base64 blur placeholder data URI (auto-generated for build-time images) */
60
- blurDataURL?: string;
61
- /** CSS class name */
62
- className?: string;
63
- /** Inline styles */
64
- style?: Record<string, string | number>;
65
- /** Callback when image loads */
66
- onLoad?: (() => void) | ((event: Event) => void);
67
- /** Callback on load error */
68
- onError?: (() => void) | ((event: Event) => void);
69
- /** CORS setting */
70
- crossOrigin?: 'anonymous' | 'use-credentials' | '';
71
- /** Referrer policy */
72
- referrerPolicy?: '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
73
- /** Fetch priority hint */
74
- fetchPriority?: 'high' | 'low' | 'auto';
75
- /** Override the final src attribute on the rendered <img> */
76
- overrideSrc?: string;
77
- };
@@ -1,19 +0,0 @@
1
- import './globals.d.ts';
2
- export * from './ai';
3
- export * from './angular';
4
- export * from './conventions';
5
- export * from './build';
6
- export * from './cli';
7
- export * from './env';
8
- export * from './client';
9
- export * from './image';
10
- export * from './island';
11
- export * from './messages';
12
- export * from './telemetry';
13
- export * from './tool';
14
- export * from './typeGuards';
15
- export * from './jsonLd';
16
- export * from './metadata';
17
- export * from './session';
18
- export * from './sitemap';
19
- export * from './websocket';
@@ -1,48 +0,0 @@
1
- import type { InputSignalWithTransform as AngularInputSignalWithTransform, Type as AngularComponent, ɵUnwrapDirectiveSignalInputs as UnwrapAngularSignalInputs } from '@angular/core';
2
- import type { ReactPropsOf } from './react';
3
- import type { SveltePropsOf } from './svelte';
4
- import type { VuePropsOf } from './vue';
5
- export type IslandFramework = 'react' | 'svelte' | 'vue' | 'angular';
6
- export type IslandHydrate = 'load' | 'idle' | 'visible' | 'none';
7
- export type AngularIslandComponent = AngularComponent<object>;
8
- export type IslandComponentDefinition<Component> = {
9
- component: Component;
10
- export?: string;
11
- source: string;
12
- };
13
- export type IslandRegistryInput = Partial<Record<IslandFramework, Record<string, unknown>>>;
14
- type UnwrapIslandComponent<Component> = Component extends IslandComponentDefinition<infer InnerComponent> ? InnerComponent : Component;
15
- type AngularSignalInputKeys<Instance> = Extract<{
16
- [K in keyof Instance]: Instance[K] extends AngularInputSignalWithTransform<unknown, unknown> ? K : never;
17
- }[keyof Instance], keyof Instance>;
18
- type ExtractAngularProps<Component> = UnwrapIslandComponent<Component> extends AngularComponent<infer Instance> ? AngularSignalInputKeys<Instance> extends never ? UnwrapIslandComponent<Component> extends {
19
- __absoluteProps?: infer Props;
20
- } ? NormalizeProps<Props> : Record<string, never> : NormalizeProps<UnwrapAngularSignalInputs<Instance, AngularSignalInputKeys<Instance>>> : Record<string, never>;
21
- type ExtractFrameworkProps<Framework extends IslandFramework, Component> = Framework extends 'react' ? ReactPropsOf<UnwrapIslandComponent<Component>> : Framework extends 'svelte' ? SveltePropsOf<UnwrapIslandComponent<Component>> : Framework extends 'vue' ? VuePropsOf<UnwrapIslandComponent<Component>> : Framework extends 'angular' ? ExtractAngularProps<Component> : never;
22
- type NormalizeProps<Props> = Props extends Record<string, unknown> ? Props : Record<string, never>;
23
- export type IslandRegistry<T extends IslandRegistryInput> = T;
24
- export type InferredIslandRegistry<T extends IslandRegistryInput> = {
25
- [F in keyof T]: T[F] extends Record<string, object> ? {
26
- [K in keyof T[F]]: NormalizeProps<ExtractFrameworkProps<F & IslandFramework, T[F][K]>>;
27
- } : never;
28
- };
29
- export type IslandRegistryFramework<T extends IslandRegistryInput> = Extract<keyof T, IslandFramework>;
30
- export type IslandRegistryComponent<T extends IslandRegistryInput, Framework extends IslandRegistryFramework<T>> = Extract<keyof NonNullable<T[Framework]>, string>;
31
- export type IslandRegistryProps<T extends IslandRegistryInput, Framework extends IslandRegistryFramework<T>, Component extends IslandRegistryComponent<T, Framework>> = ExtractFrameworkProps<Framework, NonNullable<T[Framework]>[Component]> extends infer Props ? NormalizeProps<Props> : Record<string, never>;
32
- export type RuntimeIslandRenderProps = {
33
- component: string;
34
- framework: IslandFramework;
35
- hydrate?: IslandHydrate;
36
- props: Record<string, unknown>;
37
- };
38
- export type TypedIslandRenderProps<T extends IslandRegistryInput> = {
39
- [Framework in IslandRegistryFramework<T>]: {
40
- [Component in IslandRegistryComponent<T, Framework>]: {
41
- component: Component;
42
- framework: Framework;
43
- hydrate?: IslandHydrate;
44
- props: IslandRegistryProps<T, Framework, Component>;
45
- };
46
- }[IslandRegistryComponent<T, Framework>];
47
- }[IslandRegistryFramework<T>];
48
- export {};
@@ -1,271 +0,0 @@
1
- export type WithContext<T extends SchemaBase> = T & {
2
- '@context': 'https://schema.org';
3
- };
4
- export type SchemaBase = {
5
- '@type': string;
6
- };
7
- export type PostalAddress = {
8
- '@type': 'PostalAddress';
9
- streetAddress?: string;
10
- addressLocality?: string;
11
- addressRegion?: string;
12
- postalCode?: string;
13
- addressCountry?: string;
14
- };
15
- export type GeoCoordinates = {
16
- '@type': 'GeoCoordinates';
17
- latitude: number;
18
- longitude: number;
19
- };
20
- export type ContactPoint = {
21
- '@type': 'ContactPoint';
22
- telephone?: string;
23
- contactType?: string;
24
- availableLanguage?: string | string[];
25
- };
26
- export type Offer = {
27
- '@type': 'Offer';
28
- price?: string | number;
29
- priceCurrency?: string;
30
- availability?: string;
31
- url?: string;
32
- validFrom?: string;
33
- };
34
- export type AggregateRating = {
35
- '@type': 'AggregateRating';
36
- ratingValue: number | string;
37
- bestRating?: number | string;
38
- worstRating?: number | string;
39
- ratingCount?: number;
40
- reviewCount?: number;
41
- };
42
- export type Rating = {
43
- '@type': 'Rating';
44
- ratingValue: number | string;
45
- bestRating?: number | string;
46
- };
47
- export type NutritionInformation = {
48
- '@type': 'NutritionInformation';
49
- calories?: string;
50
- fatContent?: string;
51
- carbohydrateContent?: string;
52
- proteinContent?: string;
53
- };
54
- export type ImageObject = {
55
- '@type': 'ImageObject';
56
- url: string;
57
- width?: number;
58
- height?: number;
59
- };
60
- export type SearchAction = {
61
- '@type': 'SearchAction';
62
- target: string;
63
- 'query-input': string;
64
- };
65
- export type PersonSchema = {
66
- '@type': 'Person';
67
- name: string;
68
- url?: string;
69
- image?: string;
70
- jobTitle?: string;
71
- sameAs?: string[];
72
- affiliation?: OrganizationSchema;
73
- };
74
- export type OrganizationSchema = {
75
- '@type': 'Organization';
76
- name: string;
77
- url?: string;
78
- logo?: string | ImageObject;
79
- description?: string;
80
- foundingDate?: string;
81
- address?: PostalAddress;
82
- email?: string;
83
- telephone?: string;
84
- sameAs?: string[];
85
- contactPoint?: ContactPoint;
86
- };
87
- export type WebSiteSchema = {
88
- '@type': 'WebSite';
89
- name: string;
90
- url: string;
91
- logo?: string;
92
- potentialAction?: SearchAction;
93
- };
94
- export type ArticleSchema = {
95
- '@type': 'Article' | 'BlogPosting' | 'NewsArticle';
96
- headline: string;
97
- author?: PersonSchema | PersonSchema[];
98
- datePublished?: string;
99
- dateModified?: string;
100
- image?: string | string[];
101
- description?: string;
102
- articleBody?: string;
103
- publisher?: OrganizationSchema;
104
- };
105
- export type ProductSchema = {
106
- '@type': 'Product';
107
- name: string;
108
- image?: string | string[];
109
- description?: string;
110
- sku?: string;
111
- gtin?: string;
112
- brand?: OrganizationSchema | {
113
- '@type': 'Brand';
114
- name: string;
115
- };
116
- offers?: Offer | Offer[];
117
- aggregateRating?: AggregateRating;
118
- review?: ReviewSchema | ReviewSchema[];
119
- };
120
- export type ReviewSchema = {
121
- '@type': 'Review';
122
- author?: PersonSchema;
123
- datePublished?: string;
124
- name?: string;
125
- reviewBody?: string;
126
- reviewRating?: Rating;
127
- itemReviewed?: {
128
- '@type': string;
129
- name: string;
130
- };
131
- };
132
- export type BreadcrumbItem = {
133
- '@type': 'ListItem';
134
- position: number;
135
- name: string;
136
- item?: string;
137
- };
138
- export type BreadcrumbListSchema = {
139
- '@type': 'BreadcrumbList';
140
- itemListElement: BreadcrumbItem[];
141
- };
142
- export type FAQAnswer = {
143
- '@type': 'Answer';
144
- text: string;
145
- };
146
- export type FAQQuestion = {
147
- '@type': 'Question';
148
- name: string;
149
- acceptedAnswer: FAQAnswer;
150
- };
151
- export type FAQPageSchema = {
152
- '@type': 'FAQPage';
153
- mainEntity: FAQQuestion[];
154
- };
155
- export type EventSchema = {
156
- '@type': 'Event';
157
- name: string;
158
- startDate: string;
159
- endDate?: string;
160
- description?: string;
161
- image?: string;
162
- location?: {
163
- '@type': 'Place';
164
- name?: string;
165
- address?: PostalAddress;
166
- };
167
- organizer?: OrganizationSchema;
168
- offers?: Offer | Offer[];
169
- };
170
- export type HowToStep = {
171
- '@type': 'HowToStep';
172
- name?: string;
173
- text: string;
174
- image?: string;
175
- };
176
- export type RecipeSchema = {
177
- '@type': 'Recipe';
178
- name: string;
179
- image?: string | string[];
180
- author?: PersonSchema;
181
- description?: string;
182
- prepTime?: string;
183
- cookTime?: string;
184
- totalTime?: string;
185
- recipeCategory?: string;
186
- recipeCuisine?: string;
187
- recipeYield?: string;
188
- recipeIngredient?: string[];
189
- recipeInstructions?: (string | HowToStep)[];
190
- datePublished?: string;
191
- aggregateRating?: AggregateRating;
192
- nutrition?: NutritionInformation;
193
- };
194
- export type VideoObjectSchema = {
195
- '@type': 'VideoObject';
196
- name: string;
197
- description: string;
198
- thumbnailUrl: string;
199
- embedUrl?: string;
200
- contentUrl?: string;
201
- duration?: string;
202
- uploadDate?: string;
203
- transcript?: string;
204
- };
205
- export type HowToSchema = {
206
- '@type': 'HowTo';
207
- name: string;
208
- description?: string;
209
- step: HowToStep[];
210
- image?: string;
211
- totalTime?: string;
212
- supply?: {
213
- '@type': 'HowToSupply';
214
- name: string;
215
- }[];
216
- tool?: {
217
- '@type': 'HowToTool';
218
- name: string;
219
- }[];
220
- };
221
- export type LocalBusinessSchema = {
222
- '@type': 'LocalBusiness' | (string & {});
223
- name: string;
224
- address: PostalAddress;
225
- telephone?: string;
226
- image?: string;
227
- url?: string;
228
- priceRange?: string;
229
- geo?: GeoCoordinates;
230
- aggregateRating?: AggregateRating;
231
- openingHours?: string[];
232
- openingHoursSpecification?: {
233
- '@type': 'OpeningHoursSpecification';
234
- dayOfWeek: string | string[];
235
- opens: string;
236
- closes: string;
237
- }[];
238
- };
239
- export type SoftwareApplicationSchema = {
240
- '@type': 'SoftwareApplication';
241
- name: string;
242
- description?: string;
243
- image?: string;
244
- operatingSystem?: string;
245
- applicationCategory?: string;
246
- offers?: Offer;
247
- aggregateRating?: AggregateRating;
248
- };
249
- export type JobPostingSchema = {
250
- '@type': 'JobPosting';
251
- title: string;
252
- description: string;
253
- hiringOrganization: OrganizationSchema;
254
- jobLocation?: {
255
- '@type': 'Place';
256
- address: PostalAddress;
257
- };
258
- employmentType?: string | string[];
259
- baseSalary?: {
260
- '@type': 'MonetaryAmount';
261
- currency: string;
262
- value: number | {
263
- '@type': 'QuantitativeValue';
264
- value: number;
265
- unitText: string;
266
- };
267
- };
268
- datePosted?: string;
269
- validThrough?: string;
270
- };
271
- export type JsonLdSchema = ArticleSchema | BreadcrumbListSchema | EventSchema | FAQPageSchema | HowToSchema | JobPostingSchema | LocalBusinessSchema | OrganizationSchema | PersonSchema | ProductSchema | RecipeSchema | ReviewSchema | SoftwareApplicationSchema | VideoObjectSchema | WebSiteSchema;