@absolutejs/absolute 0.19.0-beta.317 → 0.19.0-beta.319

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.
@@ -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>;
@@ -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 {};
@@ -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
@@ -310,5 +310,5 @@
310
310
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
311
311
  },
312
312
  "types": "./dist/src/index.d.ts",
313
- "version": "0.19.0-beta.317"
313
+ "version": "0.19.0-beta.319"
314
314
  }