@peripheries/renderer 0.21.0 → 0.23.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.
Files changed (39) hide show
  1. package/README.md +90 -0
  2. package/dist/catalog.js +2 -2
  3. package/dist/chunks/forms-CCAE7sCu.js +342 -0
  4. package/dist/chunks/forms-CCAE7sCu.js.map +1 -0
  5. package/dist/chunks/{query-BPuCJC1C.js → query-LnTbQghF.js} +167 -7
  6. package/dist/chunks/query-LnTbQghF.js.map +1 -0
  7. package/dist/chunks/{structure-o9pYoDjD.js → structure-BrKSgzRJ.js} +2 -2
  8. package/dist/chunks/{structure-o9pYoDjD.js.map → structure-BrKSgzRJ.js.map} +1 -1
  9. package/dist/chunks/{validate-4LgH8QMJ.js → validate-B_g7719l.js} +21 -6
  10. package/dist/chunks/validate-B_g7719l.js.map +1 -0
  11. package/dist/core.js +134 -27
  12. package/dist/core.js.map +1 -1
  13. package/dist/forms.js +2 -0
  14. package/dist/react.js +353 -5
  15. package/dist/react.js.map +1 -1
  16. package/dist/testing.js +213 -2
  17. package/dist/testing.js.map +1 -1
  18. package/dist/types/core/data-context.d.ts +5 -0
  19. package/dist/types/core/diagnostics.d.ts +19 -3
  20. package/dist/types/core/graph.d.ts +17 -1
  21. package/dist/types/core/index.d.ts +4 -3
  22. package/dist/types/core/load-page.d.ts +71 -18
  23. package/dist/types/core/query.d.ts +18 -0
  24. package/dist/types/core/release.d.ts +21 -0
  25. package/dist/types/core/sources.d.ts +9 -3
  26. package/dist/types/core/types.d.ts +2 -0
  27. package/dist/types/forms/conditions.d.ts +55 -0
  28. package/dist/types/forms/index.d.ts +3 -0
  29. package/dist/types/forms/model.d.ts +134 -0
  30. package/dist/types/forms/port.d.ts +69 -0
  31. package/dist/types/react/cell-view.d.ts +2 -0
  32. package/dist/types/react/index.d.ts +1 -0
  33. package/dist/types/react/page-renderer.d.ts +5 -0
  34. package/dist/types/react/use-forms-runtime.d.ts +201 -0
  35. package/dist/types/testing/form-workbook.d.ts +106 -0
  36. package/dist/types/testing/index.d.ts +1 -0
  37. package/package.json +6 -2
  38. package/dist/chunks/query-BPuCJC1C.js.map +0 -1
  39. package/dist/chunks/validate-4LgH8QMJ.js.map +0 -1
package/dist/testing.js CHANGED
@@ -1,7 +1,8 @@
1
- import { c as prepareDocument } from "./chunks/query-BPuCJC1C.js";
1
+ import { l as prepareDocument } from "./chunks/query-LnTbQghF.js";
2
2
  import { o as projectModule } from "./chunks/load-CjPvISzH.js";
3
3
  import { i as bundleScope } from "./chunks/refs-BLUokra5.js";
4
4
  import { n as pageBundles, t as pageBundleRefs } from "./chunks/page-bundles-DLRIBP8g.js";
5
+ import { r as fromPageSteps } from "./chunks/forms-CCAE7sCu.js";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  //#region \0rolldown/runtime.js
7
8
  var __defProp = Object.defineProperty;
@@ -942,7 +943,217 @@ function goldenBundles(g, cells, { loaded = true } = {}) {
942
943
  const modules = loaded ? rows.map((row) => projectModule(row, all.find((b) => b.row.id === row.id).golden.module, all.find((b) => b.row.id === row.id).golden.contracts)) : null;
943
944
  return pageBundles(scope, rows, modules, g.page.org_id);
944
945
  }
946
+ var form_workbook_page_default = {
947
+ id: "form-workbook",
948
+ name: "Planning workbook",
949
+ org_id: "example-advisor",
950
+ project_id: "example-project",
951
+ process_id: null,
952
+ graph_node_id: null,
953
+ page_type: "planning-workbook",
954
+ status: "published",
955
+ is_template: false,
956
+ metadata: null,
957
+ content: { "cells": [
958
+ {
959
+ "id": "welcome",
960
+ "component": "Prose",
961
+ "props": { "blocks": [{ "text": "This workbook takes about twenty minutes. Your answers save as you go." }] }
962
+ },
963
+ {
964
+ "id": "q-name",
965
+ "component": "ShortText",
966
+ "props": { "question": {
967
+ "key": "full_name",
968
+ "label": "Your full name",
969
+ "type": "text",
970
+ "required": true
971
+ } }
972
+ },
973
+ {
974
+ "id": "q-birth",
975
+ "component": "Date",
976
+ "props": { "question": {
977
+ "key": "birth_date",
978
+ "label": "Date of birth",
979
+ "type": "date",
980
+ "required": true
981
+ } }
982
+ },
983
+ {
984
+ "id": "q-children",
985
+ "component": "Choice",
986
+ "props": { "question": {
987
+ "key": "has_children",
988
+ "label": "Do you have children?",
989
+ "type": "radio",
990
+ "required": true,
991
+ "options": [{
992
+ "value": "yes",
993
+ "label": "Yes"
994
+ }, {
995
+ "value": "no",
996
+ "label": "No"
997
+ }]
998
+ } }
999
+ },
1000
+ {
1001
+ "id": "q-children-names",
1002
+ "component": "LongText",
1003
+ "props": { "question": {
1004
+ "key": "children_names",
1005
+ "label": "Their names",
1006
+ "type": "textarea",
1007
+ "required": true
1008
+ } },
1009
+ "when": { "all": [{
1010
+ "q": "has_children",
1011
+ "op": "eq",
1012
+ "value": "yes"
1013
+ }] }
1014
+ },
1015
+ {
1016
+ "id": "q-guardians",
1017
+ "component": "LongText",
1018
+ "props": { "question": {
1019
+ "key": "guardians",
1020
+ "label": "Who would look after them?",
1021
+ "type": "textarea",
1022
+ "required": false
1023
+ } },
1024
+ "when": { "all": [{
1025
+ "q": "has_children",
1026
+ "op": "eq",
1027
+ "value": "yes"
1028
+ }] }
1029
+ },
1030
+ {
1031
+ "id": "draft",
1032
+ "component": "Prose",
1033
+ "props": { "blocks": [{ "text": "Read the draft clause before you answer the next questions." }] }
1034
+ },
1035
+ {
1036
+ "id": "q-executor",
1037
+ "component": "ShortText",
1038
+ "props": { "question": {
1039
+ "key": "executor",
1040
+ "label": "Who should be your executor?",
1041
+ "type": "text",
1042
+ "required": true
1043
+ } }
1044
+ },
1045
+ {
1046
+ "id": "upload",
1047
+ "component": "Upload",
1048
+ "props": { "question": {
1049
+ "key": "id_document",
1050
+ "label": "A photo of your ID",
1051
+ "type": "file",
1052
+ "required": false
1053
+ } }
1054
+ },
1055
+ {
1056
+ "id": "review",
1057
+ "component": "Review",
1058
+ "props": {}
1059
+ },
1060
+ {
1061
+ "id": "submit",
1062
+ "component": "SubmitButton",
1063
+ "props": {}
1064
+ }
1065
+ ] },
1066
+ layout: {
1067
+ "type": "flow",
1068
+ "chapters": [{
1069
+ "id": "about-you",
1070
+ "title": "About you"
1071
+ }, {
1072
+ "id": "your-plan",
1073
+ "title": "Your plan"
1074
+ }],
1075
+ "steps": [
1076
+ {
1077
+ "id": "welcome",
1078
+ "title": "Welcome",
1079
+ "chapter": "about-you",
1080
+ "cell_ids": ["welcome"]
1081
+ },
1082
+ {
1083
+ "id": "you",
1084
+ "title": "You",
1085
+ "chapter": "about-you",
1086
+ "cell_ids": ["q-name", "q-birth"]
1087
+ },
1088
+ {
1089
+ "id": "family",
1090
+ "title": "Your family",
1091
+ "chapter": "about-you",
1092
+ "cell_ids": [
1093
+ "q-children",
1094
+ "q-children-names",
1095
+ "q-guardians"
1096
+ ]
1097
+ },
1098
+ {
1099
+ "id": "executor",
1100
+ "title": "Your executor",
1101
+ "chapter": "your-plan",
1102
+ "cell_ids": ["draft", "q-executor"]
1103
+ },
1104
+ {
1105
+ "id": "documents",
1106
+ "title": "Documents",
1107
+ "chapter": "your-plan",
1108
+ "cell_ids": ["upload"]
1109
+ },
1110
+ {
1111
+ "id": "review",
1112
+ "title": "Review and submit",
1113
+ "chapter": "your-plan",
1114
+ "cell_ids": ["review", "submit"]
1115
+ }
1116
+ ],
1117
+ "submit": { "required": "warn" }
1118
+ }
1119
+ };
1120
+ //#endregion
1121
+ //#region packages/renderer/src/testing/form-workbook.ts
1122
+ var SINGLE_LINE = new Set([
1123
+ "text",
1124
+ "number",
1125
+ "date",
1126
+ "datetime",
1127
+ "email",
1128
+ "phone"
1129
+ ]);
1130
+ var KIND = {
1131
+ Prose: "content",
1132
+ Review: "review",
1133
+ Upload: "upload",
1134
+ SubmitButton: "other"
1135
+ };
1136
+ var formWorkbookPage = form_workbook_page_default;
1137
+ function formWorkbookItem(cellId) {
1138
+ const cell = form_workbook_page_default.content.cells.find((c) => c.id === cellId);
1139
+ if (!cell) return null;
1140
+ const q = cell.props.question;
1141
+ const kind = KIND[cell.component] ?? (q ? "question" : "other");
1142
+ return {
1143
+ id: cell.id,
1144
+ kind,
1145
+ questions: q ? [{
1146
+ key: q.key,
1147
+ label: q.label,
1148
+ required: q.required,
1149
+ singleLine: SINGLE_LINE.has(q.type),
1150
+ definition: { type: q.type }
1151
+ }] : [],
1152
+ ...cell.when ? { when: cell.when } : {}
1153
+ };
1154
+ }
1155
+ var formWorkbookModel = () => fromPageSteps(form_workbook_page_default, formWorkbookItem);
945
1156
  //#endregion
946
- export { ADVISOR_ORG, CLIENT_ORG, FIXTURE_BASE_PROPS, FIXTURE_EMAIL_DOMAIN, FIXTURE_ID, FIXTURE_ORG_SLUGS, GOLDEN_PAGES, dashboardPage, documentPage, components_exports as fixtureComponents, fixtureId, goldenBundleRow, goldenBundles, goldenGraphSource, goldenScope, mixedPage, thinRefPage, walkPage };
1157
+ export { ADVISOR_ORG, CLIENT_ORG, FIXTURE_BASE_PROPS, FIXTURE_EMAIL_DOMAIN, FIXTURE_ID, FIXTURE_ORG_SLUGS, GOLDEN_PAGES, dashboardPage, documentPage, components_exports as fixtureComponents, fixtureId, formWorkbookItem, formWorkbookModel, formWorkbookPage, goldenBundleRow, goldenBundles, goldenGraphSource, goldenScope, mixedPage, thinRefPage, walkPage };
947
1158
 
948
1159
  //# sourceMappingURL=testing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.js","names":[],"sources":["../src/testing/ids.ts","../src/testing/base-props.ts","../src/testing/components.tsx","../src/testing/golden.ts","../src/testing/sources.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAKA,IAAa,aAAa,MAAc,2BAA2B,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG;AAE7F,IAAa,aAAa;AAG1B,IAAa,oBAAoB,CAAC,kBAAkB,iBAAiB;AACrE,IAAa,uBAAuB;AAEpC,IAAa,aAAa;CAAE,IAAI,UAAU,CAAC;CAAG,MAAM;AAAiB;AACrE,IAAa,cAAc;CAAE,IAAI,UAAU,CAAC;CAAG,MAAM;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AM,EAAE,OAAO,MAAM,IAAI,EAAE,GAAG,KAAK,KAAK,MAAM,GAAG;CAC5E;CACA,MAAM,UAAiC,SAAS,KAAK,KAAK,QAAQ,cAAc,KAAK,IAAI,MAAM,MAAM,EAAE,IAAI,OAAO,IAAI,EAAE,CAAC,CAAE,OAAO,QAAQ,IAAI,MAAM,MAAM,EAAE,IAAI,OAAO,IAAI,EAAE,CAAC,CAAE,OAAO,SAAS,CAAC,IAAI;CACrM,OAAO,YAAY,OAAO,MAAM,SAAS,EAAE,KAAK,MAAM;AACxD"}
1
+ {"version":3,"file":"testing.js","names":["page"],"sources":["../src/testing/ids.ts","../src/testing/base-props.ts","../src/testing/components.tsx","../src/testing/golden.ts","../src/testing/sources.ts","../src/testing/fixtures/form-workbook.page.json","../src/testing/form-workbook.ts"],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,IAAa,aAAa,MAAc,2BAA2B,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG;AAE7F,IAAa,aAAa;AAG1B,IAAa,oBAAoB,CAAC,kBAAkB,iBAAiB;AACrE,IAAa,uBAAuB;AAEpC,IAAa,aAAa;CAAE,IAAI,UAAU,CAAC;CAAG,MAAM;AAAiB;AACrE,IAAa,cAAc;CAAE,IAAI,UAAU,CAAC;CAAG,MAAM;AAAkB;;;ACTvE,IAAa,qBAAgC;CAC3C,MAAM;EAAE,IAAI,UAAU,CAAC;EAAG,OAAO,UAAU;EAAwB,UAAU;CAAiB;CAC9F,QAAQ;EAAE,IAAI,WAAW;EAAI,SAAS,WAAW;EAAM,MAAM;CAAiB;CAC9E,OAAO;EAAE,cAAc;EAAW,gBAAgB;CAAU;AAC9D;;;;;;;;;;;;;;;;;ACDA,SAAgB,SAAS,EAAE,OAAO,YAAmB;CACnD,OACE,KAAC,UAAD;EAAQ,eAAY;EAApB,UAAA,CACE,IAAC,MAAD,EAAA,UAAK,OAAO,SAAS,EAAE,EAAM,CAAA,GAC5B,aAAa,KAAA,KAAa,IAAC,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AE1FA,IAAM,cAAc,IAAI,IAAI;CAAC;CAAQ;CAAU;CAAQ;CAAY;CAAS;AAAO,CAAC;AACpF,IAAM,OAAqC;CAAE,OAAO;CAAW,QAAQ;CAAU,QAAQ;CAAU,cAAc;AAAQ;AAGzH,IAAa,mBAAmBA;AAGhC,SAAgB,iBAAiB,QAAiC;CAChE,MAAM,OAAQA,2BAAK,QAAQ,MAAwB,MAAM,MAAM,EAAE,OAAO,MAAM;CAC9E,IAAI,CAAC,MAAM,OAAO;CAClB,MAAM,IAAI,KAAK,MAAM;CACrB,MAAM,OAAqB,KAAK,KAAK,eAAe,IAAI,aAAa;CACrE,OAAO;EACL,IAAI,KAAK;EACT;EACA,WAAW,IAAI,CAAC;GAAE,KAAK,EAAE;GAAK,OAAO,EAAE;GAAO,UAAU,EAAE;GAAU,YAAY,YAAY,IAAI,EAAE,IAAI;GAAG,YAAY,EAAE,MAAM,EAAE,KAAK;EAAE,CAAC,IAAI,CAAC;EAC5I,GAAI,KAAK,OAAO,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC;CACzC;AACF;AAGA,IAAa,0BAAqC,cAAcA,4BAAM,gBAAgB"}
@@ -39,6 +39,11 @@ export declare function buildDataContext(input: {
39
39
  records?: Record<string, NodeRecord>;
40
40
  /** The id of each newest state, keyed as `states`: where an edit of a declared value goes (INV-DOC-6). */
41
41
  stateIds?: Map<string, string>;
42
+ /** What version each state was read at (StateRow), by `system/node`, when the page was read at one. */
43
+ stateVersions?: Map<string, {
44
+ versionId: string | null;
45
+ outOfScope: boolean;
46
+ }>;
42
47
  /** Whose static values these are: the page's (the default) or a cell's. */
43
48
  staticScope?: 'page' | 'cell';
44
49
  }): DataContext;
@@ -114,11 +114,11 @@ export declare const DIAGNOSTICS: {
114
114
  readonly fix: "Copy the matching recipe’s descriptor into `{ descriptor }` (the component’s pattern pack has it), or bind the graph node that produces the data. docs/plan/host-contract-verdicts.md maps every id.";
115
115
  };
116
116
  readonly STATE_UNKNOWN_NAME: {
117
- readonly meaning: "A state name is not one of the twelve systems.";
118
- readonly fix: "Use `<tier>_<role>`: tier meta, eng or ops; role data, process, model or appraisal (default `eng_data`).";
117
+ readonly meaning: "A state name is not `<tier>_<role>`.";
118
+ readonly fix: "Use `<tier>_<role>`: tier meta, eng or ops; role a registered layer’s role (data, process, model, appraisal, or another such as answer); default `eng_data`.";
119
119
  };
120
120
  readonly STATE_UNKNOWN_SYSTEM: {
121
- readonly meaning: "The page’s process has no system of that name.";
121
+ readonly meaning: "The page’s process has no main system of that name on its graphs.";
122
122
  readonly fix: "Read a system the process has, usually `eng_data`.";
123
123
  };
124
124
  readonly LABEL_RESERVED: {
@@ -133,6 +133,14 @@ export declare const DIAGNOSTICS: {
133
133
  readonly meaning: "The document isn’t one query operation that reads only tables, views and the render functions.";
134
134
  readonly fix: "Write one `query`, whose root fields are `<table>Collection`, `<table>ByPk`, `node` or a render function such as `walk_graph`; no mutations, RPCs or introspection.";
135
135
  };
136
+ readonly DESCRIPTOR_VERSION_FILTER: {
137
+ readonly meaning: "The document filters `systemCollection`, `graph_nodeCollection` or `graph_edgeCollection` on `version`, or passes their whole filter as a variable. A page reads main systems and placements only, and the host adds that filter itself.";
138
+ readonly fix: "Drop the `version` filter and write the filter in the document; a branch is read through a version context.";
139
+ };
140
+ readonly DESCRIPTOR_STATE_UNSCOPED: {
141
+ readonly meaning: "The document reads states, runs or a latest-state view by node or with no filter, so it would read every system’s rows, a branch’s included.";
142
+ readonly fix: "Read them under a `systemCollection`, or filter `system_id` (or the id, or the run) with `eq` or `in`; for the latest state across systems, use a render function.";
143
+ };
136
144
  readonly DESCRIPTOR_VARIABLE_MISSING: {
137
145
  readonly meaning: "The document requires a variable that `variables` doesn’t give.";
138
146
  readonly fix: "Give it in `variables`, as a literal or a reference (`@params.clientId`, `@viewer.userId`, `@budget.graph_node_id`); `$orderBy` comes from `order_by`.";
@@ -149,6 +157,10 @@ export declare const DIAGNOSTICS: {
149
157
  readonly meaning: "`order_by` is set, but the document declares no `$orderBy`, so it is ignored.";
150
158
  readonly fix: "Declare `$orderBy: [<table>OrderBy!]` and pass `orderBy: $orderBy`, or remove `order_by`.";
151
159
  };
160
+ readonly DESCRIPTOR_ALIAS_JSON_ROOT: {
161
+ readonly meaning: "A render function that returns JSON is aliased at the root; its JSON is decoded by the field’s name, so under an alias it stays a string.";
162
+ readonly fix: "Name the field without an alias (`form_answers(...)`, not `answers: form_answers(...)`) and point `result.path` at it.";
163
+ };
152
164
  readonly DESCRIPTOR_RESULT_PATH: {
153
165
  readonly meaning: "`result.path` names a part of the result the document doesn’t select.";
154
166
  readonly fix: "Point it at a selected field (its alias, if it has one), e.g. `clientCollection`.";
@@ -205,6 +217,10 @@ export declare const DIAGNOSTICS: {
205
217
  readonly meaning: "`nodeTypes: []` filters nothing.";
206
218
  readonly fix: "Leave `nodeTypes` out, or name the types the walk may enter.";
207
219
  };
220
+ readonly SYSTEM_NOT_MAIN: {
221
+ readonly meaning: "A ref, a declaration or a walk names a system that isn’t a main system (a branch’s, or one the viewer can’t read); a page reads main systems only, so its states read as absent.";
222
+ readonly fix: "Name the process’s main system (or none, for the page’s DSNS); a branch is read through a version context, not a system id.";
223
+ };
208
224
  readonly WALK_NO_START: {
209
225
  readonly meaning: "A cell has a traversal, but neither it nor the page has a graph node to start from.";
210
226
  readonly fix: "Publish the page with its graph node, or give the cell a node.";
@@ -1,8 +1,24 @@
1
1
  import { type EdgeRecord, type NodeRecord, type StateName, type StateRecord, type Traversal, type TraversalConfig } from '@peripheries/runtime';
2
2
  import type { DiagnosticCode } from './diagnostics.js';
3
3
  import type { PageCell } from './types.js';
4
- /** The page's systems by name, from its process (and, for eng_data, the page's metadata fallbacks). */
4
+ /** The page's systems by name, from its process's graphs (and, for eng_data, the page's metadata fallback). */
5
5
  export type ProcessSystems = Partial<Record<StateName, string>>;
6
+ /**
7
+ * A main, keyless system on one of a process's graphs, as GraphSource.graphSystems returns it:
8
+ * the graph's `graph_type` (its tier) and the system's layer role (`system_layer.role`; null for
9
+ * a layer that isn't a role, such as `edits`).
10
+ */
11
+ export type GraphSystem = {
12
+ id: string;
13
+ graph_type: string | null;
14
+ role: string | null;
15
+ };
16
+ /**
17
+ * A process's systems by name from its graphs (systems.md §3: the tier is `graph.graph_type`, the
18
+ * role the layer's): every registered layer with a role, not only the four the process columns
19
+ * cache. A layer without a role, or a graph of another type, has no name.
20
+ */
21
+ export declare function systemsFromGraphs(rows: readonly GraphSystem[] | null | undefined): ProcessSystems;
6
22
  /**
7
23
  * Something wrong with a page's configuration (design/renderer.md §7). Codes
8
24
  * are stable, so tools can explain them; `legacy` marks a form still read but
@@ -1,8 +1,8 @@
1
1
  export { CONTENT_FIELDS, hasRef, HYDRATED_CELL_FIELDS, normalizeCell, resolveCell, rootCells, STORE_FIELDS, type CellSource, type ResolvedCell } from './cells.js';
2
2
  export { buildDataContext, collectDeclarations, collectDescriptors, collectStatic, readField, resolveDeclarations, type ResolvedDeclaration, type StateRead } from './data-context.js';
3
- export { mergeStates, needsWalk, readWalk, referencedLabels, RESERVED_LABELS, resolveWalkStart, stateNames, stateValue, systemsFromProcess, walkKey, walkRequest, type Diagnostic, type ProcessSystems, type RawWalk, type WalkBinding, type WalkRequest, type WalkStart, } from './graph.js';
4
- export { loadPageData, resolveDataSystem, resolveSystems, type CellData, type CellWalk, type GraphSource, type NodeRecordRow, type PageRuntime, type PageScope, type QueryPage } from './load-page.js';
5
- export { descriptorShape, orderByVariable, PAGING_VARIABLES, pageVariables, prepareDocument, queryKey, RENDER_FUNCTIONS, resolveDescriptorVariables, selectionShape, shapeAt, UnsafeDocumentError, validateDescriptor, VARIABLE_NAMESPACES, variableLabels, variableReferences, type PreparedDocument, type ResolvedVariables, type SelectionShape, } from './query.js';
3
+ export { mergeStates, needsWalk, readWalk, referencedLabels, RESERVED_LABELS, resolveWalkStart, stateNames, stateValue, systemsFromGraphs, systemsFromProcess, walkKey, walkRequest, type Diagnostic, type GraphSystem, type ProcessSystems, type RawWalk, type WalkBinding, type WalkRequest, type WalkStart, } from './graph.js';
4
+ export { loadPageData, resolveDataSystem, resolveSystems, type CellData, type CellWalk, type GraphSource, type NodeRecordRow, type PageRuntime, type PageScope, type QueryPage, type ReadContext, type StateRow } from './load-page.js';
5
+ export { descriptorShape, orderByVariable, PAGING_VARIABLES, pageVariables, prepareDocument, queryKey, RENDER_FUNCTIONS, RENDER_FUNCTIONS_AHEAD, resolveDescriptorVariables, selectionShape, shapeAt, UnsafeDocumentError, validateDescriptor, VARIABLE_NAMESPACES, variableLabels, variableReferences, type PreparedDocument, type ResolvedVariables, type SelectionShape, } from './query.js';
6
6
  export { selectionIssues } from './selected.js';
7
7
  export { cellPropSources, editTarget, patchAt, STRUCTURE_FIELDS, TOOL_OWNED_KEYS, type EditCell, type EditRefusal, type EditTarget, type OnSource, type PropSource, type PropSourceEntry } from './sources.js';
8
8
  export { cellContext, cellResolutionContext, EACH, pageContext, EACH_DEFAULT_AS, isEach, passesConditions, resolveReferences, settled, type CellScope, type Each, type ResolutionContext } from './references.js';
@@ -25,3 +25,4 @@ export { clearScope, loadScope, saveScope, type StorageMode } from './store/pers
25
25
  export { attachSelectionSetters, attachViewStateSetters, collectScopeIds, projectLive, projectSelections, projectViewState, shallowEqualBundle } from './store/projection.js';
26
26
  export { pageScopeKey, projectScopeKey, resolveScopeId, type ScopeContext } from './store/scope-keys.js';
27
27
  export type * from './store/types.js';
28
+ export { manifestPageFrom, validateManifest, type ManifestPage } from './release.js';
@@ -1,7 +1,23 @@
1
- import { type EmbedSelector, type NodeRecord, type QueryDescriptor, type StateRecord, type Traversal } from '@peripheries/runtime';
1
+ import { type EmbedSelector, type NodeRecord, type QueryDescriptor, type StateRecord, type RecordedEmbed, type Traversal, type VersionContext } from '@peripheries/runtime';
2
2
  import { type ResolvedCell } from './cells.js';
3
- import { type Diagnostic, type ProcessSystems, type RawWalk, type WalkRequest } from './graph.js';
3
+ import { type Diagnostic, type GraphSystem, type ProcessSystems, type RawWalk, type WalkRequest } from './graph.js';
4
4
  import type { DataContext, DataEntry, ProjectPage } from './types.js';
5
+ /**
6
+ * The version a read is made at (versions.md §5.1): a release, a channel or a branch id, opaque
7
+ * to the renderer. Passed as each read's last argument only when the page isn't read at main, so
8
+ * a source that takes no context reads main, as before.
9
+ */
10
+ export type ReadContext = {
11
+ versionId: string;
12
+ };
13
+ /** A state row as a source returns it; the version fields when it was read at a version (StateAsOf). */
14
+ export type StateRow = {
15
+ id: string;
16
+ data: unknown;
17
+ versionId?: string | null;
18
+ unversioned?: boolean;
19
+ outOfScope?: boolean;
20
+ };
5
21
  /** A NodeRecord as a source returns it: its states keyed by system id. */
6
22
  export type NodeRecordRow = Omit<NodeRecord, 'state'> & {
7
23
  stateBySystem: Record<string, StateRecord | null>;
@@ -12,22 +28,29 @@ export type NodeRecordRow = Omit<NodeRecord, 'state'> & {
12
28
  * agency's reads its own client. Every method may cache.
13
29
  */
14
30
  export interface GraphSource {
15
- /** The process row: its `<tier>_<role>_system_id` columns. */
16
- processSystems(processId: string): Promise<Record<string, unknown> | null>;
31
+ /**
32
+ * The main, keyless systems on a process's graphs, with each graph's type and each layer's role
33
+ * (systems.md §3): how a page finds its systems, any registered layer included. Optional for
34
+ * 0.22 sources, which have `processSystems`; G4 drops the process columns, so a source needs this
35
+ * by then.
36
+ */
37
+ graphSystems?(processId: string): Promise<GraphSystem[]>;
38
+ /**
39
+ * The process row: its `<tier>_<role>_system_id` columns, a cache of the four role layers.
40
+ * Read only by a source without `graphSystems`.
41
+ */
42
+ processSystems?(processId: string): Promise<Record<string, unknown> | null>;
17
43
  /** The newest `page_cell_config` of each cell node in a system. */
18
- cellConfigs(systemId: string, graphNodeIds: string[]): Promise<Record<string, Record<string, unknown> | null>>;
44
+ cellConfigs(systemId: string, graphNodeIds: string[], context?: ReadContext): Promise<Record<string, Record<string, unknown> | null>>;
19
45
  /** The newest state's data of each node in a system; missing nodes absent. */
20
- latestStates(systemId: string, graphNodeIds: string[]): Promise<Record<string, unknown>>;
46
+ latestStates(systemId: string, graphNodeIds: string[], context?: ReadContext): Promise<Record<string, unknown>>;
21
47
  /**
22
48
  * The same, with each state's id: what a content edit's version check names (INV-DOC-6).
23
49
  * Optional: without it, declared values carry no state id, and can't be edited.
24
50
  */
25
- latestStateRows?(systemId: string, graphNodeIds: string[]): Promise<Record<string, {
26
- id: string;
27
- data: unknown;
28
- }>>;
29
- walk(request: WalkRequest): Promise<RawWalk>;
30
- nodeRecords(graphNodeIds: string[], systemIds: string[]): Promise<Record<string, NodeRecordRow>>;
51
+ latestStateRows?(systemId: string, graphNodeIds: string[], context?: ReadContext): Promise<Record<string, StateRow>>;
52
+ walk(request: WalkRequest, context?: ReadContext): Promise<RawWalk>;
53
+ nodeRecords(graphNodeIds: string[], systemIds: string[], context?: ReadContext): Promise<Record<string, NodeRecordRow>>;
31
54
  /**
32
55
  * A query, as the viewer, its result shaped by the descriptor's `result`
33
56
  * (design/data.md §6). Variables are resolved, `$orderBy` included. The
@@ -42,12 +65,18 @@ export interface GraphSource {
42
65
  * with no more to load.
43
66
  */
44
67
  queryPage?(descriptor: QueryDescriptor, variables: Record<string, unknown>): Promise<QueryPage>;
68
+ /**
69
+ * Of these systems, the main ones (`system.version` null; versions.md §4.6, graph-model G1):
70
+ * a page reads main only, so a branch system a ref, a declaration or a walk names is read as
71
+ * absent (SYSTEM_NOT_MAIN). Optional: without it, every system named is read.
72
+ */
73
+ mainSystems?(systemIds: string[]): Promise<ReadonlySet<string>>;
45
74
  /**
46
75
  * The page an embed cell names (PageCell.embed, resolved), as the viewer:
47
76
  * by id, or the newest published of a type in a project. Null when none is
48
77
  * readable. Optional: without it, embed cells report EMBED_NOT_FOUND.
49
78
  */
50
- page?(selector: EmbedSelector): Promise<ProjectPage | null>;
79
+ page?(selector: EmbedSelector, context?: ReadContext): Promise<ProjectPage | null>;
51
80
  }
52
81
  /** One page of a paged label. */
53
82
  export type QueryPage = {
@@ -65,6 +94,17 @@ export type PageScope = {
65
94
  context?: Record<string, unknown>;
66
95
  /** Set when loading an embedded page: its own embeds don't load. */
67
96
  embedded?: boolean;
97
+ /**
98
+ * The version the page is read at (versions.md §6.3), resolved by the host: every read takes it,
99
+ * and `@context.version` / `@context.versionKind` name it. Absent or main: today's reads.
100
+ */
101
+ version?: VersionContext;
102
+ /**
103
+ * When the page is read at a release, the release it recorded for each page it embeds (its
104
+ * `metadata.embeds`, from versions_for; versions.md §5.3): an embed renders that release, and
105
+ * one not recorded renders at the viewer's context.
106
+ */
107
+ recordedEmbeds?: RecordedEmbed[];
68
108
  };
69
109
  /** A cell's own walk: `@_traversal`, and the labels its `binding_key` nodes provide. */
70
110
  export type CellWalk = {
@@ -102,18 +142,30 @@ export type PageRuntime = {
102
142
  * (design/data.md §10).
103
143
  */
104
144
  graphNodeIds: string[];
145
+ /** The version the page was read at; absent at main. */
146
+ version?: VersionContext;
147
+ /**
148
+ * The versions the page's states were read from, at a version (each row's `version_id`; nodes
149
+ * outside the scope left out): what print and an embed say they show ("Release N"). Absent at
150
+ * main, or when the source returns no rows with versions.
151
+ */
152
+ readVersionIds?: string[];
153
+ /** An embedded page's version: the release its host recorded for it, or the viewer's context. */
154
+ embedVersion?: 'recorded' | 'context';
105
155
  /** Each embed cell's page, loaded as the viewer (null when not found), by cell id. */
106
156
  embeds?: Record<string, PageRuntime | null>;
107
157
  diagnostics: Diagnostic[];
108
158
  };
159
+ type SystemsSource = Pick<GraphSource, 'graphSystems' | 'processSystems'>;
109
160
  /**
110
- * A page's systems by name: its process's twelve system columns, with the two
111
- * denormalised copies in metadata as eng_data's fallbacks (the PWA's
112
- * eng-data-system-id.ts order: the process, pageProcess, systemGraph).
161
+ * A page's systems by name: the main systems on its process's graphs (`graphSystems`; a 0.22
162
+ * source's process columns otherwise), with `metadata.systemGraph` as eng_data's fallback for a
163
+ * page without a process. `metadata.pageProcess`, a copy of the process columns, isn't read: G4
164
+ * drops the columns it copies.
113
165
  */
114
- export declare function resolveSystems(source: Pick<GraphSource, 'processSystems'>, page: ProjectPage): Promise<ProcessSystems>;
166
+ export declare function resolveSystems(source: SystemsSource, page: ProjectPage): Promise<ProcessSystems>;
115
167
  /** The page's DSNS: what thin refs hydrate from and what declarations read by default. */
116
- export declare function resolveDataSystem(source: Pick<GraphSource, 'processSystems'>, page: ProjectPage): Promise<string | null>;
168
+ export declare function resolveDataSystem(source: SystemsSource, page: ProjectPage): Promise<string | null>;
117
169
  /**
118
170
  * Everything a page needs before it renders (design/core.md §3, stages 1–3;
119
171
  * design/renderer.md §3, §5; design/data.md §6): read every ref's node config
@@ -131,3 +183,4 @@ export declare function resolveDataSystem(source: Pick<GraphSource, 'processSyst
131
183
  */
132
184
  export declare function unresolvedEntry(missing: string[], data: DataContext): DataEntry;
133
185
  export declare function loadPageData(page: ProjectPage, source: GraphSource, scope?: PageScope): Promise<PageRuntime>;
186
+ export {};
@@ -10,6 +10,12 @@ import { type ResolutionContext } from './references.js';
10
10
  * (tests/integration/graph-reads.test.ts).
11
11
  */
12
12
  export declare const RENDER_FUNCTIONS: Readonly<Record<string, readonly string[]>>;
13
+ /**
14
+ * Render functions declared before the schema milestone that brings them, by milestone: a
15
+ * document may name one now, and it reads nothing until the function exists. The database test
16
+ * checks each like the rest once it exists, and fails if its milestone is in and it still isn't.
17
+ */
18
+ export declare const RENDER_FUNCTIONS_AHEAD: Readonly<Record<string, string>>;
13
19
  export type PreparedDocument = {
14
20
  text: string;
15
21
  operationName: string | undefined;
@@ -20,7 +26,19 @@ export type PreparedDocument = {
20
26
  };
21
27
  export declare class UnsafeDocumentError extends Error {
22
28
  name: string;
29
+ /** The diagnostic a descriptor's check reports; DESCRIPTOR_DOCUMENT_INVALID when unset. */
30
+ readonly code?: 'DESCRIPTOR_VERSION_FILTER' | 'DESCRIPTOR_STATE_UNSCOPED';
31
+ constructor(message: string, options?: {
32
+ code: 'DESCRIPTOR_VERSION_FILTER' | 'DESCRIPTOR_STATE_UNSCOPED';
33
+ });
23
34
  }
35
+ /**
36
+ * The collections a render-time document reads main rows of only (versions.md §4.6, graph-model
37
+ * G1 · DF M0): prepareDocument adds `version: { is: NULL }` to each one's filter, at any depth.
38
+ * A branch is read through a version context, never a hand-written filter, so a document that
39
+ * filters on `version` itself is refused.
40
+ */
41
+ export declare const MAIN_ONLY_COLLECTIONS: ReadonlySet<string>;
24
42
  /**
25
43
  * A GraphQL document checked against the render-time rule (design/renderer.md
26
44
  * §4.5) and ready to send: exactly one `query` operation whose root fields are
@@ -0,0 +1,21 @@
1
+ import type { ReleaseProblem } from '@peripheries/runtime';
2
+ import type { ProjectPage } from './types.js';
3
+ import { type Catalog } from './validate.js';
4
+ /** One page the release records: the node it lives on (the anchor, or its artifact) and its document. */
5
+ export type ManifestPage = {
6
+ graphNodeId: string;
7
+ page: Pick<ProjectPage, 'content' | 'layout'> & {
8
+ is_template?: boolean | null;
9
+ };
10
+ };
11
+ /** The pages' errors as VERSION_INVALID's problems: a release that has any isn't cut. Warnings don't stop one. */
12
+ export declare function validateManifest(pages: ManifestPage[], catalog?: Catalog): ReleaseProblem[];
13
+ /**
14
+ * A page artifact's data state as a ManifestPage (pages.md §2): the artifact's `data` is the page
15
+ * document itself (`cells`, `data`, page configuration such as `layout.editing`), each cell
16
+ * carrying the `layout_entry` the publish splits into the row's `layout.structure`. So the
17
+ * document is the content, and a `layout` key, when the artifact has one, the layout. The
18
+ * structure isn't rebuilt from the entries (the publish's split), so STRUCTURE_INVALID is judged
19
+ * at publish, not here.
20
+ */
21
+ export declare function manifestPageFrom(graphNodeId: string, data: unknown): ManifestPage;