smoodly 0.0.48 → 0.0.49
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/astro/runtime.js +2 -2
- package/dist/astro/server.d.ts +2 -0
- package/dist/astro/server.js +2 -0
- package/dist/astro/static.d.ts +5 -2
- package/dist/astro/static.js +10 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/astro/runtime.js
CHANGED
|
@@ -18,7 +18,7 @@ import { customLayout } from "./custom.js";
|
|
|
18
18
|
import { registryInfo } from "./defaults.js";
|
|
19
19
|
import { lifetime } from "./cache.js";
|
|
20
20
|
import { astroReads, preload } from "./scope.js";
|
|
21
|
-
import { config, href, published, routing, site } from "./server.js";
|
|
21
|
+
import { config, href, pages, published, routing, site } from "./server.js";
|
|
22
22
|
import { staticPaths as listStatic } from "./static.js";
|
|
23
23
|
import { missingViews } from "./views-check.js";
|
|
24
24
|
import { resolveShell } from "./shell.js";
|
|
@@ -40,7 +40,7 @@ export async function shell(pathname, search, state, views, cache) {
|
|
|
40
40
|
return result;
|
|
41
41
|
}
|
|
42
42
|
/** getStaticPaths for the static page shell (spec 2026-10-09 static mode §3): every published address of the bound site. */
|
|
43
|
-
export const staticPaths = () => listStatic({ published: published(), config, href });
|
|
43
|
+
export const staticPaths = () => listStatic({ published: published(), pages: pages(), config, href });
|
|
44
44
|
/** The registry's titles and settings defaults, for the zone and the richtext renderer. */
|
|
45
45
|
export const info = registryInfo(config.registry);
|
|
46
46
|
/** The custom section's rows and layout css, at the project's (already resolved) stacking breakpoint. */
|
package/dist/astro/server.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare const href: (path: string, locale: string) => string;
|
|
|
8
8
|
export declare const site: () => import("../site.ts").SmoodlySite;
|
|
9
9
|
/** The delivery store: the static shell lists its addresses from it, and the deploy operations read it. */
|
|
10
10
|
export declare const published: () => import("../supabase-published-store.ts").SupabasePublishedStore;
|
|
11
|
+
/** The page store, for the paths index the static shell lists entry addresses from. */
|
|
12
|
+
export declare const pages: () => import("../supabase-store.ts").SupabasePageStore;
|
|
11
13
|
/** The deploy operations' deps in static output (spec 2026-10-09 static mode §7); undefined on a live site. */
|
|
12
14
|
export declare const deployDeps: () => (import("../admin/ops-impl.ts").DeployDeps & {
|
|
13
15
|
mode: "live" | "static";
|
package/dist/astro/server.js
CHANGED
|
@@ -30,6 +30,8 @@ const bound = () => (cached ?? (cached = build()));
|
|
|
30
30
|
export const site = () => bound().site;
|
|
31
31
|
/** The delivery store: the static shell lists its addresses from it, and the deploy operations read it. */
|
|
32
32
|
export const published = () => bound().published;
|
|
33
|
+
/** The page store, for the paths index the static shell lists entry addresses from. */
|
|
34
|
+
export const pages = () => bound().pages;
|
|
33
35
|
/** The deploy operations' deps in static output (spec 2026-10-09 static mode §7); undefined on a live site. */
|
|
34
36
|
export const deployDeps = () => deployDepsOf({ output, site: configuredSite, env: process.env, store: published() });
|
|
35
37
|
/** The draft cookie's key: the server-only key every Smoodly site already holds. */
|
package/dist/astro/static.d.ts
CHANGED
|
@@ -3,10 +3,13 @@ import type { PublishedStore } from "../published.ts";
|
|
|
3
3
|
import type { PageStore } from "../store.ts";
|
|
4
4
|
import { type LocaleRouting } from "./locale-paths.ts";
|
|
5
5
|
type Href = (path: string, locale: string) => string;
|
|
6
|
-
/** Every published page and entry address of every locale, as Astro's getStaticPaths entries.
|
|
7
|
-
* no path
|
|
6
|
+
/** Every published page and entry address of every locale, as Astro's getStaticPaths entries. Pages come from
|
|
7
|
+
* the delivery tree (a node with no path, hidden or under a code address, is not a page); entries from the paths
|
|
8
|
+
* index's live rows, kept to the entries with a published delivery row — the Supabase delivery store lists entries
|
|
9
|
+
* with their document only, no path (0.0.48 built no entry page for it), and the index is what visitors reach. */
|
|
8
10
|
export declare function staticPaths(deps: {
|
|
9
11
|
published: PublishedStore;
|
|
12
|
+
pages: PageStore;
|
|
10
13
|
config: ResolvedConfig;
|
|
11
14
|
href: Href;
|
|
12
15
|
}): Promise<{
|
package/dist/astro/static.js
CHANGED
|
@@ -4,8 +4,10 @@ const param = (site) => {
|
|
|
4
4
|
const trimmed = site.replace(/^\/+/, "").replace(/\/+$/, "");
|
|
5
5
|
return trimmed === "" ? undefined : trimmed;
|
|
6
6
|
};
|
|
7
|
-
/** Every published page and entry address of every locale, as Astro's getStaticPaths entries.
|
|
8
|
-
* no path
|
|
7
|
+
/** Every published page and entry address of every locale, as Astro's getStaticPaths entries. Pages come from
|
|
8
|
+
* the delivery tree (a node with no path, hidden or under a code address, is not a page); entries from the paths
|
|
9
|
+
* index's live rows, kept to the entries with a published delivery row — the Supabase delivery store lists entries
|
|
10
|
+
* with their document only, no path (0.0.48 built no entry page for it), and the index is what visitors reach. */
|
|
9
11
|
export async function staticPaths(deps) {
|
|
10
12
|
const seen = new Set();
|
|
11
13
|
const out = [];
|
|
@@ -21,11 +23,13 @@ export async function staticPaths(deps) {
|
|
|
21
23
|
for (const row of await deps.published.tree(locale))
|
|
22
24
|
if (row.path !== null)
|
|
23
25
|
add(deps.href(row.path, locale));
|
|
24
|
-
|
|
26
|
+
const published = new Set();
|
|
27
|
+
for (const name of collections)
|
|
25
28
|
for (const row of await deps.published.entries(name, { locale }))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
published.add(row.id);
|
|
30
|
+
for (const row of await deps.pages.listLive(locale))
|
|
31
|
+
if (row.kind === "entry" && published.has(row.id))
|
|
32
|
+
add(deps.href(row.path, locale));
|
|
29
33
|
}
|
|
30
34
|
return out;
|
|
31
35
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SMOODLY_VERSION = "0.0.
|
|
1
|
+
export declare const SMOODLY_VERSION = "0.0.49";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/write-version.mjs from package.json — do not edit.
|
|
2
|
-
export const SMOODLY_VERSION = "0.0.
|
|
2
|
+
export const SMOODLY_VERSION = "0.0.49";
|
package/package.json
CHANGED