anentrypoint-design 0.0.413 → 0.0.414
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/247420.js +1 -1
- package/package.json +1 -1
- package/src/page-html.js +10 -0
package/dist/247420.js
CHANGED
|
@@ -359,7 +359,7 @@ mount(document.getElementById('app'), () => C.AppShell({
|
|
|
359
359
|
right: data.statusRight || ['live'],
|
|
360
360
|
}),
|
|
361
361
|
}));
|
|
362
|
-
`;function Mm({title:e="247420",slug:t="index",siteName:n="247420",navItems:s=[],basePath:r="",hero:a,sections:o,examples:i,body:l,theme:c="auto",cssHref:d,headExtra:u="",seo:p=null,sidebar:m=null,marquee:f=null,panels:h=null,quickstart:g=null,statusLeft:w=null,statusRight:y=null,faviconHref:x=null,faviconGlyph:S=null,clientScriptExtra:E="",version:T=null}={}){let z=T||"latest",b=Tm({cssHref:d,pkgVersion:z}),C=(Array.isArray(s)?s:[]).map(([N,q])=>[N,Em(r,q)]),L={title:e,slug:t,siteName:n,navItems:C,theme:c,hero:a||null,sections:Array.isArray(o)?o:[],examples:Array.isArray(i)?i:[],bodyHtml:l?Sm(l):"",sidebar:m||null,marquee:f||null,panels:Array.isArray(h)?h:[],quickstart:g||null,statusLeft:Array.isArray(w)?w:null,statusRight:Array.isArray(y)?y:null},P=p?Cm({title:e,siteName:n,seo:p}):"",F=Am({faviconHref:x,faviconGlyph:S});return`<!doctype html>
|
|
362
|
+
`;function Mm({title:e="247420",slug:t="index",siteName:n="247420",navItems:s=[],basePath:r="",hero:a,sections:o,examples:i,body:l,theme:c="auto",cssHref:d,headExtra:u="",seo:p=null,sidebar:m=null,marquee:f=null,panels:h=null,quickstart:g=null,statusLeft:w=null,statusRight:y=null,faviconHref:x=null,faviconGlyph:S=null,clientScriptExtra:E="",version:T=null}={}){if(T!=null&&process.env.ANENTRYPOINT_ALLOW_PIN!=="1")throw new Error(`renderPageHtml({version: '${T}'}) pins every generated page to one release, which opts the whole surface out of published fixes. Fleet policy is @latest. Set ANENTRYPOINT_ALLOW_PIN=1 to override deliberately.`);let z=T||"latest",b=Tm({cssHref:d,pkgVersion:z}),C=(Array.isArray(s)?s:[]).map(([N,q])=>[N,Em(r,q)]),L={title:e,slug:t,siteName:n,navItems:C,theme:c,hero:a||null,sections:Array.isArray(o)?o:[],examples:Array.isArray(i)?i:[],bodyHtml:l?Sm(l):"",sidebar:m||null,marquee:f||null,panels:Array.isArray(h)?h:[],quickstart:g||null,statusLeft:Array.isArray(w)?w:null,statusRight:Array.isArray(y)?y:null},P=p?Cm({title:e,siteName:n,seo:p}):"",F=Am({faviconHref:x,faviconGlyph:S});return`<!doctype html>
|
|
363
363
|
<html lang="en" class="ds-247420" data-theme="${c}">
|
|
364
364
|
<head>
|
|
365
365
|
<meta charset="utf-8">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.414",
|
|
4
4
|
"description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/247420.js",
|
package/src/page-html.js
CHANGED
|
@@ -49,7 +49,17 @@ export function renderPageHtml({
|
|
|
49
49
|
clientScriptExtra = '', // raw JS appended after the mount() call in the client <script type="module">
|
|
50
50
|
version = null, // pin BOTH the CSS href and the JS importmap to this exact version
|
|
51
51
|
// instead of @latest (e.g. '0.0.320'); omitted -> default @latest behavior.
|
|
52
|
+
// Fleet policy is @latest everywhere so a published fix reaches every
|
|
53
|
+
// consumer without redeploying it: passing this pins EVERY page this
|
|
54
|
+
// call generates, and a pinned page silently stops receiving fixes.
|
|
52
55
|
} = {}) {
|
|
56
|
+
if (version != null && process.env.ANENTRYPOINT_ALLOW_PIN !== '1') {
|
|
57
|
+
throw new Error(
|
|
58
|
+
`renderPageHtml({version: '${version}'}) pins every generated page to one release, ` +
|
|
59
|
+
'which opts the whole surface out of published fixes. Fleet policy is @latest. ' +
|
|
60
|
+
'Set ANENTRYPOINT_ALLOW_PIN=1 to override deliberately.'
|
|
61
|
+
);
|
|
62
|
+
}
|
|
53
63
|
const pkgVersion = version || 'latest';
|
|
54
64
|
const cssLink = renderCssLink({ cssHref, pkgVersion });
|
|
55
65
|
|