@peripheries/renderer 0.27.0 → 0.28.1

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 CHANGED
@@ -7,7 +7,7 @@ the same in each.
7
7
  | Entry | Holds |
8
8
  |---|---|
9
9
  | `@peripheries/renderer/core` | Framework-free: cells and thin-ref hydration, references and conditions, the data context, walks and state names (`layerName`, the layer catalog `LAYER_ROLES`), cell props, layout, document structure, bundle refs and resolution, the shared store, `loadPageData(page, source)`, validation, `DIAGNOSTICS` and `PAGE_RULES` |
10
- | `@peripheries/renderer/catalog` | `checkCatalog`: what a component repo runs on the knowledge it emits. The only entry with a JSON Schema validator (ajv) |
10
+ | `@peripheries/renderer/catalog` | `checkCatalog`: what a component repo runs on the knowledge it emits. `validatePageProps`: each literal prop against its schema. The only entry with a JSON Schema validator: `@cfworker/json-schema`, which walks a schema as data (Ajv's `new Function` is refused by a browser under an enforced CSP). A schema it can't run is counted (`unrunnableSchemas()`), logged once and reported as `KNOWLEDGE_SCHEMA_INVALID`, never skipped. Ajv is a dev dependency, for the tests that compare the two |
11
11
  | `@peripheries/renderer/react` | `PageRenderer`, `CellView`, `StructureView`, the cell states, `useContainerSize`, `useFormsRuntime` and its `FormSlotProps` and `FormAnswer` |
12
12
  | `@peripheries/renderer/runtime` | What a page boots with: the import map and boot script, the shims, `installRuntime`, the store bundles import |
13
13
  | `@peripheries/renderer/theme` | The org theme pipeline: `parseTheme` (version 1 or 2 in, version 2 out, with diagnostics), `themeTokens` (semantic overrides derived in OKLCH), `themeCss` (the `theme` layer), `checkTheme` (WCAG contrast) |
@@ -83,7 +83,10 @@ bundle's `ThemeProvider` export.
83
83
 
84
84
  ## Versions
85
85
 
86
- - **Unreleased:** `RENDER_FUNCTIONS` adds `advisor_add_allowed(p_org_id)`: whether the viewer may
86
+ - **Unreleased:** `RENDER_FUNCTIONS` adds `calendar_mine` and `events_about`, the event model's two reads
87
+ (what the viewer owns, attends or is assigned in a window; the events about a client, project or other
88
+ record). Both invalidate on `event`, `event_type`, `event_participant` and `event_edge`. A page cell binds
89
+ them like the other render functions instead of reading the event table. `RENDER_FUNCTIONS` also adds `advisor_add_allowed(p_org_id)`: whether the viewer may
87
90
  add advisors (a bare Boolean; bind it with `result.path: 'advisor_add_allowed'`). It also adds
88
91
  `pages_awaiting_release(p_project_id)`:
89
92
  a project's pages whose newest main page-state is newer than the one their