@plitzi/sdk-server 0.39.4 → 0.39.7
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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist/adapters/cloudAdapters.d.ts +7 -0
- package/dist/adapters/space/index.d.ts +2 -0
- package/dist/adapters/space/resolvers.d.ts +14 -3
- package/dist/adapters/space/snapshotPreview.d.ts +45 -0
- package/dist/adapters/space/types.d.ts +4 -1
- package/dist/cache.js +1 -1
- package/dist/chunks/{buildBody-BSC0UbjP.js → buildBody-Bm398uxH.js} +600 -63
- package/dist/chunks/{core-w7FIMpgv.js → core-CoKORAOg.js} +149 -23
- package/dist/chunks/{createServer-BQ0KE0Qu.js → createServer-BSmQqzwb.js} +31 -607
- package/dist/chunks/{platform-C0AVlwpB.js → platform-BTssQQXp.js} +1 -1
- package/dist/chunks/sdkAssets-CXGoc_WE.js +60 -0
- package/dist/chunks/{token-CBUubxtm.js → token-XEz1n4jp.js} +1 -1
- package/dist/chunks/views/template.ejs +5 -0
- package/dist/core/services/robotsTxt.d.ts +3 -1
- package/dist/deploy/aws/s3.d.ts +51 -0
- package/dist/deploy/aws/sigv4.d.ts +33 -0
- package/dist/deploy/contentType.d.ts +2 -0
- package/dist/deploy/fingerprint.d.ts +18 -0
- package/dist/deploy/folder.d.ts +6 -0
- package/dist/deploy/ftp.d.ts +27 -0
- package/dist/deploy/sdkFiles.d.ts +11 -0
- package/dist/deploy/spaShell.d.ts +35 -0
- package/dist/deploy/staticSite.d.ts +44 -0
- package/dist/deploy/types.d.ts +58 -0
- package/dist/deploy/zip.d.ts +8 -0
- package/dist/deploy.d.ts +24 -0
- package/dist/deploy.js +938 -0
- package/dist/handlers.js +1 -1
- package/dist/helpers/ownVersion.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/oauth.js +1 -1
- package/dist/platform.js +1 -1
- package/dist/project.js +3 -3
- package/dist/spaces.d.ts +2 -2
- package/dist/spaces.js +1 -1
- package/dist/ssr.d.ts +1 -1
- package/dist/ssr.js +1 -1
- package/package.json +15 -13
- package/skills/plitzi-authoring/reference/authoring-errors.md +8 -4
- package/skills/plitzi-authoring/reference/efficiency.md +2 -1
- package/skills/plitzi-authoring/reference/layouts.md +2 -1
package/dist/handlers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as authRoutes, n as renewForNavigation, r as applySessionOutcome, t as isDocumentNavigation } from "./chunks/renewal-D98v6-Jd.js";
|
|
2
|
-
import { a as handleRegister, b as protectedResourceMetadata, i as handleAuthorizeSubmit, l as sendErrorJson, n as handleToken, r as handleAuthorizeStart, t as handleRevoke, y as authorizationServerMetadata } from "./chunks/token-
|
|
2
|
+
import { a as handleRegister, b as protectedResourceMetadata, i as handleAuthorizeSubmit, l as sendErrorJson, n as handleToken, r as handleAuthorizeStart, t as handleRevoke, y as authorizationServerMetadata } from "./chunks/token-XEz1n4jp.js";
|
|
3
3
|
import { serverLog } from "@plitzi/sdk-kernel/log";
|
|
4
4
|
import { authFailureMessage, carrierOf, createAuthorizer, csrfFailureMessage } from "@plitzi/sdk-kernel/identity";
|
|
5
5
|
// src/core/handlers/authRouteHandlers.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ownVersion: () => string;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as resolveRscData, t as createServer } from "./chunks/createServer-
|
|
2
|
-
import {
|
|
3
|
-
import { E as
|
|
1
|
+
import { r as resolveRscData, t as createServer } from "./chunks/createServer-BSmQqzwb.js";
|
|
2
|
+
import { L as createCacheInvalidator, _ as createCloudAdapters, c as fixedSpace, d as verifiedDomain, dt as DEFAULT_IGNORED_QUERY_PARAMS, f as wildcardSubdomain, g as createJsonAdapters, h as createAuthAdapters, l as presentsCredential, m as refuse, n as createSpaceAdapters, p as createMemoryCache, s as authoringPreview, t as createRedisPageStore, u as renderGrant } from "./chunks/core-CoKORAOg.js";
|
|
3
|
+
import { E as takeDraftOverride, _ as resolveServices, w as createMemoryDraftStore } from "./chunks/buildBody-Bm398uxH.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { serverLog } from "@plitzi/sdk-kernel/log";
|
|
6
6
|
import { isRecord } from "@plitzi/sdk-shared/helpers";
|
package/dist/oauth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as dropPending, D as putCode, E as getPending, O as putPending, S as scopesOf, T as getClient, a as handleRegister, b as protectedResourceMetadata, c as redirectWithError, d as randomId, f as verifyChallenge, g as REGISTER_PATH, h as PROTECTED_RESOURCE_PATH, i as handleAuthorizeSubmit, l as sendErrorJson, m as AUTHORIZE_PATH, n as handleToken, o as redirectToSignIn, p as AUTHORIZATION_SERVER_PATH, r as handleAuthorizeStart, s as redirectWithCode, t as handleRevoke, u as sendJson, v as TOKEN_PATH, w as getAccess, x as resourceMetadataUrl, y as authorizationServerMetadata } from "./chunks/token-
|
|
1
|
+
import { C as dropPending, D as putCode, E as getPending, O as putPending, S as scopesOf, T as getClient, a as handleRegister, b as protectedResourceMetadata, c as redirectWithError, d as randomId, f as verifyChallenge, g as REGISTER_PATH, h as PROTECTED_RESOURCE_PATH, i as handleAuthorizeSubmit, l as sendErrorJson, m as AUTHORIZE_PATH, n as handleToken, o as redirectToSignIn, p as AUTHORIZATION_SERVER_PATH, r as handleAuthorizeStart, s as redirectWithCode, t as handleRevoke, u as sendJson, v as TOKEN_PATH, w as getAccess, x as resourceMetadataUrl, y as authorizationServerMetadata } from "./chunks/token-XEz1n4jp.js";
|
|
2
2
|
import { readRawBody } from "@plitzi/sdk-kernel/http";
|
|
3
3
|
// src/core/oauth/challenge.ts
|
|
4
4
|
/** The credential on an MCP request. `Authorization: Bearer` is what RFC 6750 defines and what a remote host
|
package/dist/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createPlatform } from "./chunks/platform-
|
|
1
|
+
export { t as createPlatform } from "./chunks/platform-BTssQQXp.js";
|
package/dist/project.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as LIVE_PAGES_PATH } from "./chunks/createServer-
|
|
2
|
-
import {
|
|
3
|
-
import { t as createPlatform } from "./chunks/platform-
|
|
1
|
+
import { n as LIVE_PAGES_PATH } from "./chunks/createServer-BSmQqzwb.js";
|
|
2
|
+
import { _ as createCloudAdapters, b as escapeHtml, g as createJsonAdapters } from "./chunks/core-CoKORAOg.js";
|
|
3
|
+
import { t as createPlatform } from "./chunks/platform-BTssQQXp.js";
|
|
4
4
|
import { reachOwnServer } from "@plitzi/sdk-kernel/outbound";
|
|
5
5
|
import { EMPTY_SCHEMA } from "@plitzi/sdk-shared/schema";
|
|
6
6
|
import { mkdir, writeFile } from "node:fs/promises";
|
package/dist/spaces.d.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* keeps the answer: the resolution a page server renders with, apart from the renderer. A process that serves no pages
|
|
4
4
|
* (a worker, an API) resolves spaces through this and loads nothing of React or the SDK.
|
|
5
5
|
*/
|
|
6
|
-
export { authoringPreview, createMemoryCache, createSpaceAdapters, fixedSpace, presentsCredential, refuse, renderGrant, verifiedDomain, wildcardSubdomain } from './adapters/space';
|
|
7
|
-
export type { AuthoringPreviewOptions, DeploymentRow, RenderGrantOptions, SpaceAdapters, SpaceAdaptersConfig, SpaceCache, SpaceRefusal, SpaceResolution, SpaceResolver, WildcardSubdomainOptions } from './adapters/space';
|
|
6
|
+
export { authoringPreview, createMemoryCache, createSpaceAdapters, fixedSpace, parsePreviewLabel, presentsCredential, PREVIEW_KEY_LENGTH, previewLabel, refuse, renderGrant, snapshotPreview, verifiedDomain, wildcardSubdomain } from './adapters/space';
|
|
7
|
+
export type { AuthoringPreviewOptions, DeploymentRow, PreviewAddress, RenderGrantOptions, SnapshotPreviewOptions, SpaceAdapters, SpaceAdaptersConfig, SpaceCache, SpaceRefusal, SpaceResolution, SpaceResolver, WildcardSubdomainOptions } from './adapters/space';
|
package/dist/spaces.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as authoringPreview,
|
|
1
|
+
export { r as PREVIEW_KEY_LENGTH, s as authoringPreview, p as createMemoryCache, n as createSpaceAdapters, c as fixedSpace, i as parsePreviewLabel, l as presentsCredential, a as previewLabel, m as refuse, u as renderGrant, o as snapshotPreview, d as verifiedDomain, f as wildcardSubdomain } from "./chunks/core-CoKORAOg.js";
|
package/dist/ssr.d.ts
CHANGED
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
* an injected render stage needs. */
|
|
10
10
|
export { buildBody } from './modules/ssr/buildBody';
|
|
11
11
|
export { createMemoryDraftStore, takeDraftOverride } from './modules/ssr/preview';
|
|
12
|
-
export
|
|
12
|
+
export { PluginManager } from './plugins/manager';
|
|
13
13
|
export type { ServerCaches } from './helpers/cache';
|
|
14
14
|
export type { PipelineExtensions, SSRContext } from './core/http/pageContext';
|
package/dist/ssr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as buildBody,
|
|
1
|
+
export { S as PluginManager, t as buildBody, w as createMemoryDraftStore, E as takeDraftOverride } from "./chunks/buildBody-Bm398uxH.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-server",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.7",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -70,6 +70,12 @@
|
|
|
70
70
|
"import": "./dist/bundle.js",
|
|
71
71
|
"default": "./dist/bundle.js"
|
|
72
72
|
},
|
|
73
|
+
"./deploy": {
|
|
74
|
+
"@plitzi/source": "./src/deploy.ts",
|
|
75
|
+
"types": "./dist/deploy.d.ts",
|
|
76
|
+
"import": "./dist/deploy.js",
|
|
77
|
+
"default": "./dist/deploy.js"
|
|
78
|
+
},
|
|
73
79
|
"./env": {
|
|
74
80
|
"@plitzi/source": "./src/env.ts",
|
|
75
81
|
"types": "./dist/env.d.ts",
|
|
@@ -89,36 +95,32 @@
|
|
|
89
95
|
"./dist/env.js"
|
|
90
96
|
],
|
|
91
97
|
"dependencies": {
|
|
92
|
-
"@plitzi/plitzi-sdk": "0.39.
|
|
93
|
-
"@plitzi/sdk-
|
|
94
|
-
"@plitzi/sdk-
|
|
98
|
+
"@plitzi/plitzi-sdk": "0.39.7",
|
|
99
|
+
"@plitzi/sdk-actions": "0.39.7",
|
|
100
|
+
"@plitzi/sdk-kernel": "0.39.7",
|
|
101
|
+
"@plitzi/sdk-shared": "0.39.7",
|
|
95
102
|
"ejs": "^7.0.2",
|
|
96
103
|
"esbuild": "^0.28.2",
|
|
97
104
|
"jsonwebtoken": "^9.0.3",
|
|
98
105
|
"subset-font": "^2.9.0"
|
|
99
106
|
},
|
|
100
107
|
"peerDependencies": {
|
|
101
|
-
"@plitzi/sdk-actions": "^0.39.4",
|
|
102
108
|
"react": "^19",
|
|
103
109
|
"react-dom": "^19",
|
|
104
110
|
"sharp": "^0.34.0"
|
|
105
111
|
},
|
|
106
112
|
"peerDependenciesMeta": {
|
|
107
|
-
"@plitzi/sdk-actions": {
|
|
108
|
-
"optional": true
|
|
109
|
-
},
|
|
110
113
|
"sharp": {
|
|
111
114
|
"optional": true
|
|
112
115
|
}
|
|
113
116
|
},
|
|
114
117
|
"devDependencies": {
|
|
115
|
-
"@plitzi/sdk-
|
|
116
|
-
"@plitzi/sdk-runtime": "0.39.4",
|
|
118
|
+
"@plitzi/sdk-runtime": "0.39.7",
|
|
117
119
|
"@types/ejs": "^3.1.5",
|
|
118
120
|
"@types/jsonwebtoken": "^9.0.10",
|
|
119
121
|
"@types/node": "^26.6.6",
|
|
120
122
|
"@types/react": "^19.3.0",
|
|
121
|
-
"@types/subset-font": "^2",
|
|
123
|
+
"@types/subset-font": "^2.3.0",
|
|
122
124
|
"@types/ws": "^8.18.2",
|
|
123
125
|
"@vitejs/plugin-react": "^6.3.0",
|
|
124
126
|
"@vitest/coverage-v8": "^5.1.0",
|
|
@@ -130,10 +132,10 @@
|
|
|
130
132
|
"sharp": "^0.35.5",
|
|
131
133
|
"tsx": "^4.23.15",
|
|
132
134
|
"typescript": "^6.0.3",
|
|
133
|
-
"vite": "^8.3.
|
|
135
|
+
"vite": "^8.3.8",
|
|
134
136
|
"vite-plugin-dts": "^5.1.2",
|
|
135
137
|
"vitest": "^5.1.0",
|
|
136
|
-
"ws": "^8.
|
|
138
|
+
"ws": "^8.23.0"
|
|
137
139
|
},
|
|
138
140
|
"scripts": {
|
|
139
141
|
"prepack": "node scripts/copy-authoring-skill.mjs",
|
|
@@ -108,6 +108,7 @@ The space is not written until these are fixed.
|
|
|
108
108
|
| `no-pages` | a space with no pages | `pages: [{ id: 'home', name: 'Home', slug: '', body: [] }]` |
|
|
109
109
|
| `not-found-in-browser` | `notFound` on a provider asked from the browser — its answer arrives after the page was sent with its status | `runtime: 'server'` on the provider, or `visible` on the page's "not found" part instead |
|
|
110
110
|
| `not-found-not-a-template` | `notFound`, a provider's or a page's, that is not one `{{ expression }}` — never `true`, so never a 404 | `notFound: '{{ source.found == false }}'` |
|
|
111
|
+
| `not-found-twice` | two pages answering every address nothing else does (`slug: '*'`) in the same place — the space, or one folder: the router would pick one, and an address land on whichever it picked | one per place: the other given a slug of its own, or moved to the folder whose addresses it answers (a folder's answers its own, the space's the rest) |
|
|
111
112
|
| `notifications-shape` | `notifications` with a field it does not have, or a value that is not one CSS value | the field it suggests, or one it lists; one CSS value, like 'var(--card)', '12px' or '500' |
|
|
112
113
|
| `og-type-unknown` | a page's `seoType` that Open Graph does not name | `seoType: 'article'`, `'profile'`, `'music.playlist'` — or leave it out, and the page is a `website` |
|
|
113
114
|
| `outside-ancestor` | an element that reads the state of an element it is not inside | nest it in the element the message names |
|
|
@@ -242,7 +243,7 @@ The space renders, and renders something you probably did not mean. Fix every on
|
|
|
242
243
|
| `page-path-unknown` | a link or `navigate` to a path no page of the space answers — a page not made yet, or a typo | a path a page answers (its folder and slug), the page's id, or `mode: 'external'` for one the server answers itself |
|
|
243
244
|
| `painted-state-without-keep-state` | `paintedState` without `keepState` — nothing is kept for the server to draw with | `settings.keepState: true`, or remove `paintedState` |
|
|
244
245
|
| `path-not-in-data` | a binding onto a provider whose answer the author could read (`data`), through a path that answer does not have | the path the message lists the keys for — `p.data.plans`, not `p.data.landing.plans` |
|
|
245
|
-
| `plugin-attribute-reserved` | a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin | rename it in the plugin, as the warning names it (`variant` → `kind`, `from` → `start`) |
|
|
246
|
+
| `plugin-attribute-reserved` | a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin — said by `author` alone, which reads the plugin's own declaration, which authoring is handed and a space's documents do not hold | rename it in the plugin, as the warning names it (`variant` → `kind`, `from` → `start`) |
|
|
246
247
|
| `popup-position-set` | a class on a `dropdownPopup` setting where it is drawn — `position`, `top`, `left`, `right`, `bottom`, `inset` or `transform` — over the place its dropdown puts it at, at the space's root | its look on the class, its place on the dropdown: `popupPlacement`, `containerTopOffset`, `containerLeftOffset`, and `popupWidth: "trigger"` for its width |
|
|
247
248
|
| `provider-without-source` | an `apiContainer` that asks nothing | a `query` (or `action`, `connector`, `resource`) |
|
|
248
249
|
| `required-message-unused` | a `requiredMessage` on a field nothing requires — fields are optional unless `required: true`, so it is never shown and an empty answer is sent | `required: true` on the field, or no message |
|
|
@@ -253,7 +254,7 @@ The space renders, and renders something you probably did not mean. Fix every on
|
|
|
253
254
|
| `state-key-has-runtime-prefix` | a state key written with `runtime.state.` in front — the state callbacks already write below it | `key: 'cart'`, not `'runtime.state.cart'` |
|
|
254
255
|
| `state-toggled-in-branches` | two `setState` of one key, each under a `when` on that key — the second flips back what the first wrote | `toggleState({ key })`; for something shown by default, a key named for hiding it |
|
|
255
256
|
| `STYLE_WITHOUT_TAG` | style on a provider that renders no element of its own | `subType: 'div'` on the provider, or style its parent |
|
|
256
|
-
| `tablet-rule-skips-mobile` | a tablet rule phones never get — mobile inherits desktop, not tablet | write it under `compact` (tablet and mobile together) |
|
|
257
|
+
| `tablet-rule-skips-mobile` | a tablet rule phones never get — mobile inherits desktop, not tablet (a grid’s columns are left alone where the phone is not a grid) | write it under `compact` (tablet and mobile together) |
|
|
257
258
|
| `template-never-resolved` | a condition in an attribute, which only resolves `{{ name\|filter }}` — used as written | move it into `bindTemplate` |
|
|
258
259
|
| `template-or-value` | a template's `or` (or `and`) beside a text or a number — `sort or 'listeners'` — which answers true or false, never the value | a fallback value with `??`: `sort ?? 'listeners'`; a test with `or` between two conditions |
|
|
259
260
|
| `test-account-role-gone` | a test account holds a visitor role the space does not declare in `settings.visitorRoles` — removed since, or never there: a journey plays it without that role, and one that needed what it gave fails | one of the space’s roles for the account — or the role declared again |
|
|
@@ -271,18 +272,21 @@ Nothing is wrong: the page renders as written. Each is a shorter way to the same
|
|
|
271
272
|
|
|
272
273
|
| Code | Written the long way | The short way |
|
|
273
274
|
| --- | --- | --- |
|
|
274
|
-
| `class-overrides-class` | one class's shorthand erasing the longhand another class on the same element writes out — `padding` over `padding-top` — or the same property set over the class listed after it — `gap` over `gap` — because the stylesheet writes it later: classes in the order they are first met, a breakpoint's rules after the base, never the order of a class list | the longhands the shorthand means instead of it (`padding-left`, `padding-right`), so it leaves the other class's alone; the same property, left to one of the two or written on the element itself — or `quiet: ['class-overrides-class']` when the winner is meant to win |
|
|
275
|
+
| `class-overrides-class` | one class's shorthand erasing the longhand another class on the same element writes out — `padding` over `padding-top` — or the same property set over the class listed after it — `gap` over `gap` — because the stylesheet writes it later: classes in the order they are first met, a breakpoint's rules after the base, never the order of a class list — said by `author` alone, which reads the shorthand a rule was written with — the stylesheet holds the longhands it stands for | the longhands the shorthand means instead of it (`padding-left`, `padding-right`), so it leaves the other class's alone; the same property, left to one of the two or written on the element itself — or `quiet: ['class-overrides-class']` when the winner is meant to win |
|
|
275
276
|
| `content-attribute` | a button or a link whose children are only its words and an icon — a `text`, a `fontAwesome` — elements more than it needs | its own `content` and `icon` (`link({ href, content: 'Docs', icon: 'fa-solid fa-arrow-right', iconPlacement: 'after' })`); the icon's class goes on the `icon` slot, and what the text's class adds on the box's class, never the class itself |
|
|
276
277
|
| `custom-css-class` | a `customCss` rule a class can hold — `.card:hover`, `.panel .icon` | the class's own `states` or `ancestors`, where the style editor reads it back and a breakpoint can change it |
|
|
277
278
|
| `custom-css-notifications` | the toasts or their icon, close button or progress bar dressed with `.Toastify__*` rules in `customCss` | `notifications: { font, fontSize, fontWeight, minHeight, iconSize, closeColor, progressHeight, … }` |
|
|
278
279
|
| `custom-css-sdk-default` | `customCss` repeating what the SDK already does for every space — less motion when asked, the theme toggle showing one icon | nothing: remove it |
|
|
279
280
|
| `custom-css-slot` | a part of a built-in element dressed in `customCss` by the SDK's markup — a form control's `<input>`, a pager's buttons, a heading inside a markdown | a class on the slot of that part — `slots: { field: input }`, `elements.<type>.slots` — with its states |
|
|
281
|
+
| `desktop-only` | a page, layout or component styled for the desktop alone where a phone (390 px) breaks — a width past 480 px with no `max-width` holding it; a grid whose fixed columns and gaps are wider than a phone, or three or more columns sharing its width a page’s parts apart (a gap of 16 px or more) and left narrower than 120 px each; type past 64 px — that no `mobile` rule of the classes on it sets again (a style’s `mobile` is laid over its `desktop` alone, so a `tablet` rule does not reach a phone). What a `mobile` rule hides is left out, as is a grid it lays out otherwise (`display: flex`), a width inside a box that clips or scrolls it sideways (`overflow-x: auto` round a table), a layout fluid on its own — wrapping flex, `%`, `min()`, `clamp()`, `repeat(auto-fit, minmax(…))` —, a row whose one column grows (`48px 1fr auto`), a dense widget’s many thin columns, and a space written mobile first | the phone's value in the class's `mobile` rules (`styles('card', { css: { desktop: { … }, mobile: { gridTemplateColumns: '1fr' } } })`), or a value fluid on its own — `width: 'min(960px, 100%)'`, `font-size: 'clamp(32px, 6vw, 72px)'`, `grid-template-columns: 'repeat(auto-fit, minmax(240px, 1fr))'` — or, for a surface only a desktop opens, `quiet: ['desktop-only']` on it, with why |
|
|
280
282
|
| `element-color-inherited` | `elements` giving a type — a heading, a text, a link — `color: inherit` or the page's own colour, which it takes by itself | remove it, and name the colour once on `elements.page`: every element reads in the page’s colour, a link’s words included |
|
|
281
283
|
| `heading-level-skipped` | an `h4` right after an `h2` on a page as it is drawn — inside its layouts, with the headings a `markdown` writes, and without those that start hidden (`visible: false`): the outline misses a level (Lighthouse: "not in a sequentially-descending order") | the next level down; size it with its class |
|
|
282
284
|
| `heavy-animation` | keyframes animating what the browser repaints or lays out again on every frame — a size, a position, a blur, a shadow, or a colour in a loop — which stutters whenever the page is busy, most of all while it loads | `opacity` and `transform`: a size or a position is `translate`/`scale`, a blur or a shadow is the `opacity` of a layer carrying it; a loop that must animate anything else starts `paused` and runs under `[data-hydrated]` |
|
|
285
|
+
| `heavy-layout` | one layout whose own part of the document passes 250 KB — every page drawn in it is downloaded with it, the first a visitor opens at least — with how many pages carry it and what 10,000 first visits move for it | what only some of its pages show moved into those pages, or into a component they place; rows of data as one `list` of a component (`list({ items, row })`) — or, for a shell heavy on purpose, `quiet: ['heavy-layout']` on the layout, with why |
|
|
283
286
|
| `heavy-page` | one page whose part of the document passes 250 KB — every visitor downloads it before the page is theirs — with the shapes written again most inside it, by what they weigh | the rows of data as one `list` of a component, read from the data (`list({ items, row })`), and a block written per state as one element whose state picks its content: the document then holds one copy — or, for an app's page heavy for how many elements it has, `quiet: ['heavy-page']` on the page, with why |
|
|
284
287
|
| `literal-colour` | a colour written out in a class where the space has a token of that value — it stays put in the dark scheme | `var(--token)` when it should follow the scheme; a token of one value of its own when it must stay the same in both |
|
|
285
|
-
| `
|
|
288
|
+
| `many-elements` | a page that builds more than 1,500 elements as it opens — its own, its layouts’ and its components’ once per instance, not those that start hidden with `loadStrategy` `lazy` or `visible` — with what a visit downloads for them: a phone builds, styles and lays out each before the page answers (Lighthouse flags a page past about 1,400) | `loadStrategy: 'lazy'` on what starts hidden until something shows it (`visible: false`) — a tab, a panel, a dialog — so it is built the first time it is shown (one a condition shows may be on screen at once, and is not named); rows of data as one `list`; a part few visitors reach as a page of its own — or, for an app's page rich on purpose, `quiet: ['many-elements']` on the page, with why |
|
|
289
|
+
| `not-found-page` | a space with no page of its own for an address no other page answers — a plain one was added, in the home page’s layout, sent with status 404 — said by `author` alone, which reads that the page was added: written, it is a page like any other | a page whose slug is `'*'`: `{ id: 'not-found', name: 'Not found', slug: '*', layout: …, body: [...] }` |
|
|
286
290
|
| `page-without-main` | a page that draws no `main` landmark — neither it nor its layouts: a screen reader skipping to the content and a browser agent find no place where the page's own content starts (Lighthouse: "Document does not have a main landmark") | the container holding the page's content drawn as `main` (`container({ subType: 'main', children })`) — in the layout's slot when its pages share the shell — once a page |
|
|
287
291
|
| `plugin-custom-host` | a `custom` element naming, by `renderType`, a plugin whose declaration the space was handed | place it from its declaration — `const seatPicker = defineElement(declaration)`, then `seatPicker({ id, … })`: typed by what it declares (a `definePlugin` declaration carries its attributes), the element the builder adds too |
|
|
288
292
|
| `repeated-expression` | the same long expression — its numbers and words aside — written into many bindings, steps or attributes: a sum or a choice worked out again in every copy, and carried by the document once per copy | what the copies share as a computed value (`computed: { chosen: '{{ … }}' }`, read as `computed.chosen`), answering `null` off the page that reads it (`navigation.currentPageId`), each copy keeping what differs; copies side by side as one `list` whose rows carry what differs (`list({ items, row })`) |
|
|
@@ -20,7 +20,8 @@ is a bug to fix; a suggestion is a shorter way to the same page — take it unle
|
|
|
20
20
|
reason is usually that the copies are about to diverge. `npx @plitzi/cli explain repeated-on-pages` explains any code.
|
|
21
21
|
|
|
22
22
|
Left on purpose, say so where it is written — `quiet` on an element it is about (a component's instance too:
|
|
23
|
-
`component(id, { quiet })`; a page for `heavy-page`, an app's page heavy for how many elements it has
|
|
23
|
+
`component(id, { quiet })`; a page for `heavy-page`, an app's page heavy for how many elements it has; the one element
|
|
24
|
+
every element it is about sits in, for copies side by side — a row of plan cards), and it is not
|
|
24
25
|
offered again, in the builder or over MCP either (it is kept in the
|
|
25
26
|
document):
|
|
26
27
|
|
|
@@ -151,7 +151,8 @@ Every page is now its content and nothing else, and every page is guaranteed the
|
|
|
151
151
|
status 404, in the layout you give it, so the visitor is still on the site with a way back. Its own address answers
|
|
152
152
|
404 too.
|
|
153
153
|
- **One per folder, if a section wants its own.** In a folder (`folder: 'docs'`) it answers that folder's unknown
|
|
154
|
-
addresses; the deepest folder's wins, the space's takes the rest. A page whose `flag` is off shows it too.
|
|
154
|
+
addresses; the deepest folder's wins, the space's takes the rest. A page whose `flag` is off shows it too. Never two
|
|
155
|
+
in one place — the space, or one folder: the router would pick one, so `author` refuses it (`not-found-twice`).
|
|
155
156
|
- **A space with none is given a plain one** — a title and a link home, in the home page's layout — and `author`
|
|
156
157
|
suggests writing your own (`not-found-page`): say it in the space's words.
|
|
157
158
|
- **A page that exists but finds nothing** — `/products/:slug` for a slug no product has — is sent with 404 too when
|