@thebuilder/umbraco-docs 1.0.4 → 1.1.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 +5 -1
- package/components/PageShell.astro +1 -1
- package/dist/package.d.ts +6 -2
- package/dist/package.js +6 -2
- package/dist/package.js.map +1 -1
- 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
|
---
|
|
@@ -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/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
|
@@ -33,10 +33,14 @@ export function validateUmbracoPackage(value) {
|
|
|
33
33
|
if (!publicRootPath.test(logo))
|
|
34
34
|
throw new TypeError("logo must be a safe public-root path beginning with one /");
|
|
35
35
|
const rawLinks = requireRecord(input.links, "links");
|
|
36
|
+
const nuget = rawLinks.nuget === undefined ? undefined : requireHttpsUrl(rawLinks.nuget, "links.nuget");
|
|
37
|
+
const marketplace = rawLinks.marketplace === undefined ? undefined : requireHttpsUrl(rawLinks.marketplace, "links.marketplace");
|
|
38
|
+
const npm = rawLinks.npm === undefined ? undefined : requireHttpsUrl(rawLinks.npm, "links.npm");
|
|
36
39
|
const links = Object.freeze({
|
|
37
40
|
docs: requireHttpsUrl(rawLinks.docs, "links.docs"),
|
|
38
|
-
nuget:
|
|
39
|
-
marketplace:
|
|
41
|
+
...(nuget === undefined ? {} : { nuget }),
|
|
42
|
+
...(marketplace === undefined ? {} : { marketplace }),
|
|
43
|
+
...(npm === undefined ? {} : { npm }),
|
|
40
44
|
github: requireHttpsUrl(rawLinks.github, "links.github"),
|
|
41
45
|
});
|
|
42
46
|
const rawCompatibility = requireRecord(input.compatibility, "compatibility");
|
package/dist/package.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.js","sourceRoot":"","sources":["../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,IAAI,SAAS,CAAC,gDAAgD,CAAC,CAAC;IACxE,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,EAAE;QACF,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;QACvC,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC;QAChD,KAAK;QACL,IAAI;QACJ,aAAa;QACb,MAAM;QACN,GAAG,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,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"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebuilder/umbraco-docs",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.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; }
|