@thebuilder/umbraco-docs 1.0.4 → 1.2.0
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/README.md +24 -1
- package/components/PageShell.astro +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/package.d.ts +6 -2
- package/dist/package.js +9 -4
- package/dist/package.js.map +1 -1
- package/dist/registry.d.ts +17 -0
- package/dist/registry.js +42 -0
- package/dist/registry.js.map +1 -0
- package/package.json +19 -15
- package/styles/landing.css +2 -1
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Shared, composable presentation and metadata contracts for TheBuilder's Umbraco package documentation. Product facts and product-specific content stay in each consumer repository.
|
|
8
8
|
|
|
9
|
+
Works with Blume 1.4.3 and later, including Blume 2. Blume is an optional peer dependency, since only `PageShell` needs it. The fixtures in `fixtures/` build against Blume 1.4.3, 1.6.4, and 2.2.3.
|
|
10
|
+
|
|
9
11
|
## Consumer manifest
|
|
10
12
|
|
|
11
13
|
```ts
|
|
@@ -28,7 +30,9 @@ export const packageManifest = defineUmbracoPackage({
|
|
|
28
30
|
});
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
`links.nuget` and `links.marketplace` are optional, so a package can be listed before it is published. Frontend packages can set `links.npm` instead.
|
|
34
|
+
|
|
35
|
+
Astro consumers can import individual components from `@thebuilder/umbraco-docs/components/*`. Wrap composed landing content in `LandingRoot`; it owns the scoped cascade-layer stylesheet plus clipboard and reduced-motion-safe reveal behavior. Sites that don't use Blume must use these per-component imports, because the `./astro` entry also exports `PageShell`, which needs Blume.
|
|
32
36
|
|
|
33
37
|
```astro
|
|
34
38
|
---
|
|
@@ -42,6 +46,25 @@ import { InstallCommand, LandingHero, LandingRoot } from "@thebuilder/umbraco-do
|
|
|
42
46
|
</LandingRoot>
|
|
43
47
|
```
|
|
44
48
|
|
|
49
|
+
## Related packages
|
|
50
|
+
|
|
51
|
+
`loadUmbracoPackages()` reads the package list published at [umbraco.thebuilder.dk/packages.json](https://umbraco.thebuilder.dk/packages.json) during the build, so every docs site shows the current set of packages without keeping its own copy. Pass the result to `EcosystemSection`, which leaves out the current package.
|
|
52
|
+
|
|
53
|
+
```astro
|
|
54
|
+
---
|
|
55
|
+
import { loadUmbracoPackages } from "@thebuilder/umbraco-docs";
|
|
56
|
+
import { EcosystemSection } from "@thebuilder/umbraco-docs/astro";
|
|
57
|
+
|
|
58
|
+
const packages = await loadUmbracoPackages();
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
<EcosystemSection packages={packages} currentPackageId="thebuilder.example" />
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
A build never fails because the hub can't be reached. The loader logs a warning and returns `fallback` (an empty list by default, which hides the section), and it skips any entry that fails validation. Options: `url`, `fallback`, and `timeoutMs` (10 seconds by default).
|
|
65
|
+
|
|
66
|
+
Package logos can be a public-root path like `/logo.svg` or an absolute https URL, as the hub uses.
|
|
67
|
+
|
|
45
68
|
## Open Graph images
|
|
46
69
|
|
|
47
70
|
Create `umbraco-docs.config.mjs` with content/public directories, a `/social` or `/og` prefix, root card copy, and the product logo to render into each card. Pages opt in with Blume-native `title`, `description`, and `seo.image` frontmatter.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
// Blume 1.x
|
|
2
|
+
// Blume 1.x and 2.x expose PageLayout and its generated site data at these stable entry points.
|
|
3
3
|
import PageLayout from "blume/components/layout/PageLayout.astro";
|
|
4
4
|
import data from "blume:data";
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { UMBRACO_PACKAGE_STATUSES, defineUmbracoPackage, validateUmbracoPackage, } from "./package.js";
|
|
2
2
|
export type { UmbracoCompatibility, UmbracoPackage, UmbracoPackageLinks, UmbracoPackageStatus, } from "./package.js";
|
|
3
|
+
export { DEFAULT_REGISTRY_URL, loadUmbracoPackages } from "./registry.js";
|
|
4
|
+
export type { LoadUmbracoPackagesOptions } from "./registry.js";
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/package.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ export declare const UMBRACO_PACKAGE_STATUSES: readonly ["preview", "stable", "m
|
|
|
2
2
|
export type UmbracoPackageStatus = (typeof UMBRACO_PACKAGE_STATUSES)[number];
|
|
3
3
|
export interface UmbracoPackageLinks {
|
|
4
4
|
docs: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** Omit until the package is published to NuGet. */
|
|
6
|
+
nuget?: string;
|
|
7
|
+
/** Omit until the package is listed on the Umbraco Marketplace. */
|
|
8
|
+
marketplace?: string;
|
|
9
|
+
/** For frontend packages published to npm. */
|
|
10
|
+
npm?: string;
|
|
7
11
|
github: string;
|
|
8
12
|
}
|
|
9
13
|
export interface UmbracoCompatibility {
|
package/dist/package.js
CHANGED
|
@@ -30,13 +30,18 @@ export function validateUmbracoPackage(value) {
|
|
|
30
30
|
if (!stableId.test(id))
|
|
31
31
|
throw new TypeError("id must be a stable lowercase dotted or dashed identifier");
|
|
32
32
|
const logo = requireString(input.logo, "logo");
|
|
33
|
-
if (!publicRootPath.test(logo))
|
|
34
|
-
throw new TypeError("logo must be a safe public-root path beginning with one
|
|
33
|
+
if (!publicRootPath.test(logo) && !isHttpsUrl(logo)) {
|
|
34
|
+
throw new TypeError("logo must be a safe public-root path beginning with one /, or an absolute https URL");
|
|
35
|
+
}
|
|
35
36
|
const rawLinks = requireRecord(input.links, "links");
|
|
37
|
+
const nuget = rawLinks.nuget === undefined ? undefined : requireHttpsUrl(rawLinks.nuget, "links.nuget");
|
|
38
|
+
const marketplace = rawLinks.marketplace === undefined ? undefined : requireHttpsUrl(rawLinks.marketplace, "links.marketplace");
|
|
39
|
+
const npm = rawLinks.npm === undefined ? undefined : requireHttpsUrl(rawLinks.npm, "links.npm");
|
|
36
40
|
const links = Object.freeze({
|
|
37
41
|
docs: requireHttpsUrl(rawLinks.docs, "links.docs"),
|
|
38
|
-
nuget:
|
|
39
|
-
marketplace:
|
|
42
|
+
...(nuget === undefined ? {} : { nuget }),
|
|
43
|
+
...(marketplace === undefined ? {} : { marketplace }),
|
|
44
|
+
...(npm === undefined ? {} : { npm }),
|
|
40
45
|
github: requireHttpsUrl(rawLinks.github, "links.github"),
|
|
41
46
|
});
|
|
42
47
|
const rawCompatibility = requireRecord(input.compatibility, "compatibility");
|
package/dist/package.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.js","sourceRoot":"","sources":["../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"package.js","sourceRoot":"","sources":["../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,CA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C,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5I,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAqB;IACxD,OAAO,sBAAsB,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type UmbracoPackage } from "./package.js";
|
|
2
|
+
export declare const DEFAULT_REGISTRY_URL = "https://umbraco.thebuilder.dk/packages.json";
|
|
3
|
+
export interface LoadUmbracoPackagesOptions {
|
|
4
|
+
/** Registry to read. Defaults to the package hub. */
|
|
5
|
+
url?: string;
|
|
6
|
+
/** Returned when the registry can't be read. Defaults to an empty list. */
|
|
7
|
+
fallback?: readonly UmbracoPackage[];
|
|
8
|
+
/** Gives up on the request after this many milliseconds. Defaults to 10 seconds. */
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Reads the package list the hub publishes, for "related packages" sections.
|
|
13
|
+
* A docs build should never fail because the hub is down, so any problem is
|
|
14
|
+
* logged and the fallback is returned instead. Entries that fail validation
|
|
15
|
+
* are skipped one by one.
|
|
16
|
+
*/
|
|
17
|
+
export declare function loadUmbracoPackages(options?: LoadUmbracoPackagesOptions): Promise<UmbracoPackage[]>;
|
package/dist/registry.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { validateUmbracoPackage } from "./package.js";
|
|
2
|
+
import { isRecord } from "./validation.js";
|
|
3
|
+
export const DEFAULT_REGISTRY_URL = "https://umbraco.thebuilder.dk/packages.json";
|
|
4
|
+
/**
|
|
5
|
+
* Reads the package list the hub publishes, for "related packages" sections.
|
|
6
|
+
* A docs build should never fail because the hub is down, so any problem is
|
|
7
|
+
* logged and the fallback is returned instead. Entries that fail validation
|
|
8
|
+
* are skipped one by one.
|
|
9
|
+
*/
|
|
10
|
+
export async function loadUmbracoPackages(options = {}) {
|
|
11
|
+
const { url = DEFAULT_REGISTRY_URL, fallback = [], timeoutMs = 10_000 } = options;
|
|
12
|
+
const warn = (reason) => console.warn(`[umbraco-docs] Could not load packages from ${url}: ${reason}`);
|
|
13
|
+
let payload;
|
|
14
|
+
try {
|
|
15
|
+
const response = await fetch(url, { signal: AbortSignal.timeout(timeoutMs) });
|
|
16
|
+
if (!response.ok) {
|
|
17
|
+
warn(`HTTP ${response.status}`);
|
|
18
|
+
return [...fallback];
|
|
19
|
+
}
|
|
20
|
+
payload = await response.json();
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
warn(error instanceof Error ? error.message : String(error));
|
|
24
|
+
return [...fallback];
|
|
25
|
+
}
|
|
26
|
+
if (!isRecord(payload) || payload.version !== 1 || !Array.isArray(payload.packages)) {
|
|
27
|
+
warn("expected a version 1 registry with a packages array");
|
|
28
|
+
return [...fallback];
|
|
29
|
+
}
|
|
30
|
+
const packages = [];
|
|
31
|
+
for (const entry of payload.packages) {
|
|
32
|
+
try {
|
|
33
|
+
packages.push(validateUmbracoPackage(entry));
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
const id = isRecord(entry) && typeof entry.id === "string" ? entry.id : "unknown";
|
|
37
|
+
console.warn(`[umbraco-docs] Skipping package ${id} from ${url}: ${error instanceof Error ? error.message : String(error)}`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return packages;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAuB,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,6CAA6C,CA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KAAK,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACrC,IAAI,CAAC;YACH,QAAQ,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,GAAG,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC/H,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebuilder/umbraco-docs",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Composable Blume presentation and metadata contracts for TheBuilder Umbraco package documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/thebuilder/umbraco-docs.git"
|
|
9
|
+
"url": "git+https://github.com/thebuilder/umbraco-docs.git",
|
|
10
|
+
"directory": "packages/umbraco-docs"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
12
13
|
"access": "public"
|
|
@@ -14,7 +15,6 @@
|
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">=22.12"
|
|
16
17
|
},
|
|
17
|
-
"packageManager": "pnpm@10.33.0",
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
20
|
"components",
|
|
@@ -41,25 +41,29 @@
|
|
|
41
41
|
"bin": {
|
|
42
42
|
"umbraco-docs-og": "./dist/og/cli.js"
|
|
43
43
|
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build": "tsc -p tsconfig.build.json",
|
|
46
|
-
"check": "tsc -p tsconfig.json --noEmit",
|
|
47
|
-
"generate:brand": "node scripts/generate-brand.mjs",
|
|
48
|
-
"test": "node --test tests/*.test.mjs",
|
|
49
|
-
"test:fixtures": "node scripts/test-fixtures.mjs",
|
|
50
|
-
"verify": "pnpm run check && pnpm run build && pnpm run test && pnpm run test:fixtures",
|
|
51
|
-
"prepack": "pnpm run build"
|
|
52
|
-
},
|
|
53
44
|
"dependencies": {
|
|
54
45
|
"gray-matter": "4.0.3",
|
|
55
46
|
"sharp": "0.35.3"
|
|
56
47
|
},
|
|
57
48
|
"peerDependencies": {
|
|
58
|
-
"blume": ">=1.4.3 <
|
|
49
|
+
"blume": ">=1.4.3 <3"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"blume": {
|
|
53
|
+
"optional": true
|
|
54
|
+
}
|
|
59
55
|
},
|
|
60
56
|
"devDependencies": {
|
|
61
57
|
"@types/node": "^24.10.1",
|
|
62
|
-
"blume": "
|
|
58
|
+
"blume": "2.2.3",
|
|
63
59
|
"typescript": "^5.9.2"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsc -p tsconfig.build.json",
|
|
63
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
64
|
+
"generate:brand": "node scripts/generate-brand.mjs",
|
|
65
|
+
"test": "node --test tests/*.test.mjs",
|
|
66
|
+
"test:fixtures": "node scripts/test-fixtures.mjs",
|
|
67
|
+
"verify": "pnpm run check && pnpm run build && pnpm run test && pnpm run test:fixtures"
|
|
64
68
|
}
|
|
65
|
-
}
|
|
69
|
+
}
|
package/styles/landing.css
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
.udocs-shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
|
|
16
16
|
.udocs-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
17
17
|
.udocs-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 8vw, 6rem); }
|
|
18
|
-
|
|
18
|
+
/* An ellipse sized to its box is transparent before the box's bottom edge, and the box never outgrows the hero, so short heroes fade out instead of cutting off. */
|
|
19
|
+
.udocs-hero__glow { position: absolute; inset: -30% -10% auto; height: min(40rem, 130%); background: radial-gradient(ellipse at top, color-mix(in oklab, var(--udocs-accent) 24%, transparent), transparent 70%); pointer-events: none; }
|
|
19
20
|
.udocs-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
|
|
20
21
|
.udocs-hero__logo { width: 4.5rem; height: 4.5rem; object-fit: contain; }
|
|
21
22
|
.udocs-hero__title { max-width: 20ch; margin: 0; font-family: var(--blume-font-display, system-ui); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
|