@absolutejs/absolute 0.19.0-beta.317 → 0.19.0-beta.318
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/build.js +20 -17
- package/dist/build.js.map +5 -5
- package/dist/index.js +1789 -1784
- package/dist/index.js.map +21 -21
- package/dist/src/build/staticIslandPages.d.ts +3 -0
- package/dist/types/globals.d.ts +20 -0
- package/dist/types/island.d.ts +0 -7
- package/package.json +1 -1
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import type { IslandRegistryInput } from '../../types/island';
|
|
2
|
+
export declare const transformStaticPageHtml: (originalHtml: string, registry: IslandRegistryInput) => Promise<string>;
|
|
1
3
|
export declare const transformStaticPagesWithIslands: (registryPath: string | undefined, pagePaths: string[]) => Promise<void>;
|
|
4
|
+
export declare const transformCurrentStaticPageHtml: (html: string) => Promise<string>;
|
package/dist/types/globals.d.ts
CHANGED
|
@@ -91,6 +91,26 @@ declare global {
|
|
|
91
91
|
__REFRESH_BUFFER__?: Array<[unknown, string]>;
|
|
92
92
|
htmx?: { process: (element: HTMLElement | Document) => void };
|
|
93
93
|
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Platform-native island element for HTML and HTMX host pages.
|
|
97
|
+
*
|
|
98
|
+
* Attributes:
|
|
99
|
+
* - `framework`: one of `react`, `svelte`, `vue`, or `angular`
|
|
100
|
+
* - `component`: the registry component name to render
|
|
101
|
+
* - `hydrate`: one of `load`, `idle`, `visible`, or `none`
|
|
102
|
+
* - `props`: JSON-serialized props payload
|
|
103
|
+
*/
|
|
104
|
+
interface AbsoluteIslandElement extends HTMLElement {
|
|
105
|
+
component: string;
|
|
106
|
+
framework: 'react' | 'svelte' | 'vue' | 'angular';
|
|
107
|
+
hydrate?: 'load' | 'idle' | 'visible' | 'none';
|
|
108
|
+
props: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface HTMLElementTagNameMap {
|
|
112
|
+
'absolute-island': AbsoluteIslandElement;
|
|
113
|
+
}
|
|
94
114
|
}
|
|
95
115
|
|
|
96
116
|
export {};
|
package/dist/types/island.d.ts
CHANGED
|
@@ -66,11 +66,4 @@ export type TypedIslandRenderProps<T extends IslandRegistryInput> = {
|
|
|
66
66
|
};
|
|
67
67
|
}[IslandRegistryComponent<T, Framework>];
|
|
68
68
|
}[IslandRegistryFramework<T>];
|
|
69
|
-
declare global {
|
|
70
|
-
interface AbsoluteIslandRegistry {
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
type HasConfiguredIslandRegistry = [keyof AbsoluteIslandRegistry] extends [never] ? false : true;
|
|
74
|
-
export type ConfiguredIslandRegistry = HasConfiguredIslandRegistry extends true ? AbsoluteIslandRegistry & IslandRegistryInput : IslandRegistryInput;
|
|
75
|
-
export type ConfiguredTypedIslandRenderProps = HasConfiguredIslandRegistry extends true ? TypedIslandRenderProps<AbsoluteIslandRegistry & IslandRegistryInput> : RuntimeIslandRenderProps;
|
|
76
69
|
export {};
|
package/package.json
CHANGED