@absolutejs/absolute 0.19.0-beta.315 → 0.19.0-beta.316

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/vue/index.js CHANGED
@@ -30701,6 +30701,47 @@ var Island = defineRuntimeIslandComponent((props) => {
30701
30701
  });
30702
30702
  };
30703
30703
  });
30704
+ // src/vue/createIsland.ts
30705
+ init_islandMarkupAttributes();
30706
+ init_renderIslandMarkup();
30707
+ import { defineComponent as defineComponent2, h as h3, onServerPrefetch as onServerPrefetch2 } from "vue";
30708
+ var defineRuntimeIslandComponent2 = (setup) => defineComponent2({
30709
+ name: "AbsoluteIsland",
30710
+ props: {
30711
+ component: {
30712
+ required: true,
30713
+ type: String
30714
+ },
30715
+ framework: {
30716
+ required: true,
30717
+ type: String
30718
+ },
30719
+ hydrate: {
30720
+ required: false,
30721
+ type: String
30722
+ },
30723
+ props: {
30724
+ required: true,
30725
+ type: Object
30726
+ }
30727
+ },
30728
+ setup
30729
+ });
30730
+ var createTypedIsland = (registry) => defineRuntimeIslandComponent2((props) => {
30731
+ const isBrowser = typeof window !== "undefined";
30732
+ let markerAttributes = getIslandMarkerAttributes(props);
30733
+ let html = "";
30734
+ onServerPrefetch2(async () => {
30735
+ const result = await renderIslandResult(registry, props);
30736
+ markerAttributes = result.attributes;
30737
+ html = result.html;
30738
+ });
30739
+ return () => h3("div", {
30740
+ ...markerAttributes,
30741
+ "data-allow-mismatch": "",
30742
+ innerHTML: isBrowser ? undefined : html
30743
+ });
30744
+ });
30704
30745
  // src/vue/useIslandState.ts
30705
30746
  import {
30706
30747
  customRef,
@@ -30811,8 +30852,9 @@ var useIslandState = (key, fallback) => {
30811
30852
  export {
30812
30853
  useIslandState,
30813
30854
  handleVuePageRequest,
30855
+ createTypedIsland,
30814
30856
  Island
30815
30857
  };
30816
30858
 
30817
- //# debugId=F784B91426C7E91C64756E2164756E21
30859
+ //# debugId=B1DC3D80F405FCF064756E2164756E21
30818
30860
  //# sourceMappingURL=index.js.map