@x12i/reportic-elements 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/index.d.ts +56 -0
- package/dist/index.js +153 -0
- package/dist/index.js.map +1 -0
- package/package.json +27 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Reportic contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @x12i/reportic-elements
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
reportic-elements — typed, portable reporting from Markdown and data.
|
|
4
|
+
|
|
5
|
+
ESM package with TypeScript declarations. Requires Node.js 22 or later; Reportic format 0.2 and compatible Reportic 0.2.x workspace packages.
|
|
6
|
+
|
|
7
|
+
See the Reportic workspace README and docs/studio.md for setup, SDK examples, the editor, catalog, host identity integration, CLI, HTTP, MCP, and operational limits.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _x12i_reportic_core from '@x12i/reportic-core';
|
|
2
|
+
import { ComponentDefinition, Format, Capability, ElementSource, Registry } from '@x12i/reportic-core';
|
|
3
|
+
|
|
4
|
+
declare function createRegistry(extensions?: ComponentDefinition[]): Registry;
|
|
5
|
+
declare const defaultRegistry: Registry;
|
|
6
|
+
declare const componentMetadata: (definition: ComponentDefinition) => {
|
|
7
|
+
type: string;
|
|
8
|
+
version: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
category: string;
|
|
12
|
+
formatVersions: string[];
|
|
13
|
+
schema: Record<string, any>;
|
|
14
|
+
authoringSchema?: Record<string, any>;
|
|
15
|
+
capabilities: Record<Format, Capability>;
|
|
16
|
+
rowScopes: string[];
|
|
17
|
+
examples: ElementSource[];
|
|
18
|
+
bindingSlots?: _x12i_reportic_core.BindingSlot[];
|
|
19
|
+
editorHints?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
declare function listComponents(filter?: {
|
|
22
|
+
format?: Format;
|
|
23
|
+
editability?: 'strict' | 'normal';
|
|
24
|
+
category?: string;
|
|
25
|
+
}, registry?: Registry): {
|
|
26
|
+
type: string;
|
|
27
|
+
version: string;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
category: string;
|
|
31
|
+
formatVersions: string[];
|
|
32
|
+
schema: Record<string, any>;
|
|
33
|
+
authoringSchema?: Record<string, any>;
|
|
34
|
+
capabilities: Record<Format, Capability>;
|
|
35
|
+
rowScopes: string[];
|
|
36
|
+
examples: ElementSource[];
|
|
37
|
+
bindingSlots?: _x12i_reportic_core.BindingSlot[];
|
|
38
|
+
editorHints?: Record<string, unknown>;
|
|
39
|
+
}[];
|
|
40
|
+
declare const getComponent: (type: string, registry?: Registry) => {
|
|
41
|
+
type: string;
|
|
42
|
+
version: string;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
category: string;
|
|
46
|
+
formatVersions: string[];
|
|
47
|
+
schema: Record<string, any>;
|
|
48
|
+
authoringSchema?: Record<string, any>;
|
|
49
|
+
capabilities: Record<Format, Capability>;
|
|
50
|
+
rowScopes: string[];
|
|
51
|
+
examples: ElementSource[];
|
|
52
|
+
bindingSlots?: _x12i_reportic_core.BindingSlot[];
|
|
53
|
+
editorHints?: Record<string, unknown>;
|
|
54
|
+
} | undefined;
|
|
55
|
+
|
|
56
|
+
export { componentMetadata, createRegistry, defaultRegistry, getComponent, listComponents };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
// packages/reportic-elements/src/index.ts
|
|
2
|
+
import Ajv from "ajv";
|
|
3
|
+
import { fail, isRecord, inferBindingSlots } from "@x12i/reportic-core";
|
|
4
|
+
var ajv = new Ajv({ strict: false, allErrors: true });
|
|
5
|
+
var str = { type: "string" };
|
|
6
|
+
var scalar = { type: ["string", "number", "boolean", "null"] };
|
|
7
|
+
var bindSchema = { type: "object", required: ["$bind"], properties: { $bind: { type: "string", pattern: "^(dataSets|variables|row)(\\.[A-Za-z0-9_-]+)*$" } }, additionalProperties: false };
|
|
8
|
+
var record = { type: "object" };
|
|
9
|
+
var array = (items) => ({ type: "array", items });
|
|
10
|
+
var object = (properties, required = []) => ({ type: "object", properties, required, additionalProperties: true });
|
|
11
|
+
var child = object({ id: str, type: str, props: record, fallback: { anyOf: [str, bindSchema] } }, ["id", "type", "props"]);
|
|
12
|
+
var capabilities = (overrides = {}) => ({ pdf: "native", html: "native", markdown: "native", docx: "native", pptx: "native", ...overrides });
|
|
13
|
+
function authoring(schema) {
|
|
14
|
+
if (!isRecord(schema)) return schema;
|
|
15
|
+
const copy = { ...schema };
|
|
16
|
+
if (copy.properties) copy.properties = Object.fromEntries(Object.entries(copy.properties).map(([k, v]) => [k, authoring(v)]));
|
|
17
|
+
if (copy.items) copy.items = authoring(copy.items);
|
|
18
|
+
return { anyOf: [copy, bindSchema] };
|
|
19
|
+
}
|
|
20
|
+
function define(type, title, description, category, schema, props, scope = [], caps = capabilities(), normalize) {
|
|
21
|
+
const validate = ajv.compile(schema);
|
|
22
|
+
const bindingSlots = inferBindingSlots(schema, scope);
|
|
23
|
+
const find = (path) => bindingSlots.find((s) => s.path === path);
|
|
24
|
+
for (const slot of bindingSlots) if (/\.children\[\]\.(id|type)$/.test(slot.path)) {
|
|
25
|
+
slot.binding = false;
|
|
26
|
+
slot.roots = [];
|
|
27
|
+
}
|
|
28
|
+
if (type === "diagram") {
|
|
29
|
+
const model = find("props.model");
|
|
30
|
+
if (model) model.expectedBy = { property: "props.adapter", values: { "reportic.flowchart.v1": object({ nodes: array(object({ id: str, label: str, shape: { enum: ["rectangle", "rounded", "diamond"] } }, ["id", "label"])), edges: array(object({ from: str, to: str, label: str }, ["from", "to"])) }, ["nodes", "edges"]) } };
|
|
31
|
+
}
|
|
32
|
+
if (["table", "chart", "list", "repeat"].includes(type)) {
|
|
33
|
+
const rows = find("props.rows");
|
|
34
|
+
if (rows) {
|
|
35
|
+
rows.establishesRow = true;
|
|
36
|
+
rows.childrenInheritRow = type === "repeat";
|
|
37
|
+
rows.roles = ["collection"];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (type === "table") {
|
|
41
|
+
const value = find("props.columns[].value");
|
|
42
|
+
if (value) value.expected = scalar;
|
|
43
|
+
}
|
|
44
|
+
if (type === "chart") {
|
|
45
|
+
const x = find("props.x.value"), s = find("props.series[].value");
|
|
46
|
+
if (x) {
|
|
47
|
+
x.expected = { type: ["string", "number", "integer"] };
|
|
48
|
+
x.roles = ["category", "date"];
|
|
49
|
+
}
|
|
50
|
+
if (s) {
|
|
51
|
+
s.expected = { type: "number" };
|
|
52
|
+
s.roles = ["series-value", "measure"];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (type === "list") {
|
|
56
|
+
const text = find("props.text");
|
|
57
|
+
if (text) text.expected = str;
|
|
58
|
+
}
|
|
59
|
+
if (type === "image") {
|
|
60
|
+
const src = find("props.src");
|
|
61
|
+
if (src) {
|
|
62
|
+
src.expected = { anyOf: [object({ asset: str }, ["asset"]), object({ url: str }, ["url"])], type: "object" };
|
|
63
|
+
src.roles = ["asset-reference"];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (type === "diagram") {
|
|
67
|
+
const src = find("props.source");
|
|
68
|
+
if (src) src.roles = ["mermaid-source"];
|
|
69
|
+
const model = find("props.model");
|
|
70
|
+
if (model) {
|
|
71
|
+
model.roles = ["graph-model"];
|
|
72
|
+
model.dependsOn = ["props.adapter"];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
type,
|
|
77
|
+
version: "1.0.0",
|
|
78
|
+
title,
|
|
79
|
+
description,
|
|
80
|
+
category,
|
|
81
|
+
schema,
|
|
82
|
+
authoringSchema: authoring(schema),
|
|
83
|
+
formatVersions: ["0.2"],
|
|
84
|
+
capabilities: caps,
|
|
85
|
+
rowScopes: scope,
|
|
86
|
+
bindingSlots,
|
|
87
|
+
editorHints: { description, ...type === "diagram" ? { nativeEditableAdapters: ["reportic.flowchart.v1"], adapterExamples: { "reportic.flowchart.v1": { engine: "mermaid", alt: "A reporting workflow.", adapter: "reportic.flowchart.v1", model: { nodes: [{ id: "data", label: "Data" }, { id: "report", label: "Report" }], edges: [{ from: "data", to: "report" }] } } } } : {} },
|
|
88
|
+
examples: [{ id: `example-${type.replace(/\./g, "-")}`, type, props }],
|
|
89
|
+
normalize,
|
|
90
|
+
validate: (p) => validate(p) ? [] : (validate.errors ?? []).map((e) => `${e.instancePath || "props"} ${e.message}`)
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
var metric = object({ label: str, value: scalar, format: str, comparison: str }, ["label", "value"]);
|
|
94
|
+
var builtins = [
|
|
95
|
+
define("metrics", "Metrics", "Put the numbers that matter in focus, with formatted values and comparisons.", "Data", object({ items: { ...array(metric), minItems: 1 } }, ["items"]), { items: [{ label: "Revenue", value: 128450, format: "currency:USD", comparison: "+18.4% vs. last quarter" }, { label: "Completion rate", value: 0.95, format: "percent:1" }] }),
|
|
96
|
+
define("table", "Data table", "Structured rows, aligned columns, and readable headers across every format.", "Data", object({ rows: array(record), columns: { ...array(object({ label: str, value: {}, format: str, align: { enum: ["left", "center", "right"] } }, ["label", "value"])), minItems: 1 }, empty: str }, ["rows", "columns"]), { rows: { $bind: "dataSets.report.rows" }, columns: [{ label: "Name", value: { $bind: "row.name" } }, { label: "Value", value: { $bind: "row.value" }, format: "integer", align: "right" }] }, ["columns[].value"]),
|
|
97
|
+
define("chart", "Chart", "Line and bar charts with their underlying data preserved in a companion table.", "Data", object({ kind: { enum: ["line", "bar"] }, rows: array(record), x: object({ label: str, value: {}, format: str }, ["label", "value"]), series: { ...array(object({ label: str, value: {}, format: str }, ["label", "value"])), minItems: 1 }, title: str, alt: { type: "string", minLength: 1 }, empty: str }, ["kind", "rows", "x", "series", "title", "alt"]), { kind: "bar", title: "Monthly revenue", alt: "Revenue by month.", rows: { $bind: "dataSets.report.trend" }, x: { label: "Month", value: { $bind: "row.month" } }, series: [{ label: "Revenue", value: { $bind: "row.revenue" } }] }, ["x.value", "series[].value"]),
|
|
98
|
+
define("diagram", "Diagram", "Mermaid diagrams and structured flowcharts, with editable PowerPoint shapes.", "Visual", object({ engine: { const: "mermaid" }, alt: { type: "string", minLength: 1 }, source: { type: "string", minLength: 1 }, model: record, adapter: str, caption: str }, ["engine", "alt"]), { engine: "mermaid", alt: "The reporting workflow.", source: "flowchart LR\n A[Data] --> B[Template]\n B --> C[Report]" }, [], capabilities({ pptx: "image", docx: "image", html: "image", pdf: "image", markdown: "image" })),
|
|
99
|
+
define("image", "Image", "A managed image with accessible alt text and an optional caption.", "Visual", object({ src: { anyOf: [record, str] }, alt: { type: "string", minLength: 1 }, caption: str }, ["src", "alt"]), { src: { asset: "company-logo" }, alt: "Company logo", caption: "Brand assets travel with the report." }),
|
|
100
|
+
define("list", "List", "Ordered or unordered collections, bound to your data one item at a time.", "Content", object({ rows: array({}), text: {}, ordered: { type: "boolean" }, empty: str }, ["rows", "text"]), { rows: { $bind: "dataSets.report.actions" }, text: { $bind: "row" }, ordered: true }, ["text"]),
|
|
101
|
+
define("narrative", "Narrative", "Readable commentary with optional headings and numbered evidence references.", "Content", object({ text: str, heading: str, evidenceIds: array(str) }, ["text"]), { heading: "Executive perspective", text: "Revenue grew as customer retention improved.", evidenceIds: ["quarterly-review"] }),
|
|
102
|
+
define("sources", "Sources", "One evidence register, numbered in first-citation order throughout the report.", "Content", object({ records: { type: "object", additionalProperties: object({ label: str, url: str }, ["label"]) } }, ["records"]), { records: { "quarterly-review": { label: "Quarterly review", url: "https://example.com/review" } } }),
|
|
103
|
+
define("group", "Group", "Keep related elements together under a shared heading.", "Layout", object({ heading: str, children: array(child) }, ["children"]), { heading: "Performance", children: [{ id: "group-metrics", type: "metrics", props: { items: [{ label: "Active customers", value: 1420 }] } }] }),
|
|
104
|
+
define("repeat", "Repeat", "Create a section for each record, with explicit, nested row scopes.", "Layout", object({ rows: array({}), children: array(child), empty: str }, ["rows", "children"]), { rows: { $bind: "dataSets.report.teams" }, children: [{ id: "team-summary", type: "narrative", props: { heading: { $bind: "row.name" }, text: { $bind: "row.summary" } } }] }),
|
|
105
|
+
define("reportic.callout.v1", "Callout", "Give a recommendation, a risk, or an insight a distinct place on the page.", "Content", object({ title: str, text: str, tone: { enum: ["info", "success", "warning", "danger"] } }, ["title", "text"]), { title: "A strong quarter", text: "Expansion revenue now outpaces new business.", tone: "success" }, [], capabilities(), (p) => ({ type: "callout", props: p })),
|
|
106
|
+
define("reportic.progress.v1", "Progress", "Track targets with labeled, accessible progress indicators.", "Data", object({ items: array(object({ label: str, value: { type: "number", minimum: 0, maximum: 1 }, detail: str }, ["label", "value"])) }, ["items"]), { items: [{ label: "Revenue target", value: 0.86, detail: "$128k of $150k" }, { label: "Retention goal", value: 0.94 }] }, [], capabilities(), (p) => ({ type: "progress", props: p })),
|
|
107
|
+
define("reportic.timeline.v1", "Timeline", "Present milestones in authored order with dates, titles, and descriptions.", "Visual", object({ items: array(object({ date: str, title: str, text: str, status: { enum: ["done", "active", "upcoming"] } }, ["date", "title"])) }, ["items"]), { items: [{ date: "Oct 01", title: "Quarter started", text: "Baseline metrics captured.", status: "done" }, { date: "Nov 15", title: "Mid-quarter review", status: "active" }] }, [], capabilities(), (p) => ({ type: "timeline", props: p })),
|
|
108
|
+
define("reportic.comparison.v1", "Comparison", "Compare two options using consistent, editable rows.", "Data", object({ labels: { type: "array", items: str, minItems: 2, maxItems: 2 }, rows: array(object({ label: str, left: scalar, right: scalar }, ["label", "left", "right"])) }, ["labels", "rows"]), { labels: ["Previous quarter", "This quarter"], rows: [{ label: "Revenue", left: "$108,480", right: "$128,450" }, { label: "Retention", left: "91.2%", right: "94.6%" }] }, [], capabilities(), (p) => ({ type: "comparison", props: p })),
|
|
109
|
+
define("reportic.checklist.v1", "Checklist", "Show completed and outstanding actions without losing their status in exports.", "Content", object({ items: array(object({ text: str, done: { type: "boolean" }, owner: str }, ["text", "done"])) }, ["items"]), { items: [{ text: "Reconcile source data", done: true, owner: "Finance" }, { text: "Review with leadership", done: false, owner: "Operations" }] }, [], capabilities(), (p) => ({ type: "checklist", props: p })),
|
|
110
|
+
define("reportic.code.v1", "Code block", "Include readable technical snippets with a language label.", "Content", object({ code: str, language: str, caption: str }, ["code"]), { language: "typescript", code: "const report = await generateReport(template, dataSets, variables);" }, [], capabilities(), (p) => ({ type: "code", props: p }))
|
|
111
|
+
];
|
|
112
|
+
function createRegistry(extensions = []) {
|
|
113
|
+
const map = /* @__PURE__ */ new Map();
|
|
114
|
+
let revision = 1;
|
|
115
|
+
const registry = {
|
|
116
|
+
get revision() {
|
|
117
|
+
return `reportic-elements@0.2.0:${revision}`;
|
|
118
|
+
},
|
|
119
|
+
list: () => [...map.values()],
|
|
120
|
+
get: (type) => map.get(type),
|
|
121
|
+
register: (definition) => {
|
|
122
|
+
if (!definition || !/^([a-zA-Z][\w-]*\.)+[a-zA-Z0-9-]+$/.test(definition.type)) fail("INVALID_COMPONENT_ID", "Extensions require a namespaced, versioned ID.");
|
|
123
|
+
if (map.has(definition.type)) fail("DUPLICATE_COMPONENT", `Component "${definition.type}" is already registered.`);
|
|
124
|
+
if (!definition.schema || !definition.capabilities || typeof definition.validate !== "function" || !definition.normalize) fail("INVALID_COMPONENT", "Extensions need a schema, capabilities, validation, and a semantic normalizer.");
|
|
125
|
+
definition = { ...definition, bindingSlots: definition.bindingSlots ?? inferBindingSlots(definition.schema, definition.rowScopes) };
|
|
126
|
+
map.set(definition.type, definition);
|
|
127
|
+
revision++;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
builtins.forEach((d) => map.set(d.type, d));
|
|
131
|
+
extensions.forEach((d) => registry.register(d));
|
|
132
|
+
return registry;
|
|
133
|
+
}
|
|
134
|
+
var defaultRegistry = createRegistry();
|
|
135
|
+
var componentMetadata = (definition) => {
|
|
136
|
+
const { validate, normalize, ...metadata } = definition;
|
|
137
|
+
return structuredClone(metadata);
|
|
138
|
+
};
|
|
139
|
+
function listComponents(filter, registry = defaultRegistry) {
|
|
140
|
+
return registry.list().filter((d) => (!filter?.category || d.category === filter.category) && (!filter?.format || d.capabilities[filter.format] !== "unavailable") && (filter?.editability !== "strict" || !filter.format || d.capabilities[filter.format] === "native")).map(componentMetadata);
|
|
141
|
+
}
|
|
142
|
+
var getComponent = (type, registry = defaultRegistry) => {
|
|
143
|
+
const d = registry.get(type);
|
|
144
|
+
return d ? componentMetadata(d) : void 0;
|
|
145
|
+
};
|
|
146
|
+
export {
|
|
147
|
+
componentMetadata,
|
|
148
|
+
createRegistry,
|
|
149
|
+
defaultRegistry,
|
|
150
|
+
getComponent,
|
|
151
|
+
listComponents
|
|
152
|
+
};
|
|
153
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import Ajv from 'ajv';\nimport { fail, isRecord, inferBindingSlots } from '@x12i/reportic-core';\nimport type { ComponentDefinition, Registry, ElementSource, Format, Capability } from '@x12i/reportic-core';\n\nconst ajv = new Ajv({ strict: false, allErrors: true });\nconst str = { type: 'string' }; const scalar = { type: ['string','number','boolean','null'] };\nconst bindSchema = { type: 'object', required: ['$bind'], properties: { $bind: { type: 'string', pattern: '^(dataSets|variables|row)(\\\\.[A-Za-z0-9_-]+)*$' } }, additionalProperties: false };\nconst record = { type: 'object' }; const array = (items: any) => ({ type: 'array', items });\nconst object = (properties: any, required: string[] = []) => ({ type: 'object', properties, required, additionalProperties: true });\nconst child = object({ id: str, type: str, props: record, fallback: { anyOf: [str, bindSchema] } }, ['id','type','props']);\nconst capabilities = (overrides: Partial<Record<Format, Capability>> = {}): Record<Format, Capability> => ({ pdf:'native', html:'native', markdown:'native', docx:'native', pptx:'native', ...overrides });\nfunction authoring(schema: any): any {\n if (!isRecord(schema)) return schema;\n const copy = { ...schema };\n if (copy.properties) copy.properties = Object.fromEntries(Object.entries(copy.properties).map(([k,v]) => [k, authoring(v)]));\n if (copy.items) copy.items = authoring(copy.items);\n return { anyOf: [copy, bindSchema] };\n}\nfunction define(type: string, title: string, description: string, category: string, schema: any, props: any, scope: string[] = [], caps = capabilities(), normalize?: ComponentDefinition['normalize']): ComponentDefinition {\n const validate = ajv.compile(schema);\n const bindingSlots=inferBindingSlots(schema,scope);\n const find=(path:string)=>bindingSlots.find(s=>s.path===path);\n for(const slot of bindingSlots)if(/\\.children\\[\\]\\.(id|type)$/.test(slot.path)){slot.binding=false;slot.roots=[];}\n if(type==='diagram'){const model=find('props.model');if(model)model.expectedBy={property:'props.adapter',values:{'reportic.flowchart.v1':object({nodes:array(object({id:str,label:str,shape:{enum:['rectangle','rounded','diamond']}},['id','label'])),edges:array(object({from:str,to:str,label:str},['from','to']))},['nodes','edges'])}};}\n if(['table','chart','list','repeat'].includes(type)){const rows=find('props.rows');if(rows){rows.establishesRow=true;rows.childrenInheritRow=type==='repeat';rows.roles=['collection'];}}\n if(type==='table'){const value=find('props.columns[].value');if(value)value.expected=scalar;}\n if(type==='chart'){const x=find('props.x.value'),s=find('props.series[].value');if(x){x.expected={type:['string','number','integer']};x.roles=['category','date'];}if(s){s.expected={type:'number'};s.roles=['series-value','measure'];}}\n if(type==='list'){const text=find('props.text');if(text)text.expected=str;}\n if(type==='image'){const src=find('props.src');if(src){src.expected={anyOf:[object({asset:str},['asset']),object({url:str},['url'])],type:'object'};src.roles=['asset-reference'];}}\n if(type==='diagram'){const src=find('props.source');if(src)src.roles=['mermaid-source'];const model=find('props.model');if(model){model.roles=['graph-model'];model.dependsOn=['props.adapter'];}}\n return { type, version: '1.0.0', title, description, category, schema, authoringSchema: authoring(schema), formatVersions: ['0.2'], capabilities: caps, rowScopes: scope, bindingSlots, editorHints:{description,...(type==='diagram'?{nativeEditableAdapters:['reportic.flowchart.v1'],adapterExamples:{'reportic.flowchart.v1':{engine:'mermaid',alt:'A reporting workflow.',adapter:'reportic.flowchart.v1',model:{nodes:[{id:'data',label:'Data'},{id:'report',label:'Report'}],edges:[{from:'data',to:'report'}]}}}}:{})}, examples: [{ id: `example-${type.replace(/\\./g,'-')}`, type, props }], normalize,\n validate: (p: any) => validate(p) ? [] : (validate.errors ?? []).map(e => `${e.instancePath || 'props'} ${e.message}`),\n };\n}\nconst metric = object({ label:str, value:scalar, format:str, comparison:str }, ['label','value']);\nconst builtins: ComponentDefinition[] = [\n define('metrics','Metrics','Put the numbers that matter in focus, with formatted values and comparisons.','Data', object({ items: { ...array(metric), minItems: 1 } }, ['items']), { items:[{label:'Revenue',value:128450,format:'currency:USD',comparison:'+18.4% vs. last quarter'},{label:'Completion rate',value:0.95,format:'percent:1'}] }),\n define('table','Data table','Structured rows, aligned columns, and readable headers across every format.','Data', object({ rows:array(record), columns:{ ...array(object({label:str,value:{},format:str,align:{enum:['left','center','right']}}, ['label','value'])), minItems:1 },empty:str }, ['rows','columns']), { rows:{$bind:'dataSets.report.rows'}, columns:[{label:'Name',value:{$bind:'row.name'}},{label:'Value',value:{$bind:'row.value'},format:'integer',align:'right'}] }, ['columns[].value']),\n define('chart','Chart','Line and bar charts with their underlying data preserved in a companion table.','Data', object({kind:{enum:['line','bar']},rows:array(record),x:object({label:str,value:{},format:str},['label','value']),series:{...array(object({label:str,value:{},format:str},['label','value'])),minItems:1},title:str,alt:{type:'string',minLength:1},empty:str}, ['kind','rows','x','series','title','alt']), { kind:'bar',title:'Monthly revenue',alt:'Revenue by month.',rows:{$bind:'dataSets.report.trend'},x:{label:'Month',value:{$bind:'row.month'}},series:[{label:'Revenue',value:{$bind:'row.revenue'}}] }, ['x.value','series[].value']),\n define('diagram','Diagram','Mermaid diagrams and structured flowcharts, with editable PowerPoint shapes.','Visual', object({engine:{const:'mermaid'},alt:{type:'string',minLength:1},source:{type:'string',minLength:1},model:record,adapter:str,caption:str}, ['engine','alt']), {engine:'mermaid',alt:'The reporting workflow.',source:'flowchart LR\\n A[Data] --> B[Template]\\n B --> C[Report]'}, [], capabilities({pptx:'image',docx:'image',html:'image',pdf:'image',markdown:'image'})),\n define('image','Image','A managed image with accessible alt text and an optional caption.','Visual', object({src:{anyOf:[record,str]},alt:{type:'string',minLength:1},caption:str},['src','alt']), {src:{asset:'company-logo'},alt:'Company logo',caption:'Brand assets travel with the report.'}),\n define('list','List','Ordered or unordered collections, bound to your data one item at a time.','Content', object({rows:array({}),text:{},ordered:{type:'boolean'},empty:str},['rows','text']), {rows:{$bind:'dataSets.report.actions'},text:{$bind:'row'},ordered:true}, ['text']),\n define('narrative','Narrative','Readable commentary with optional headings and numbered evidence references.','Content', object({text:str,heading:str,evidenceIds:array(str)},['text']), {heading:'Executive perspective',text:'Revenue grew as customer retention improved.',evidenceIds:['quarterly-review']}),\n define('sources','Sources','One evidence register, numbered in first-citation order throughout the report.','Content', object({records:{type:'object',additionalProperties:object({label:str,url:str},['label'])}},['records']), {records:{'quarterly-review':{label:'Quarterly review',url:'https://example.com/review'}}}),\n define('group','Group','Keep related elements together under a shared heading.','Layout', object({heading:str,children:array(child)},['children']), {heading:'Performance',children:[{id:'group-metrics',type:'metrics',props:{items:[{label:'Active customers',value:1420}]}}]}),\n define('repeat','Repeat','Create a section for each record, with explicit, nested row scopes.','Layout', object({rows:array({}),children:array(child),empty:str},['rows','children']), {rows:{$bind:'dataSets.report.teams'},children:[{id:'team-summary',type:'narrative',props:{heading:{$bind:'row.name'},text:{$bind:'row.summary'}}}]}),\n define('reportic.callout.v1','Callout','Give a recommendation, a risk, or an insight a distinct place on the page.','Content', object({title:str,text:str,tone:{enum:['info','success','warning','danger']}},['title','text']), {title:'A strong quarter',text:'Expansion revenue now outpaces new business.',tone:'success'},[],capabilities(),p=>({type:'callout',props:p})),\n define('reportic.progress.v1','Progress','Track targets with labeled, accessible progress indicators.','Data', object({items:array(object({label:str,value:{type:'number',minimum:0,maximum:1},detail:str},['label','value']))},['items']), {items:[{label:'Revenue target',value:0.86,detail:'$128k of $150k'},{label:'Retention goal',value:0.94}]},[],capabilities(),p=>({type:'progress',props:p})),\n define('reportic.timeline.v1','Timeline','Present milestones in authored order with dates, titles, and descriptions.','Visual', object({items:array(object({date:str,title:str,text:str,status:{enum:['done','active','upcoming']}},['date','title']))},['items']), {items:[{date:'Oct 01',title:'Quarter started',text:'Baseline metrics captured.',status:'done'},{date:'Nov 15',title:'Mid-quarter review',status:'active'}]},[],capabilities(),p=>({type:'timeline',props:p})),\n define('reportic.comparison.v1','Comparison','Compare two options using consistent, editable rows.','Data', object({labels:{type:'array',items:str,minItems:2,maxItems:2},rows:array(object({label:str,left:scalar,right:scalar},['label','left','right']))},['labels','rows']), {labels:['Previous quarter','This quarter'],rows:[{label:'Revenue',left:'$108,480',right:'$128,450'},{label:'Retention',left:'91.2%',right:'94.6%'}]},[],capabilities(),p=>({type:'comparison',props:p})),\n define('reportic.checklist.v1','Checklist','Show completed and outstanding actions without losing their status in exports.','Content', object({items:array(object({text:str,done:{type:'boolean'},owner:str},['text','done']))},['items']), {items:[{text:'Reconcile source data',done:true,owner:'Finance'},{text:'Review with leadership',done:false,owner:'Operations'}]},[],capabilities(),p=>({type:'checklist',props:p})),\n define('reportic.code.v1','Code block','Include readable technical snippets with a language label.','Content', object({code:str,language:str,caption:str},['code']), {language:'typescript',code:\"const report = await generateReport(template, dataSets, variables);\"},[],capabilities(),p=>({type:'code',props:p})),\n];\n\nexport function createRegistry(extensions: ComponentDefinition[] = []): Registry {\n const map = new Map<string, ComponentDefinition>(); let revision = 1;\n const registry: Registry = {\n get revision() { return `reportic-elements@0.2.0:${revision}`; },\n list: () => [...map.values()], get: type => map.get(type),\n register: definition => {\n if (!definition || !/^([a-zA-Z][\\w-]*\\.)+[a-zA-Z0-9-]+$/.test(definition.type)) fail('INVALID_COMPONENT_ID','Extensions require a namespaced, versioned ID.');\n if (map.has(definition.type)) fail('DUPLICATE_COMPONENT', `Component \"${definition.type}\" is already registered.`);\n if (!definition.schema || !definition.capabilities || typeof definition.validate !== 'function' || !definition.normalize) fail('INVALID_COMPONENT', 'Extensions need a schema, capabilities, validation, and a semantic normalizer.');\n definition={...definition,bindingSlots:definition.bindingSlots ?? inferBindingSlots(definition.schema,definition.rowScopes)};\n map.set(definition.type, definition); revision++;\n },\n };\n builtins.forEach(d => map.set(d.type,d)); extensions.forEach(d => registry.register(d)); return registry;\n}\nexport const defaultRegistry = createRegistry();\nexport const componentMetadata = (definition: ComponentDefinition) => {\n const { validate, normalize, ...metadata } = definition; return structuredClone(metadata);\n};\nexport function listComponents(filter?: { format?: Format; editability?: 'strict' | 'normal'; category?: string }, registry: Registry = defaultRegistry) {\n return registry.list().filter(d => (!filter?.category || d.category === filter.category) && (!filter?.format || d.capabilities[filter.format] !== 'unavailable') && (filter?.editability !== 'strict' || !filter.format || d.capabilities[filter.format] === 'native')).map(componentMetadata);\n}\nexport const getComponent = (type: string, registry: Registry = defaultRegistry) => { const d = registry.get(type); return d ? componentMetadata(d) : undefined; };\n"],"mappings":";AAAA,OAAO,SAAS;AAChB,SAAS,MAAM,UAAU,yBAAyB;AAGlD,IAAM,MAAM,IAAI,IAAI,EAAE,QAAQ,OAAO,WAAW,KAAK,CAAC;AACtD,IAAM,MAAM,EAAE,MAAM,SAAS;AAAG,IAAM,SAAS,EAAE,MAAM,CAAC,UAAS,UAAS,WAAU,MAAM,EAAE;AAC5F,IAAM,aAAa,EAAE,MAAM,UAAU,UAAU,CAAC,OAAO,GAAG,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,SAAS,iDAAiD,EAAE,GAAG,sBAAsB,MAAM;AAC5L,IAAM,SAAS,EAAE,MAAM,SAAS;AAAG,IAAM,QAAQ,CAAC,WAAgB,EAAE,MAAM,SAAS,MAAM;AACzF,IAAM,SAAS,CAAC,YAAiB,WAAqB,CAAC,OAAO,EAAE,MAAM,UAAU,YAAY,UAAU,sBAAsB,KAAK;AACjI,IAAM,QAAQ,OAAO,EAAE,IAAI,KAAK,MAAM,KAAK,OAAO,QAAQ,UAAU,EAAE,OAAO,CAAC,KAAK,UAAU,EAAE,EAAE,GAAG,CAAC,MAAK,QAAO,OAAO,CAAC;AACzH,IAAM,eAAe,CAAC,YAAiD,CAAC,OAAmC,EAAE,KAAI,UAAU,MAAK,UAAU,UAAS,UAAU,MAAK,UAAU,MAAK,UAAU,GAAG,UAAU;AACxM,SAAS,UAAU,QAAkB;AACnC,MAAI,CAAC,SAAS,MAAM,EAAG,QAAO;AAC9B,QAAM,OAAO,EAAE,GAAG,OAAO;AACzB,MAAI,KAAK,WAAY,MAAK,aAAa,OAAO,YAAY,OAAO,QAAQ,KAAK,UAAU,EAAE,IAAI,CAA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I,IAAI,WAAW,MAAM,UAAU;AAAG;AAAA,IACxC;AAAA,EACF;AACA,WAAS,QAAQ,OAAK,IAAI,IAAI,EAAE,MAAK,CAAC,CAAC;AAAG,aAAW,QAAQ,OAAK,SAAS,SAAS,CAAC,CAAC;AAAG,SAAO;AAClG;AACO,IAAM,kBAAkB,eAAe;AACvC,IAAM,oBAAoB,CAAC,eAAoC;AACpE,QAAM,EAAE,UAAU,WAAW,GAAG,SAAS,IAAI;AAAY,SAAO,gBAAgB,QAAQ;AAC1F;AACO,SAAS,eAAe,QAAoF,WAAqB,iBAAiB;AACvJ,SAAO,SAAS,KAAK,EAAE,OAAO,QAAM,CAAC,QAAQ,YAAY,EAAE,aAAa,OAAO,cAAc,CAAC,QAAQ,UAAU,EAAE,aAAa,OAAO,MAAM,MAAM,mBAAmB,QAAQ,gBAAgB,YAAY,CAAC,OAAO,UAAU,EAAE,aAAa,OAAO,MAAM,MAAM,SAAS,EAAE,IAAI,iBAAiB;AAC/R;AACO,IAAM,eAAe,CAAC,MAAc,WAAqB,oBAAoB;AAAE,QAAM,IAAI,SAAS,IAAI,IAAI;AAAG,SAAO,IAAI,kBAAkB,CAAC,IAAI;AAAW;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x12i/reportic-elements",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "reportic-elements — typed, portable reporting from Markdown and data",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@x12i/reportic-core": "0.2.2",
|
|
27
|
+
"ajv": "^8.17.1"
|
|
28
|
+
}
|
|
29
|
+
}
|