@absolutejs/absolute 0.19.0-beta.311 → 0.19.0-beta.312
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 +26 -1
- package/dist/build.js.map +3 -3
- package/dist/index.js +26 -1
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -525,6 +525,7 @@ var normalizeImportPath2 = (fromFile, targetFile) => {
|
|
|
525
525
|
return;
|
|
526
526
|
}
|
|
527
527
|
const resolvedRegistryPath = resolve2(projectRoot, registryPath);
|
|
528
|
+
const sharedDtsTarget = resolve2(dirname2(resolvedRegistryPath), "absolute-islands.d.ts");
|
|
528
529
|
const buildRegistryAugmentation = (registryImportPath, moduleBody) => `import type { islandRegistry } from ${JSON.stringify(registryImportPath)};
|
|
529
530
|
|
|
530
531
|
` + `declare global {
|
|
@@ -535,6 +536,30 @@ var normalizeImportPath2 = (fromFile, targetFile) => {
|
|
|
535
536
|
|
|
536
537
|
` : "") + `export {};
|
|
537
538
|
`;
|
|
539
|
+
const sharedRegistryImport = normalizeImportPath2(sharedDtsTarget, resolvedRegistryPath);
|
|
540
|
+
const sharedModuleBodies = [
|
|
541
|
+
`declare module "@absolutejs/absolute/react" {
|
|
542
|
+
import type { JSX } from "react";
|
|
543
|
+
import type { ConfiguredTypedIslandRenderProps } from "@absolutejs/absolute";
|
|
544
|
+
export const Island: (props: ConfiguredTypedIslandRenderProps) => Promise<JSX.Element>;
|
|
545
|
+
}`,
|
|
546
|
+
`declare module "@absolutejs/absolute/vue" {
|
|
547
|
+
import type { ConfiguredTypedIslandRenderProps } from "@absolutejs/absolute";
|
|
548
|
+
export const Island: new () => { $props: ConfiguredTypedIslandRenderProps };
|
|
549
|
+
}`,
|
|
550
|
+
`declare module "@absolutejs/absolute/svelte" {
|
|
551
|
+
import type { Component } from "svelte";
|
|
552
|
+
import type { ConfiguredTypedIslandRenderProps } from "@absolutejs/absolute";
|
|
553
|
+
export const Island: Component<ConfiguredTypedIslandRenderProps>;
|
|
554
|
+
}`,
|
|
555
|
+
`declare module "@absolutejs/absolute/angular" {
|
|
556
|
+
import type { Type } from "@angular/core";
|
|
557
|
+
export const Island: Type<unknown>;
|
|
558
|
+
}`
|
|
559
|
+
];
|
|
560
|
+
writeIfChanged(sharedDtsTarget, buildRegistryAugmentation(sharedRegistryImport, sharedModuleBodies.join(`
|
|
561
|
+
|
|
562
|
+
`)));
|
|
538
563
|
if (config.reactDirectory) {
|
|
539
564
|
const compatTarget = resolve2(config.reactDirectory, "generated", "absolute-react.ts");
|
|
540
565
|
const dtsTarget = resolve2(config.reactDirectory, "generated", "absolute-react.d.ts");
|
|
@@ -208034,5 +208059,5 @@ export {
|
|
|
208034
208059
|
build
|
|
208035
208060
|
};
|
|
208036
208061
|
|
|
208037
|
-
//# debugId=
|
|
208062
|
+
//# debugId=43B46D9F46297B0864756E2164756E21
|
|
208038
208063
|
//# sourceMappingURL=build.js.map
|