@shing.wong/sure-factor 0.6.0 → 0.6.2

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 CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this package are documented here.
4
4
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [Unreleased]
7
+
8
+ ### Changed — strict guard grammar (slated for 0.6.2; version not bumped here)
9
+
10
+ - Guard validation now follows the closed scope grammar locked for
11
+ sure-document: `.field` / `row.field` / `rows.field` (row scope, requires an
12
+ active row context — `data.shape` `rows`/`series`), `@field` / `root.field`
13
+ (root scope), `totals.field` (server totals), raw numeric literals,
14
+ aggregates `sum:` / `sub:` / `mul:` / `div:` / `avg:` with comma-separated
15
+ operands (`rows.amount` is a valid array-range operand; `count` is a tolerated
16
+ legacy alias), and `ifpresent:Condition->Then`.
17
+ - Removed the `P:` and `F:` forms. A bare identifier, an unknown namespace, or a
18
+ row-scoped token with no active row context now fails closed with the new
19
+ `SCOPE_INVALID` validation issue naming the offending token — sure-factor's
20
+ mirror of sure-document's `E_SCOPE_INVALID`. `UNKNOWN_PROJECTION`,
21
+ `GUARD_WITHOUT_PROJECTION`, `BAD_FAMILY`, `BAD_SHAPE` and `BAD_FIXTURE` are
22
+ unchanged.
23
+ - The five published sure-store entries stay valid: their legacy `sum(...)`,
24
+ `count(...)` and `ifpresent(...)` call forms and `record.*` / `rows.*` bindings
25
+ are still accepted, and a test replays each entry's exact guards.
26
+
27
+ ### Changed
28
+
29
+ - Bumped `@shing.wong/sure-ui` to `^0.3.6` (publishes the `document` and
30
+ `figure` blocks) and refreshed `package-lock.json`.
31
+ - Enabled the document-part `sure_ui` block check. `unpublishedBlocks` (exported
32
+ from the package root) validates every report entry's declared blocks against
33
+ the installed sure-ui `COMPONENTS`, so `document`/`figure` now pass and an
34
+ unpublished block fails loudly instead of being deferred. This completes the
35
+ follow-up to the 0.6.0 catalog schema extension. The `form` + `buttons`
36
+ template class-coverage guard is unchanged.
37
+
6
38
  ## [0.6.0] - 2026-11-19
7
39
 
8
40
  ### Added — catalog schema extension (document parts)
package/README.md CHANGED
@@ -248,11 +248,27 @@ if (isDocumentPart(component)) {
248
248
  }
249
249
  ```
250
250
 
251
- A guard may name a projection as `F:name`, as `rows.name` (or `record.name`,
252
- `data.name`, `series.name`), or as a bare identifier. `P:name` names a
253
- parameter, and function names and computed namespaces such as `totals` are not
254
- projections. **A guard that references an undeclared projection fails loudly**,
255
- naming the guard and the missing name.
251
+ Guards follow a **closed scope grammar** with no implicit fallback:
252
+
253
+ - `.field` / `row.field` / `rows.field` — row scope, only when `data.shape` is
254
+ `rows` (or `series`); an explicit array range such as `rows.amount` is a valid
255
+ aggregate operand.
256
+ - `record.field` (and the legacy `data`/`series`/`item`/`fields`/`input`
257
+ bindings) — the current record, available in any shape.
258
+ - `@field` / `root.field` — root (document/header) scope; `totals.field` is an
259
+ explicit root namespace for server-recomputed totals. Neither is a projection.
260
+ - Raw numeric literals (`100`, `0.05`, `-3`); aggregates `sum:`, `sub:`, `mul:`,
261
+ `div:`, `avg:` with comma-separated operands (`count` is a tolerated legacy
262
+ alias, not one of the canonical five); and `ifpresent:Condition->Then` as the
263
+ existence guard. The published entries' `sum(...)` / `count(...)` /
264
+ `ifpresent(...)` call forms remain valid.
265
+
266
+ `P:` and `F:` are removed. A bare identifier, an unknown namespace, or a
267
+ row-scoped token without an active row context fails validation with
268
+ `SCOPE_INVALID` naming the offending token — sure-factor's mirror of
269
+ sure-document's `E_SCOPE_INVALID`. **A guard that references an undeclared
270
+ projection still fails loudly** with `UNKNOWN_PROJECTION`, naming the guard and
271
+ the missing name.
256
272
 
257
273
  A report entry is a document part semantically, **not** a form — but the
258
274
  template generator still emits a form wrapper and a submit button for every
package/dist/catalog.d.ts CHANGED
@@ -6,19 +6,31 @@
6
6
  * pure data: this module only checks their shape and, critically, checks that
7
7
  * a guard does not reference a projection the entry never declared.
8
8
  *
9
- * No sure-ui styles are composed here. The installed sure-ui does not yet
10
- * publish the `document`/`figure` blocks those parts need, so the generated
11
- * report module carries the contract (layout data, guards, classes) and leaves
12
- * runtime rendering to sure-document. See the TODO in `generateReportModule`.
9
+ * No sure-ui styles are composed here. Report parts declare the `document`
10
+ * and `figure` blocks, which sure-ui publishes from 0.3.6; the registry test
11
+ * checks those declarations against the installed `COMPONENTS` via
12
+ * `unpublishedBlocks`. The generated report module carries the contract
13
+ * (layout data, guards, classes) and leaves runtime rendering to sure-document.
13
14
  */
14
15
  import type { CatalogComponent, ComponentFamily } from './types.js';
15
16
  /** The closed set of document-part families. */
16
17
  export declare const COMPONENT_FAMILIES: readonly ComponentFamily[];
18
+ /**
19
+ * Declared `sure_ui` blocks that the installed sure-ui does not publish.
20
+ *
21
+ * `knownBlocks` is supplied by the caller — normally sure-ui's `COMPONENTS`
22
+ * export — so this module stays dependency-free and never evaluates strings:
23
+ * it is a plain membership test over the closed `sure_ui` declaration. An empty
24
+ * result means every declared block has shipped styles; a non-empty result
25
+ * names each offending component (`name: block`) so the registry test fails
26
+ * loudly. No dynamic code execution of the declarations is involved.
27
+ */
28
+ export declare function unpublishedBlocks(component: Pick<CatalogComponent, 'name' | 'sure_ui'>, knownBlocks: ReadonlySet<string>): string[];
17
29
  /** True when an entry opts into the document-part extension. */
18
30
  export declare function isDocumentPart(component: Partial<CatalogComponent>): boolean;
19
31
  export interface DocumentPartIssue {
20
- /** Short machine-readable reason. */
21
- code: 'BAD_FAMILY' | 'BAD_SHAPE' | 'GUARD_WITHOUT_PROJECTION' | 'UNKNOWN_PROJECTION' | 'BAD_FIXTURE';
32
+ /** Short machine-readable reason. `SCOPE_INVALID` mirrors sure-document's E_SCOPE_INVALID. */
33
+ code: 'BAD_FAMILY' | 'BAD_SHAPE' | 'GUARD_WITHOUT_PROJECTION' | 'UNKNOWN_PROJECTION' | 'BAD_FIXTURE' | 'SCOPE_INVALID';
22
34
  /** Human-readable, names the offending value. */
23
35
  message: string;
24
36
  }
@@ -37,9 +49,10 @@ export declare function assertValidDocumentPart(component: CatalogComponent): vo
37
49
  * rendering is sure-document's job and the classes are the only coupling.
38
50
  *
39
51
  * The generated `STYLE_BLOCKS` is intentionally the catalog's `sure_ui` list.
40
- * TODO(sure-ui): once the `document` and `figure` blocks are published, add a
41
- * check that every report entry's `sure_ui` names a shipped block (the registry
42
- * test cannot do that against the installed sure-ui, which has neither block).
52
+ * Every declared block is checked against the installed sure-ui `COMPONENTS`
53
+ * by the registry test (`unpublishedBlocks`), so a document part cannot name a
54
+ * block with no shipped styles — `document` and `figure` are published as of
55
+ * sure-ui 0.3.6.
43
56
  */
44
57
  export declare function generateReportModule(component: CatalogComponent): string;
45
58
  //# sourceMappingURL=catalog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EAChB,MAAM,YAAY,CAAA;AAEnB,gDAAgD;AAChD,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EAA6C,CAAA;AActG,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAM5E;AAwCD,MAAM,WAAW,iBAAiB;IAChC,qCAAqC;IACrC,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,0BAA0B,GAAG,oBAAoB,GAAG,aAAa,CAAA;IACpG,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,iBAAiB,EAAE,CA4CrF;AAED,+EAA+E;AAC/E,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAKzE;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAiCxE"}
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EAChB,MAAM,YAAY,CAAA;AAEnB,gDAAgD;AAChD,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EAA6C,CAAA;AAEtG;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC,EACrD,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAC/B,MAAM,EAAE,CAKV;AAkBD,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAM5E;AA8FD,MAAM,WAAW,iBAAiB;IAChC,8FAA8F;IAC9F,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,0BAA0B,GAAG,oBAAoB,GAAG,aAAa,GAAG,eAAe,CAAA;IACtH,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,iBAAiB,EAAE,CAiDrF;AAED,+EAA+E;AAC/E,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAKzE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAiCxE"}
package/dist/catalog.js CHANGED
@@ -1,13 +1,32 @@
1
1
  /** The closed set of document-part families. */
2
2
  export const COMPONENT_FAMILIES = ['structure', 'data', 'figure'];
3
+ /**
4
+ * Declared `sure_ui` blocks that the installed sure-ui does not publish.
5
+ *
6
+ * `knownBlocks` is supplied by the caller — normally sure-ui's `COMPONENTS`
7
+ * export — so this module stays dependency-free and never evaluates strings:
8
+ * it is a plain membership test over the closed `sure_ui` declaration. An empty
9
+ * result means every declared block has shipped styles; a non-empty result
10
+ * names each offending component (`name: block`) so the registry test fails
11
+ * loudly. No dynamic code execution of the declarations is involved.
12
+ */
13
+ export function unpublishedBlocks(component, knownBlocks) {
14
+ const label = component.name || 'unnamed component';
15
+ return (component.sure_ui ?? [])
16
+ .filter((block) => !knownBlocks.has(block))
17
+ .map((block) => `${label}: ${block}`);
18
+ }
3
19
  const DATA_SHAPES = ['record', 'rows', 'series', 'none', 'derived'];
4
- /** Bindings whose dotted leaves are projection names (e.g. `rows.amount`). */
20
+ /** Bindings whose dotted leaves are row/record projections. */
5
21
  const ROW_BINDINGS = new Set(['rows', 'row', 'record', 'data', 'series', 'item', 'fields', 'input']);
6
- /** Words that are operators, builtins or computed namespaces, not projections. */
7
- const NON_PROJECTIONS = new Set([
22
+ /** The canonical aggregates of the strict grammar. `count` is a tolerated
23
+ * legacy alias kept so the published sure-store entries still validate; it is
24
+ * not one of the canonical five. */
25
+ const AGGREGATES = new Set(['sum', 'sub', 'mul', 'div', 'avg', 'count']);
26
+ /** Operators, literals and keywords that are never references. */
27
+ const NON_REFERENCES = new Set([
8
28
  'true', 'false', 'null', 'undefined', 'and', 'or', 'not', 'in',
9
- 'sum', 'sub', 'ifpresent', 'min', 'max', 'count', 'abs', 'round', 'len',
10
- 'totals', 'F', 'P',
29
+ 'ifpresent',
11
30
  ]);
12
31
  /** True when an entry opts into the document-part extension. */
13
32
  export function isDocumentPart(component) {
@@ -18,41 +37,85 @@ export function isDocumentPart(component) {
18
37
  || component.fixture !== undefined;
19
38
  }
20
39
  /**
21
- * Extract every projection name a guard expression references.
22
- *
23
- * Three reference forms are understood (the closed vocabulary of
24
- * sure-document `design §5`, plus the dotted form used in `docs/catalog.md`):
40
+ * Scan a guard without evaluating it. The strict, closed grammar has exactly
41
+ * these reference forms:
25
42
  *
26
- * - `F:name` — field of the current row (design §5)
27
- * - `rows.name` — dotted access under a row binding, incl. `record`,
28
- * `data`, `series`
29
- * - `name` — a bare identifier used as a value
43
+ * - `.field` / `row.field` / `rows.field` — row scope (needs an active row context)
44
+ * - `record.field` (and the legacy `data`/`series`/… bindings) — the current record
45
+ * - `@field` / `root.field` — root (document/header) scope
46
+ * - `totals.field` — explicit root namespace for server totals
47
+ * - raw numeric literals, aggregates (`sum:` / `sum(...)`, …) and `ifpresent:`
48
+ * operators — never references
30
49
  *
31
- * `P:name` names a parameter, not a projection, and is ignored; so are
32
- * function names, keywords and computed namespaces such as `totals`. This is
33
- * a scanner, not an evaluator — no dynamic code execution of guard strings.
50
+ * Removed forms (`F:`, `P:`) and bare identifiers fail closed as SCOPE_INVALID,
51
+ * matching sure-document's `E_SCOPE_INVALID`. This is a scanner, not an
52
+ * evaluator — no dynamic code execution of guard strings.
34
53
  */
35
- function projectionRefs(expr) {
36
- const refs = new Set();
37
- for (const m of expr.matchAll(/\bF:([A-Za-z_]\w*)/g))
38
- refs.add(m[1]);
39
- const params = [...expr.matchAll(/\bP:([A-Za-z_]\w*)/g)].map((m) => m[1]);
40
- for (const m of expr.matchAll(/\b([A-Za-z_]\w*)\.([A-Za-z_]\w*)/g)) {
41
- if (ROW_BINDINGS.has(m[1]))
42
- refs.add(m[2]);
54
+ function scanGuard(expr, hasRowContext) {
55
+ const text = expr.replace(/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g, (s) => ' '.repeat(s.length));
56
+ const projections = new Set();
57
+ const scopeErrors = new Map();
58
+ const addError = (token, reason) => {
59
+ if (!scopeErrors.has(token))
60
+ scopeErrors.set(token, { token, reason });
61
+ };
62
+ // F: and P: are removed outright; flag them before the general scan and
63
+ // skip their leaves when it runs.
64
+ for (const m of text.matchAll(/\b([FP]):([A-Za-z_]\w*)/g)) {
65
+ addError(`${m[1]}:${m[2]}`, 'removed');
43
66
  }
44
- for (const m of expr.matchAll(/\b([A-Za-z_]\w*)\b(?!\s*\()/g)) {
45
- const id = m[1];
46
- if (NON_PROJECTIONS.has(id) || params.includes(id))
67
+ for (const m of text.matchAll(/([@.]?)([A-Za-z_]\w*)(?:(\s*\.\s*)([A-Za-z_]\w*))?/g)) {
68
+ const sigil = m[1] ?? '';
69
+ const id = m[2];
70
+ const leaf = m[4];
71
+ const idx = m.index;
72
+ const before = text.slice(Math.max(0, idx - 2), idx);
73
+ const after = text.slice(idx + m[0].length, idx + m[0].length + 1);
74
+ // The leaf / sigil of an already-reported F:x or P:x form.
75
+ if (before === 'F:' || before === 'P:')
76
+ continue;
77
+ if (after === ':' && (id === 'F' || id === 'P'))
47
78
  continue;
48
- // A dotted leaf was already captured above; a dotted *root* is a binding.
49
- if (new RegExp(`\\.${id}\\b`).test(expr))
79
+ // A trailing colon marks a colon-form operator (`sum:`, `ifpresent:`).
80
+ if (after === ':' && (AGGREGATES.has(id) || id === 'ifpresent'))
50
81
  continue;
51
- if (new RegExp(`\\b${id}\\s*\\.`).test(expr))
82
+ if (sigil === '@')
83
+ continue; // root scope field — a parameter, not a projection
84
+ if (sigil === '.') {
85
+ if (!hasRowContext)
86
+ addError(`.${id}`, 'no-row-context');
87
+ else if (leaf === undefined)
88
+ projections.add(id);
52
89
  continue;
53
- refs.add(id);
90
+ }
91
+ if (leaf !== undefined) {
92
+ if (id === 'root' || id === 'totals')
93
+ continue; // root namespaces, not projections
94
+ if (ROW_BINDINGS.has(id)) {
95
+ if ((id === 'row' || id === 'rows') && !hasRowContext)
96
+ addError(`${id}.${leaf}`, 'no-row-context');
97
+ else
98
+ projections.add(leaf);
99
+ continue;
100
+ }
101
+ addError(id, 'namespace'); // unknown namespace is a bare identifier prefix
102
+ continue;
103
+ }
104
+ // A bare, sigil-less identifier. Operators, function names and literals
105
+ // are fine; everything else fails closed.
106
+ if (!AGGREGATES.has(id) && !NON_REFERENCES.has(id))
107
+ addError(id, 'bare');
108
+ }
109
+ return { projections: [...projections], scopeErrors: [...scopeErrors.values()] };
110
+ }
111
+ function scopeErrorMessage(label, guard, err) {
112
+ const base = `${label}: guard "${guard}" uses scope-invalid token "${err.token}"`;
113
+ switch (err.reason) {
114
+ case 'removed': return `${base}: F: and P: forms are removed; use .field/row.field, @field/root.field, or totals.field`;
115
+ case 'bare': return `${base}: a bare identifier has no scope; use .field/row.field, @field/root.field, totals.field, or a numeric literal`;
116
+ case 'no-row-context': return `${base}: row scope requires an active row context (data.shape "rows" or "series")`;
117
+ case 'namespace': return `${base}: "${err.token}" is not a declared namespace or row binding`;
54
118
  }
55
- return [...refs];
56
119
  }
57
120
  /**
58
121
  * Validate the document-part keys of a catalog entry. Returns all issues;
@@ -83,6 +146,7 @@ export function validateDocumentPart(component) {
83
146
  }
84
147
  const guards = component.guards ?? [];
85
148
  const projection = component.data?.projection ?? [];
149
+ const hasRowContext = component.data?.shape === 'rows' || component.data?.shape === 'series';
86
150
  if (guards.length > 0 && projection.length === 0) {
87
151
  issues.push({
88
152
  code: 'GUARD_WITHOUT_PROJECTION',
@@ -90,7 +154,11 @@ export function validateDocumentPart(component) {
90
154
  });
91
155
  }
92
156
  for (const guard of guards) {
93
- for (const ref of projectionRefs(guard)) {
157
+ const { projections, scopeErrors } = scanGuard(guard, hasRowContext);
158
+ for (const err of scopeErrors) {
159
+ issues.push({ code: 'SCOPE_INVALID', message: scopeErrorMessage(label, guard, err) });
160
+ }
161
+ for (const ref of projections) {
94
162
  if (!projection.includes(ref)) {
95
163
  issues.push({
96
164
  code: 'UNKNOWN_PROJECTION',
@@ -114,9 +182,10 @@ export function assertValidDocumentPart(component) {
114
182
  * rendering is sure-document's job and the classes are the only coupling.
115
183
  *
116
184
  * The generated `STYLE_BLOCKS` is intentionally the catalog's `sure_ui` list.
117
- * TODO(sure-ui): once the `document` and `figure` blocks are published, add a
118
- * check that every report entry's `sure_ui` names a shipped block (the registry
119
- * test cannot do that against the installed sure-ui, which has neither block).
185
+ * Every declared block is checked against the installed sure-ui `COMPONENTS`
186
+ * by the registry test (`unpublishedBlocks`), so a document part cannot name a
187
+ * block with no shipped styles — `document` and `figure` are published as of
188
+ * sure-ui 0.3.6.
120
189
  */
121
190
  export function generateReportModule(component) {
122
191
  assertValidDocumentPart(component);
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAmBA,gDAAgD;AAChD,MAAM,CAAC,MAAM,kBAAkB,GAA+B,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAA;AAEtG,MAAM,WAAW,GAAkC,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAA;AAE3G,8EAA8E;AAC9E,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAA;AAEpG,kFAAkF;AAClF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IAC9B,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI;IAC9D,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK;IACvE,QAAQ,EAAE,GAAG,EAAE,GAAG;CACnB,CAAC,CAAA;AAEF,gEAAgE;AAChE,MAAM,UAAU,cAAc,CAAC,SAAoC;IACjE,OAAO,SAAS,CAAC,MAAM,KAAK,SAAS;WAChC,SAAS,CAAC,IAAI,KAAK,SAAS;WAC5B,SAAS,CAAC,KAAK,KAAK,SAAS;WAC7B,SAAS,CAAC,MAAM,KAAK,SAAS;WAC9B,SAAS,CAAC,OAAO,KAAK,SAAS,CAAA;AACtC,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAS,cAAc,CAAC,IAAY;IAClC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA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AChC,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,IAAI;QAC5B,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,IAAI;QAC9B,MAAM,EAAE,SAAS,CAAC,MAAM,IAAI,EAAE;QAC9B,OAAO,EAAE,SAAS,CAAC,OAAO,IAAI,IAAI;KACnC,CAAA;IAED,OAAO,4CAA4C,SAAS,CAAC,IAAI;0BACzC,SAAS,CAAC,MAAM,IAAI,aAAa;;;;6BAI9B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,UAAU,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;;;wBAGxD,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;;;4BAG3B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;;;wBAG7D,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;;;8BAGzC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;CAC7E,CAAA;AACD,CAAC"}
package/dist/index.d.ts CHANGED
@@ -13,5 +13,5 @@ export { formatCode, formatGeneratedOutput, formatGeneratedStoreOutput } from '.
13
13
  export type { FormattedOutput, FormattedStoreOutput } from './format.js';
14
14
  export type { CatalogType, CatalogComponent, CatalogAsset } from './types.js';
15
15
  export type { ComponentFamily, ComponentDataShape, ComponentData, ComponentPrint, ComponentFixture, } from './types.js';
16
- export { COMPONENT_FAMILIES, isDocumentPart, validateDocumentPart, assertValidDocumentPart, generateReportModule, type DocumentPartIssue, } from './catalog.js';
16
+ export { COMPONENT_FAMILIES, unpublishedBlocks, isDocumentPart, validateDocumentPart, assertValidDocumentPart, generateReportModule, type DocumentPartIssue, } from './catalog.js';
17
17
  //# sourceMappingURL=index.d.ts.map
@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AAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC9F,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAC3F,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACxE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,iBAAiB,GACvB,MAAM,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -17,5 +17,5 @@ export { renderFooter, escapeHtml, safeHref, FOOTER_CLASSES } from './footer.js'
17
17
  export { renderMarkdown } from './markdown.js';
18
18
  export { toYaml, toJson, fromJson, toMarkdown, toXml, fromXml, convert } from './serialize.js';
19
19
  export { formatCode, formatGeneratedOutput, formatGeneratedStoreOutput } from './format.js';
20
- export { COMPONENT_FAMILIES, isDocumentPart, validateDocumentPart, assertValidDocumentPart, generateReportModule, } from './catalog.js';
20
+ export { COMPONENT_FAMILIES, unpublishedBlocks, isDocumentPart, validateDocumentPart, assertValidDocumentPart, generateReportModule, } from './catalog.js';
21
21
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,EAAE;AACF,gBAAgB;AAChB,2EAA2E;AAC3E,0EAA0E;AAC1E,4EAA4E;AAC5E,4EAA4E;AAC5E,EAAE;AACF,aAAa;AACb,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,uBAAuB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,iBAAiB,GAIlB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,aAAa,EAA8E,MAAM,qBAAqB,CAAA;AAC/H,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEhF,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC9F,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAU3F,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,GAErB,MAAM,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shing.wong/sure-factor",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Database schema to production-grade UI — type catalog, validation, sanitization, i18n, audio, and tiered code generation.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -84,7 +84,7 @@
84
84
  "database-schema"
85
85
  ],
86
86
  "dependencies": {
87
- "@shing.wong/sure-ui": "^0.3.5",
87
+ "@shing.wong/sure-ui": "^0.3.6",
88
88
  "pg": "^8.23.0",
89
89
  "prettier": "^3.9.6"
90
90
  },