@modelform/react-native 0.10.0 → 0.11.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.
package/README.md CHANGED
@@ -15,7 +15,8 @@ same format. One JSON model describes both what an app records and how it charts
15
15
  - **Configs:** a manifest format for whole apps (tabs, forms and dashboards), with JSON Schemas, validation that
16
16
  reports issues instead of throwing, and a loader with caching and last-good fallback.
17
17
  - **AI assistants:** `templatePrompt()` writes a prompt for making a template with any assistant (Claude, ChatGPT…),
18
- and `readTemplateAnswer()` reads the template back out of its reply. Nothing calls a model.
18
+ and `readTemplateAnswer()` reads the template back out of its reply. `documentPrompt()` and `readDocumentAnswer()` do
19
+ the same for changing one form or dashboard, and `documentChanges()` lists what a change does. Nothing calls a model.
19
20
 
20
21
  modelform is not affiliated with or endorsed by Grafana Labs. It reads the dashboard JSON model that Grafana
21
22
  exports, and ignores keys it doesn't understand.
@@ -11377,10 +11377,10 @@ function mergeVariables(existing, incoming) {
11377
11377
  const renamed = {};
11378
11378
  const out = [...existing];
11379
11379
  for (const v of incoming) {
11380
- const same = existing.find((e) => e.name === v.name);
11381
- if (same && sameVariable(same, v)) continue;
11380
+ const same2 = existing.find((e) => e.name === v.name);
11381
+ if (same2 && sameVariable(same2, v)) continue;
11382
11382
  let name = v.name;
11383
- if (same) {
11383
+ if (same2) {
11384
11384
  let n = 2;
11385
11385
  while (taken.has(`${v.name}_${n}`)) n++;
11386
11386
  name = `${v.name}_${n}`;
@@ -11568,24 +11568,9 @@ function applyTemplate(manifestText, paths, template, options = {}) {
11568
11568
  }
11569
11569
 
11570
11570
  // src/core/authoring.ts
11571
- var AUTHORING_GUIDE = `# modelform templates
11572
-
11573
- A template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.
11574
-
11575
- \`\`\`
11576
- {
11577
- "$modelform": "template",
11578
- "version": 1,
11579
- "title": "Short name",
11580
- "description": "One sentence on what it's for.",
11581
- "documents": [ { "kind": "form" | "dashboard", "id": "letters-digits-dashes", "dashboard": { ...document } } ],
11582
- "tabs": [ ...tabs ]
11583
- }
11584
- \`\`\`
11585
-
11586
- ## Documents
11571
+ var DOCUMENT_GUIDE = `## Documents
11587
11572
 
11588
- A document is a subset of Grafana's dashboard JSON: \`{ "kind": "form" | "dashboard", "title": "\u2026", "panels": [ \u2026 ] }\`, and dashboards add \`"time": { "from": "now-30d", "to": "now" }\`. Its \`kind\` matches its entry in \`documents\`.
11573
+ A document is a subset of Grafana's dashboard JSON: \`{ "kind": "form" | "dashboard", "title": "\u2026", "panels": [ \u2026 ] }\`, and dashboards add \`"time": { "from": "now-30d", "to": "now" }\`.
11589
11574
 
11590
11575
  Every panel has an \`id\` (a number, unique in its document), a \`type\`, a \`title\`, and a \`gridPos\` \`{ "x", "y", "w", "h" }\` on a 24-column grid: \`w: 24\` is full width, \`w: 12\` half. Stack panels top to bottom with no gaps or overlaps (each \`y\` is the previous \`y + h\` unless they sit side by side). On phones panels show full width in that order.
11591
11576
 
@@ -11632,7 +11617,25 @@ Units and ranges go in \`"fieldConfig": { "defaults": { "unit": "\u2026", "min",
11632
11617
 
11633
11618
  Charts can't do arithmetic across metrics (weight \xD7 reps, a ratio of two inputs). Chart what's recorded instead, or add an input for the combined value, and say which you did in the sentence before the JSON.
11634
11619
 
11635
- ## Tabs
11620
+ `;
11621
+ var AUTHORING_GUIDE = `# modelform templates
11622
+
11623
+ A template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.
11624
+
11625
+ \`\`\`
11626
+ {
11627
+ "$modelform": "template",
11628
+ "version": 1,
11629
+ "title": "Short name",
11630
+ "description": "One sentence on what it's for.",
11631
+ "documents": [ { "kind": "form" | "dashboard", "id": "letters-digits-dashes", "dashboard": { ...document } } ],
11632
+ "tabs": [ ...tabs ]
11633
+ }
11634
+ \`\`\`
11635
+
11636
+ Each document's \`kind\` matches its entry in \`documents\`.
11637
+
11638
+ ${DOCUMENT_GUIDE}## Tabs
11636
11639
 
11637
11640
  \`{ "id": "\u2026", "title": "\u2026", "icon": "\u2026", "screen": \u2026 }\`, where the screen is one of:
11638
11641
 
@@ -11789,6 +11792,88 @@ function fixTemplatePrompt(problems) {
11789
11792
  "Fix these and reply with the whole corrected template as one ```json code block."
11790
11793
  ].join("\n");
11791
11794
  }
11795
+ function documentPrompt(request, document, { recorded = [] } = {}) {
11796
+ const kind = document.kind ?? "dashboard";
11797
+ return [
11798
+ `I\u2019m building an app with modelform studio. Change this ${kind} for me:`,
11799
+ "",
11800
+ request.trim().replace(/^/gm, "> "),
11801
+ "",
11802
+ recorded.length ? `The app records these metrics: ${recorded.map((m) => `\`${m}\``).join(", ")}. Charts can read any of them.` : "",
11803
+ "Keep the ids of panels you keep and give new panels ids not used yet. Don\u2019t change an existing input\u2019s metric unless I asked: entries saved under the old name would stop showing up.",
11804
+ `Keep \`"kind": "${kind}"\`. Reply with the whole changed ${kind} as one \`\`\`json code block, not just the parts that changed. A sentence before it is fine; nothing after it.`,
11805
+ "",
11806
+ `## The ${kind} now`,
11807
+ "",
11808
+ "```json",
11809
+ JSON.stringify(document, null, 2),
11810
+ "```",
11811
+ "",
11812
+ DOCUMENT_GUIDE
11813
+ ].filter((line, i, all) => line !== "" || all[i - 1] !== "").join("\n");
11814
+ }
11815
+ function readDocumentAnswer(text, kind) {
11816
+ let json;
11817
+ try {
11818
+ json = jsonFromAnswer(text);
11819
+ } catch (e) {
11820
+ return { error: e.message };
11821
+ }
11822
+ const wrapper = json;
11823
+ if (wrapper?.$modelform === "template") {
11824
+ if (!Array.isArray(wrapper.documents) || wrapper.documents.length !== 1) return { error: `That\u2019s a template, not one ${kind}` };
11825
+ json = wrapper.documents[0]?.dashboard;
11826
+ }
11827
+ if (!json || typeof json !== "object" || Array.isArray(json)) return { error: `That isn\u2019t a ${kind}` };
11828
+ const raw = json;
11829
+ const stated = raw.kind ?? (Array.isArray(raw.panels) ? documentKind(raw) : void 0);
11830
+ if (stated !== void 0 && stated !== kind)
11831
+ return { error: raw.kind === void 0 ? kind === "form" ? "That has no inputs, so it isn\u2019t a form" : "That has inputs, so it\u2019s a form, not a dashboard" : `That\u2019s a ${String(raw.kind)}, not a ${kind}` };
11832
+ const { dashboard, issues } = prepareDashboard(raw, kind);
11833
+ if (!dashboard) return { error: issues.filter((i) => i.severity === "error").map((i) => `${i.path}: ${i.message}`).join("; ") || `That isn\u2019t a ${kind}` };
11834
+ const document = { kind, ...raw };
11835
+ return { document, warnings: issues.filter((i) => i.severity === "warning").map((i) => `${i.path}: ${i.message}`) };
11836
+ }
11837
+ function fixDocumentPrompt(problems, kind) {
11838
+ return [
11839
+ `modelform couldn\u2019t use that ${kind} as it was:`,
11840
+ "",
11841
+ ...problems.map((p) => `- ${p}`),
11842
+ "",
11843
+ `Fix these and reply with the whole corrected ${kind} as one \`\`\`json code block.`
11844
+ ].join("\n");
11845
+ }
11846
+ var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
11847
+ var flat = (d) => (d.panels ?? []).flatMap((p) => p.type === "row" && p.panels ? [p, ...p.panels] : [p]);
11848
+ function documentChanges(before, after) {
11849
+ const labels = [["kind", "kind"], ["title", "title"], ["description", "description"], ["time", "time range"], ["templating", "variables"], ["timezone", "time zone"], ["refresh", "refresh"]];
11850
+ const document = labels.filter(([key]) => !same(before[key], after[key])).map(([, label]) => label);
11851
+ const old = new Map(flat(before).map((p) => [p.id, p]));
11852
+ const now = new Map(flat(after).map((p) => [p.id, p]));
11853
+ const info = (p) => ({ id: p.id, title: p.title || p.type, type: p.type });
11854
+ const panels = [];
11855
+ for (const p of flat(after)) {
11856
+ const was = old.get(p.id);
11857
+ if (!was) {
11858
+ panels.push({ change: "added", ...info(p), what: [] });
11859
+ continue;
11860
+ }
11861
+ const what = [];
11862
+ if (was.title !== p.title) what.push("title");
11863
+ if (was.type !== p.type) what.push("type");
11864
+ if (was.gridPos?.x !== p.gridPos?.x || was.gridPos?.y !== p.gridPos?.y) what.push("position");
11865
+ if (was.gridPos?.w !== p.gridPos?.w || was.gridPos?.h !== p.gridPos?.h) what.push("size");
11866
+ if (!same(was.options, p.options)) what.push("options");
11867
+ if (!same(was.targets, p.targets) || !same(was.datasource, p.datasource) || !same(was.transformations, p.transformations)) what.push("queries");
11868
+ if (!same(was.fieldConfig, p.fieldConfig)) what.push("field config");
11869
+ const known = /* @__PURE__ */ new Set(["id", "title", "type", "gridPos", "options", "targets", "datasource", "transformations", "fieldConfig", "panels"]);
11870
+ const rest = (q) => Object.fromEntries(Object.entries(q).filter(([k]) => !known.has(k)).sort(([a], [b]) => a.localeCompare(b)));
11871
+ if (!same(rest(was), rest(p))) what.push("other");
11872
+ if (what.length) panels.push({ change: "changed", ...info(p), what });
11873
+ }
11874
+ for (const p of flat(before)) if (!now.has(p.id)) panels.push({ change: "removed", ...info(p), what: [] });
11875
+ return { document, panels };
11876
+ }
11792
11877
 
11793
11878
  export {
11794
11879
  frameLength,
@@ -12014,10 +12099,15 @@ export {
12014
12099
  parseTemplate,
12015
12100
  templateNeeds,
12016
12101
  applyTemplate,
12102
+ DOCUMENT_GUIDE,
12017
12103
  AUTHORING_GUIDE,
12018
12104
  EXAMPLE_TEMPLATE,
12019
12105
  templatePrompt,
12020
12106
  jsonFromAnswer,
12021
12107
  readTemplateAnswer,
12022
- fixTemplatePrompt
12108
+ fixTemplatePrompt,
12109
+ documentPrompt,
12110
+ readDocumentAnswer,
12111
+ fixDocumentPrompt,
12112
+ documentChanges
12023
12113
  };
@@ -11377,10 +11377,10 @@ function mergeVariables(existing, incoming) {
11377
11377
  const renamed = {};
11378
11378
  const out = [...existing];
11379
11379
  for (const v of incoming) {
11380
- const same = existing.find((e) => e.name === v.name);
11381
- if (same && sameVariable(same, v)) continue;
11380
+ const same2 = existing.find((e) => e.name === v.name);
11381
+ if (same2 && sameVariable(same2, v)) continue;
11382
11382
  let name = v.name;
11383
- if (same) {
11383
+ if (same2) {
11384
11384
  let n = 2;
11385
11385
  while (taken.has(`${v.name}_${n}`)) n++;
11386
11386
  name = `${v.name}_${n}`;
@@ -11568,24 +11568,9 @@ function applyTemplate(manifestText, paths, template, options = {}) {
11568
11568
  }
11569
11569
 
11570
11570
  // src/core/authoring.ts
11571
- var AUTHORING_GUIDE = `# modelform templates
11572
-
11573
- A template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.
11574
-
11575
- \`\`\`
11576
- {
11577
- "$modelform": "template",
11578
- "version": 1,
11579
- "title": "Short name",
11580
- "description": "One sentence on what it's for.",
11581
- "documents": [ { "kind": "form" | "dashboard", "id": "letters-digits-dashes", "dashboard": { ...document } } ],
11582
- "tabs": [ ...tabs ]
11583
- }
11584
- \`\`\`
11571
+ var DOCUMENT_GUIDE = `## Documents
11585
11572
 
11586
- ## Documents
11587
-
11588
- A document is a subset of Grafana's dashboard JSON: \`{ "kind": "form" | "dashboard", "title": "\u2026", "panels": [ \u2026 ] }\`, and dashboards add \`"time": { "from": "now-30d", "to": "now" }\`. Its \`kind\` matches its entry in \`documents\`.
11573
+ A document is a subset of Grafana's dashboard JSON: \`{ "kind": "form" | "dashboard", "title": "\u2026", "panels": [ \u2026 ] }\`, and dashboards add \`"time": { "from": "now-30d", "to": "now" }\`.
11589
11574
 
11590
11575
  Every panel has an \`id\` (a number, unique in its document), a \`type\`, a \`title\`, and a \`gridPos\` \`{ "x", "y", "w", "h" }\` on a 24-column grid: \`w: 24\` is full width, \`w: 12\` half. Stack panels top to bottom with no gaps or overlaps (each \`y\` is the previous \`y + h\` unless they sit side by side). On phones panels show full width in that order.
11591
11576
 
@@ -11632,7 +11617,25 @@ Units and ranges go in \`"fieldConfig": { "defaults": { "unit": "\u2026", "min",
11632
11617
 
11633
11618
  Charts can't do arithmetic across metrics (weight \xD7 reps, a ratio of two inputs). Chart what's recorded instead, or add an input for the combined value, and say which you did in the sentence before the JSON.
11634
11619
 
11635
- ## Tabs
11620
+ `;
11621
+ var AUTHORING_GUIDE = `# modelform templates
11622
+
11623
+ A template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.
11624
+
11625
+ \`\`\`
11626
+ {
11627
+ "$modelform": "template",
11628
+ "version": 1,
11629
+ "title": "Short name",
11630
+ "description": "One sentence on what it's for.",
11631
+ "documents": [ { "kind": "form" | "dashboard", "id": "letters-digits-dashes", "dashboard": { ...document } } ],
11632
+ "tabs": [ ...tabs ]
11633
+ }
11634
+ \`\`\`
11635
+
11636
+ Each document's \`kind\` matches its entry in \`documents\`.
11637
+
11638
+ ${DOCUMENT_GUIDE}## Tabs
11636
11639
 
11637
11640
  \`{ "id": "\u2026", "title": "\u2026", "icon": "\u2026", "screen": \u2026 }\`, where the screen is one of:
11638
11641
 
@@ -11789,6 +11792,93 @@ function fixTemplatePrompt(problems) {
11789
11792
  "Fix these and reply with the whole corrected template as one ```json code block."
11790
11793
  ].join("\n");
11791
11794
  }
11795
+ function documentPrompt(request, document, { recorded = [] } = {}) {
11796
+ const kind = _nullishCoalesce(document.kind, () => ( "dashboard"));
11797
+ return [
11798
+ `I\u2019m building an app with modelform studio. Change this ${kind} for me:`,
11799
+ "",
11800
+ request.trim().replace(/^/gm, "> "),
11801
+ "",
11802
+ recorded.length ? `The app records these metrics: ${recorded.map((m) => `\`${m}\``).join(", ")}. Charts can read any of them.` : "",
11803
+ "Keep the ids of panels you keep and give new panels ids not used yet. Don\u2019t change an existing input\u2019s metric unless I asked: entries saved under the old name would stop showing up.",
11804
+ `Keep \`"kind": "${kind}"\`. Reply with the whole changed ${kind} as one \`\`\`json code block, not just the parts that changed. A sentence before it is fine; nothing after it.`,
11805
+ "",
11806
+ `## The ${kind} now`,
11807
+ "",
11808
+ "```json",
11809
+ JSON.stringify(document, null, 2),
11810
+ "```",
11811
+ "",
11812
+ DOCUMENT_GUIDE
11813
+ ].filter((line, i, all) => line !== "" || all[i - 1] !== "").join("\n");
11814
+ }
11815
+ function readDocumentAnswer(text, kind) {
11816
+ let json;
11817
+ try {
11818
+ json = jsonFromAnswer(text);
11819
+ } catch (e) {
11820
+ return { error: e.message };
11821
+ }
11822
+ const wrapper = json;
11823
+ if (_optionalChain([wrapper, 'optionalAccess', _333 => _333.$modelform]) === "template") {
11824
+ if (!Array.isArray(wrapper.documents) || wrapper.documents.length !== 1) return { error: `That\u2019s a template, not one ${kind}` };
11825
+ json = _optionalChain([wrapper, 'access', _334 => _334.documents, 'access', _335 => _335[0], 'optionalAccess', _336 => _336.dashboard]);
11826
+ }
11827
+ if (!json || typeof json !== "object" || Array.isArray(json)) return { error: `That isn\u2019t a ${kind}` };
11828
+ const raw = json;
11829
+ const stated = _nullishCoalesce(raw.kind, () => ( (Array.isArray(raw.panels) ? documentKind(raw) : void 0)));
11830
+ if (stated !== void 0 && stated !== kind)
11831
+ return { error: raw.kind === void 0 ? kind === "form" ? "That has no inputs, so it isn\u2019t a form" : "That has inputs, so it\u2019s a form, not a dashboard" : `That\u2019s a ${String(raw.kind)}, not a ${kind}` };
11832
+ const { dashboard, issues } = prepareDashboard(raw, kind);
11833
+ if (!dashboard) return { error: issues.filter((i) => i.severity === "error").map((i) => `${i.path}: ${i.message}`).join("; ") || `That isn\u2019t a ${kind}` };
11834
+ const document = { kind, ...raw };
11835
+ return { document, warnings: issues.filter((i) => i.severity === "warning").map((i) => `${i.path}: ${i.message}`) };
11836
+ }
11837
+ function fixDocumentPrompt(problems, kind) {
11838
+ return [
11839
+ `modelform couldn\u2019t use that ${kind} as it was:`,
11840
+ "",
11841
+ ...problems.map((p) => `- ${p}`),
11842
+ "",
11843
+ `Fix these and reply with the whole corrected ${kind} as one \`\`\`json code block.`
11844
+ ].join("\n");
11845
+ }
11846
+ var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
11847
+ var flat = (d) => (_nullishCoalesce(d.panels, () => ( []))).flatMap((p) => p.type === "row" && p.panels ? [p, ...p.panels] : [p]);
11848
+ function documentChanges(before, after) {
11849
+ const labels = [["kind", "kind"], ["title", "title"], ["description", "description"], ["time", "time range"], ["templating", "variables"], ["timezone", "time zone"], ["refresh", "refresh"]];
11850
+ const document = labels.filter(([key]) => !same(before[key], after[key])).map(([, label]) => label);
11851
+ const old = new Map(flat(before).map((p) => [p.id, p]));
11852
+ const now = new Map(flat(after).map((p) => [p.id, p]));
11853
+ const info = (p) => ({ id: p.id, title: p.title || p.type, type: p.type });
11854
+ const panels = [];
11855
+ for (const p of flat(after)) {
11856
+ const was = old.get(p.id);
11857
+ if (!was) {
11858
+ panels.push({ change: "added", ...info(p), what: [] });
11859
+ continue;
11860
+ }
11861
+ const what = [];
11862
+ if (was.title !== p.title) what.push("title");
11863
+ if (was.type !== p.type) what.push("type");
11864
+ if (_optionalChain([was, 'access', _337 => _337.gridPos, 'optionalAccess', _338 => _338.x]) !== _optionalChain([p, 'access', _339 => _339.gridPos, 'optionalAccess', _340 => _340.x]) || _optionalChain([was, 'access', _341 => _341.gridPos, 'optionalAccess', _342 => _342.y]) !== _optionalChain([p, 'access', _343 => _343.gridPos, 'optionalAccess', _344 => _344.y])) what.push("position");
11865
+ if (_optionalChain([was, 'access', _345 => _345.gridPos, 'optionalAccess', _346 => _346.w]) !== _optionalChain([p, 'access', _347 => _347.gridPos, 'optionalAccess', _348 => _348.w]) || _optionalChain([was, 'access', _349 => _349.gridPos, 'optionalAccess', _350 => _350.h]) !== _optionalChain([p, 'access', _351 => _351.gridPos, 'optionalAccess', _352 => _352.h])) what.push("size");
11866
+ if (!same(was.options, p.options)) what.push("options");
11867
+ if (!same(was.targets, p.targets) || !same(was.datasource, p.datasource) || !same(was.transformations, p.transformations)) what.push("queries");
11868
+ if (!same(was.fieldConfig, p.fieldConfig)) what.push("field config");
11869
+ const known = /* @__PURE__ */ new Set(["id", "title", "type", "gridPos", "options", "targets", "datasource", "transformations", "fieldConfig", "panels"]);
11870
+ const rest = (q) => Object.fromEntries(Object.entries(q).filter(([k]) => !known.has(k)).sort(([a], [b]) => a.localeCompare(b)));
11871
+ if (!same(rest(was), rest(p))) what.push("other");
11872
+ if (what.length) panels.push({ change: "changed", ...info(p), what });
11873
+ }
11874
+ for (const p of flat(before)) if (!now.has(p.id)) panels.push({ change: "removed", ...info(p), what: [] });
11875
+ return { document, panels };
11876
+ }
11877
+
11878
+
11879
+
11880
+
11881
+
11792
11882
 
11793
11883
 
11794
11884
 
@@ -12020,4 +12110,4 @@ function fixTemplatePrompt(problems) {
12020
12110
 
12021
12111
 
12022
12112
 
12023
- exports.frameLength = frameLength; exports.timeField = timeField; exports.numberFields = numberFields; exports.fieldDisplayName = fieldDisplayName; exports.toSeries = toSeries; exports.toXYSeries = toXYSeries; exports.uniqueNames = uniqueNames; exports.toMillis = toMillis; exports.parseTime = parseTime; exports.parseRange = parseRange; exports.addTime = addTime; exports.startOf = startOf; exports.parseDuration = parseDuration; exports.calculateInterval = calculateInterval; exports.formatDuration = formatDuration; exports.TIME_PRESETS = TIME_PRESETS; exports.RELATIVE_RANGES = RELATIVE_RANGES; exports.parseLocalDateTime = parseLocalDateTime; exports.formatLocalDateTime = formatLocalDateTime; exports.timeExprError = timeExprError; exports.describeRange = describeRange; exports.zoomRange = zoomRange; exports.ALL = ALL; exports.initialVariableValues = initialVariableValues; exports.variableOptions = variableOptions; exports.variableInfo = variableInfo; exports.visibleVariables = visibleVariables; exports.isSqlDatasource = isSqlDatasource; exports.framesToOptions = framesToOptions; exports.refineOptions = refineOptions; exports.selectValue = selectValue; exports.variableReferences = variableReferences; exports.interpolate = interpolate; exports.queryParam = queryParam; exports.interpolateDeep = interpolateDeep; exports.resolveTimezone = resolveTimezone; exports.valueText = valueText; exports.GRID_COLUMNS = GRID_COLUMNS; exports.gridUnitsToPx = gridUnitsToPx; exports.gridOffsetPx = gridOffsetPx; exports.compactGrid = compactGrid; exports.isRow = isRow; exports.layoutDashboard = layoutDashboard; exports.repeatOptions = repeatOptions; exports.panelKey = panelKey; exports.panelSpan = panelSpan; exports.applyTransformations = applyTransformations; exports.DASHBOARD_DS = DASHBOARD_DS; exports.dashboardSourceIds = dashboardSourceIds; exports.panelHasQueries = panelHasQueries; exports.queryPanel = queryPanel; exports.normalizeRef = normalizeRef; exports.refreshedVariables = refreshedVariables; exports.variableDependents = variableDependents; exports.variableOrder = variableOrder; exports.resolveVariables = resolveVariables; exports.REDUCER_LABELS = REDUCER_LABELS; exports.isReducer = isReducer; exports.reduce = reduce; exports.INPUT_OPTION_KEYS = INPUT_OPTION_KEYS; exports.INPUT_TYPES = INPUT_TYPES; exports.isInputType = isInputType; exports.isInputPanel = isInputPanel; exports.INPUT_GROUP = INPUT_GROUP; exports.isFormPanelType = isFormPanelType; exports.isInputGroup = isInputGroup; exports.GROUP_FIELD_TYPES = GROUP_FIELD_TYPES; exports.groupFields = groupFields; exports.inputPanels = inputPanels; exports.documentKind = documentKind; exports.inputGroups = inputGroups; exports.plainInputPanels = plainInputPanels; exports.parseClockDigits = parseClockDigits; exports.formatClock = formatClock; exports.toEntries = toEntries; exports.newSaveId = newSaveId; exports.isEmptyItem = isEmptyItem; exports.groupToEntries = groupToEntries; exports.entriesToItems = entriesToItems; exports.groupProblems = groupProblems; exports.sameSave = sameSave; exports.inputProblem = inputProblem; exports.entryToInputValue = entryToInputValue; exports.textSuggestions = textSuggestions; exports.entriesSavedWith = entriesSavedWith; exports.formatValue = formatValue; exports.thresholdStep = thresholdStep; exports.NAMED_COLORS = NAMED_COLORS; exports.resolveColor = resolveColor; exports.SERIES_PALETTE = SERIES_PALETTE; exports.seriesColor = seriesColor; exports.mappedResult = mappedResult; exports.formatDisplay = formatDisplay; exports.valueColor = valueColor; exports.resolveFieldConfig = resolveFieldConfig; exports.fieldMatches = fieldMatches; exports.GrafanaError = GrafanaError; exports.GrafanaClient = GrafanaClient; exports.GrafanaDataSource = GrafanaDataSource; exports.fromWire = fromWire; exports.LOCAL_DATASOURCE_TYPE = LOCAL_DATASOURCE_TYPE; exports.isLocalDatasource = isLocalDatasource; exports.LocalDataSource = LocalDataSource; exports.groupField = groupField; exports.buildFrames = buildFrames; exports.MemoryEntryStore = MemoryEntryStore; exports.DEFAULT_GAZETTEER = DEFAULT_GAZETTEER; exports.parseGazetteer = parseGazetteer; exports.loadGazetteer = loadGazetteer; exports.resolveLinks = resolveLinks; exports.parseDashboardLink = parseDashboardLink; exports.applyDashboardLink = applyDashboardLink; exports.appSchema = appSchema; exports.dashboardSchema = dashboardSchema; exports.pointerToPath = pointerToPath; exports.manifestSchemaIssues = manifestSchemaIssues; exports.dashboardSchemaIssues = dashboardSchemaIssues; exports.cleanDashboard = cleanDashboard; exports.MAPPING_TYPES = MAPPING_TYPES; exports.SPECIAL_MATCHES = SPECIAL_MATCHES; exports.mappingRows = mappingRows; exports.rowsToMappings = rowsToMappings; exports.mappingRow = mappingRow; exports.mappingProblem = mappingProblem; exports.OPTION_CATEGORIES = OPTION_CATEGORIES; exports.UNIT_CHOICES = UNIT_CHOICES; exports.panelOptions = panelOptions; exports.getPath = getPath; exports.optionValue = optionValue; exports.setOption = setOption; exports.setOptionValue = setOptionValue; exports.cleanPanelOptions = cleanPanelOptions; exports.OVERRIDE_MATCHERS = OVERRIDE_MATCHERS; exports.overrideProperties = overrideProperties; exports.panelOverrides = panelOverrides; exports.setOverrides = setOverrides; exports.MANIFEST_VERSION = MANIFEST_VERSION; exports.validateManifest = validateManifest; exports.prepareDashboard = prepareDashboard; exports.validateDashboard = validateDashboard2; exports.validateBundle = validateBundle; exports.resolveUrl = resolveUrl; exports.httpFetchJson = httpFetchJson; exports.defaultFetchJson = defaultFetchJson; exports.BUNDLE_TYPE = BUNDLE_TYPE; exports.BUNDLE_ACCEPT = BUNDLE_ACCEPT; exports.isBundleResponse = isBundleResponse; exports.bundleRoot = bundleRoot; exports.assembleFromResponse = assembleFromResponse; exports.assembleBundle = assembleBundle; exports.fetchBundle = fetchBundle; exports.revalidateBundle = revalidateBundle; exports.ConfigLoader = ConfigLoader; exports.tabIdFor = tabIdFor; exports.screenOfType = screenOfType; exports.screenDocuments = screenDocuments; exports.documentUses = documentUses; exports.stringifyCompact = stringifyCompact; exports.applyJsonEdits = applyJsonEdits; exports.diffJson = diffJson; exports.documentIdFor = documentIdFor; exports.removeDocumentFromManifest = removeDocumentFromManifest; exports.renameDocumentInManifest = renameDocumentInManifest; exports.metricChanges = metricChanges; exports.REFRESH_CHOICES = REFRESH_CHOICES; exports.EDITABLE_VARIABLE_TYPES = EDITABLE_VARIABLE_TYPES; exports.isEditableVariableType = isEditableVariableType; exports.variableNameError = variableNameError; exports.newVariable = newVariable; exports.variableWithType = variableWithType; exports.variableWithQuery = variableWithQuery; exports.variableWithCurrent = variableWithCurrent; exports.variableWithFlags = variableWithFlags; exports.variableUses = variableUses; exports.renameVariableInPanels = renameVariableInPanels; exports.lineColumn = lineColumn; exports.parseJsonText = parseJsonText; exports.splitPath = splitPath; exports.locate = locate; exports.checkFiles = checkFiles; exports.bundleFromFiles = bundleFromFiles; exports.formatJsonText = formatJsonText; exports.setJsonValue = setJsonValue; exports.PANEL_TYPES = PANEL_TYPES; exports.newPanel = newPanel; exports.newDocument = newDocument; exports.SaveConflictError = SaveConflictError; exports.HttpConfigFiles = HttpConfigFiles; exports.fetchJsonWithToken = fetchJsonWithToken; exports.readConfigFiles = readConfigFiles; exports.readingOrder = readingOrder; exports.repack = repack; exports.CANVAS_GAP = CANVAS_GAP; exports.CANVAS_ROW_HEADER = CANVAS_ROW_HEADER; exports.panelSize = panelSize; exports.layoutCanvas = layoutCanvas; exports.dropTarget = dropTarget; exports.movePanel = movePanel; exports.resizePanel = resizePanel; exports.setHiddenOnPhones = setHiddenOnPhones; exports.nextPanelId = nextPanelId; exports.insertPanel = insertPanel; exports.duplicatePanel = duplicatePanel; exports.removePanel = removePanel; exports.expandRow = expandRow; exports.collapseRow = collapseRow; exports.settleLayout = settleLayout; exports.placePanel = placePanel; exports.snapToGrid = snapToGrid; exports.panelEdits = panelEdits; exports.sampleEntries = sampleEntries; exports.SNIPPET_VERSION = SNIPPET_VERSION; exports.panelMetrics = panelMetrics; exports.renameMetrics = renameMetrics; exports.copyPanels = copyPanels; exports.parseSnippet = parseSnippet; exports.previewPaste = previewPaste; exports.pasteSnippet = pasteSnippet; exports.TEMPLATE_VERSION = TEMPLATE_VERSION; exports.makeTemplate = makeTemplate; exports.parseTemplate = parseTemplate; exports.templateNeeds = templateNeeds; exports.applyTemplate = applyTemplate; exports.AUTHORING_GUIDE = AUTHORING_GUIDE; exports.EXAMPLE_TEMPLATE = EXAMPLE_TEMPLATE; exports.templatePrompt = templatePrompt; exports.jsonFromAnswer = jsonFromAnswer; exports.readTemplateAnswer = readTemplateAnswer; exports.fixTemplatePrompt = fixTemplatePrompt;
12113
+ exports.frameLength = frameLength; exports.timeField = timeField; exports.numberFields = numberFields; exports.fieldDisplayName = fieldDisplayName; exports.toSeries = toSeries; exports.toXYSeries = toXYSeries; exports.uniqueNames = uniqueNames; exports.toMillis = toMillis; exports.parseTime = parseTime; exports.parseRange = parseRange; exports.addTime = addTime; exports.startOf = startOf; exports.parseDuration = parseDuration; exports.calculateInterval = calculateInterval; exports.formatDuration = formatDuration; exports.TIME_PRESETS = TIME_PRESETS; exports.RELATIVE_RANGES = RELATIVE_RANGES; exports.parseLocalDateTime = parseLocalDateTime; exports.formatLocalDateTime = formatLocalDateTime; exports.timeExprError = timeExprError; exports.describeRange = describeRange; exports.zoomRange = zoomRange; exports.ALL = ALL; exports.initialVariableValues = initialVariableValues; exports.variableOptions = variableOptions; exports.variableInfo = variableInfo; exports.visibleVariables = visibleVariables; exports.isSqlDatasource = isSqlDatasource; exports.framesToOptions = framesToOptions; exports.refineOptions = refineOptions; exports.selectValue = selectValue; exports.variableReferences = variableReferences; exports.interpolate = interpolate; exports.queryParam = queryParam; exports.interpolateDeep = interpolateDeep; exports.resolveTimezone = resolveTimezone; exports.valueText = valueText; exports.GRID_COLUMNS = GRID_COLUMNS; exports.gridUnitsToPx = gridUnitsToPx; exports.gridOffsetPx = gridOffsetPx; exports.compactGrid = compactGrid; exports.isRow = isRow; exports.layoutDashboard = layoutDashboard; exports.repeatOptions = repeatOptions; exports.panelKey = panelKey; exports.panelSpan = panelSpan; exports.applyTransformations = applyTransformations; exports.DASHBOARD_DS = DASHBOARD_DS; exports.dashboardSourceIds = dashboardSourceIds; exports.panelHasQueries = panelHasQueries; exports.queryPanel = queryPanel; exports.normalizeRef = normalizeRef; exports.refreshedVariables = refreshedVariables; exports.variableDependents = variableDependents; exports.variableOrder = variableOrder; exports.resolveVariables = resolveVariables; exports.REDUCER_LABELS = REDUCER_LABELS; exports.isReducer = isReducer; exports.reduce = reduce; exports.INPUT_OPTION_KEYS = INPUT_OPTION_KEYS; exports.INPUT_TYPES = INPUT_TYPES; exports.isInputType = isInputType; exports.isInputPanel = isInputPanel; exports.INPUT_GROUP = INPUT_GROUP; exports.isFormPanelType = isFormPanelType; exports.isInputGroup = isInputGroup; exports.GROUP_FIELD_TYPES = GROUP_FIELD_TYPES; exports.groupFields = groupFields; exports.inputPanels = inputPanels; exports.documentKind = documentKind; exports.inputGroups = inputGroups; exports.plainInputPanels = plainInputPanels; exports.parseClockDigits = parseClockDigits; exports.formatClock = formatClock; exports.toEntries = toEntries; exports.newSaveId = newSaveId; exports.isEmptyItem = isEmptyItem; exports.groupToEntries = groupToEntries; exports.entriesToItems = entriesToItems; exports.groupProblems = groupProblems; exports.sameSave = sameSave; exports.inputProblem = inputProblem; exports.entryToInputValue = entryToInputValue; exports.textSuggestions = textSuggestions; exports.entriesSavedWith = entriesSavedWith; exports.formatValue = formatValue; exports.thresholdStep = thresholdStep; exports.NAMED_COLORS = NAMED_COLORS; exports.resolveColor = resolveColor; exports.SERIES_PALETTE = SERIES_PALETTE; exports.seriesColor = seriesColor; exports.mappedResult = mappedResult; exports.formatDisplay = formatDisplay; exports.valueColor = valueColor; exports.resolveFieldConfig = resolveFieldConfig; exports.fieldMatches = fieldMatches; exports.GrafanaError = GrafanaError; exports.GrafanaClient = GrafanaClient; exports.GrafanaDataSource = GrafanaDataSource; exports.fromWire = fromWire; exports.LOCAL_DATASOURCE_TYPE = LOCAL_DATASOURCE_TYPE; exports.isLocalDatasource = isLocalDatasource; exports.LocalDataSource = LocalDataSource; exports.groupField = groupField; exports.buildFrames = buildFrames; exports.MemoryEntryStore = MemoryEntryStore; exports.DEFAULT_GAZETTEER = DEFAULT_GAZETTEER; exports.parseGazetteer = parseGazetteer; exports.loadGazetteer = loadGazetteer; exports.resolveLinks = resolveLinks; exports.parseDashboardLink = parseDashboardLink; exports.applyDashboardLink = applyDashboardLink; exports.appSchema = appSchema; exports.dashboardSchema = dashboardSchema; exports.pointerToPath = pointerToPath; exports.manifestSchemaIssues = manifestSchemaIssues; exports.dashboardSchemaIssues = dashboardSchemaIssues; exports.cleanDashboard = cleanDashboard; exports.MAPPING_TYPES = MAPPING_TYPES; exports.SPECIAL_MATCHES = SPECIAL_MATCHES; exports.mappingRows = mappingRows; exports.rowsToMappings = rowsToMappings; exports.mappingRow = mappingRow; exports.mappingProblem = mappingProblem; exports.OPTION_CATEGORIES = OPTION_CATEGORIES; exports.UNIT_CHOICES = UNIT_CHOICES; exports.panelOptions = panelOptions; exports.getPath = getPath; exports.optionValue = optionValue; exports.setOption = setOption; exports.setOptionValue = setOptionValue; exports.cleanPanelOptions = cleanPanelOptions; exports.OVERRIDE_MATCHERS = OVERRIDE_MATCHERS; exports.overrideProperties = overrideProperties; exports.panelOverrides = panelOverrides; exports.setOverrides = setOverrides; exports.MANIFEST_VERSION = MANIFEST_VERSION; exports.validateManifest = validateManifest; exports.prepareDashboard = prepareDashboard; exports.validateDashboard = validateDashboard2; exports.validateBundle = validateBundle; exports.resolveUrl = resolveUrl; exports.httpFetchJson = httpFetchJson; exports.defaultFetchJson = defaultFetchJson; exports.BUNDLE_TYPE = BUNDLE_TYPE; exports.BUNDLE_ACCEPT = BUNDLE_ACCEPT; exports.isBundleResponse = isBundleResponse; exports.bundleRoot = bundleRoot; exports.assembleFromResponse = assembleFromResponse; exports.assembleBundle = assembleBundle; exports.fetchBundle = fetchBundle; exports.revalidateBundle = revalidateBundle; exports.ConfigLoader = ConfigLoader; exports.tabIdFor = tabIdFor; exports.screenOfType = screenOfType; exports.screenDocuments = screenDocuments; exports.documentUses = documentUses; exports.stringifyCompact = stringifyCompact; exports.applyJsonEdits = applyJsonEdits; exports.diffJson = diffJson; exports.documentIdFor = documentIdFor; exports.removeDocumentFromManifest = removeDocumentFromManifest; exports.renameDocumentInManifest = renameDocumentInManifest; exports.metricChanges = metricChanges; exports.REFRESH_CHOICES = REFRESH_CHOICES; exports.EDITABLE_VARIABLE_TYPES = EDITABLE_VARIABLE_TYPES; exports.isEditableVariableType = isEditableVariableType; exports.variableNameError = variableNameError; exports.newVariable = newVariable; exports.variableWithType = variableWithType; exports.variableWithQuery = variableWithQuery; exports.variableWithCurrent = variableWithCurrent; exports.variableWithFlags = variableWithFlags; exports.variableUses = variableUses; exports.renameVariableInPanels = renameVariableInPanels; exports.lineColumn = lineColumn; exports.parseJsonText = parseJsonText; exports.splitPath = splitPath; exports.locate = locate; exports.checkFiles = checkFiles; exports.bundleFromFiles = bundleFromFiles; exports.formatJsonText = formatJsonText; exports.setJsonValue = setJsonValue; exports.PANEL_TYPES = PANEL_TYPES; exports.newPanel = newPanel; exports.newDocument = newDocument; exports.SaveConflictError = SaveConflictError; exports.HttpConfigFiles = HttpConfigFiles; exports.fetchJsonWithToken = fetchJsonWithToken; exports.readConfigFiles = readConfigFiles; exports.readingOrder = readingOrder; exports.repack = repack; exports.CANVAS_GAP = CANVAS_GAP; exports.CANVAS_ROW_HEADER = CANVAS_ROW_HEADER; exports.panelSize = panelSize; exports.layoutCanvas = layoutCanvas; exports.dropTarget = dropTarget; exports.movePanel = movePanel; exports.resizePanel = resizePanel; exports.setHiddenOnPhones = setHiddenOnPhones; exports.nextPanelId = nextPanelId; exports.insertPanel = insertPanel; exports.duplicatePanel = duplicatePanel; exports.removePanel = removePanel; exports.expandRow = expandRow; exports.collapseRow = collapseRow; exports.settleLayout = settleLayout; exports.placePanel = placePanel; exports.snapToGrid = snapToGrid; exports.panelEdits = panelEdits; exports.sampleEntries = sampleEntries; exports.SNIPPET_VERSION = SNIPPET_VERSION; exports.panelMetrics = panelMetrics; exports.renameMetrics = renameMetrics; exports.copyPanels = copyPanels; exports.parseSnippet = parseSnippet; exports.previewPaste = previewPaste; exports.pasteSnippet = pasteSnippet; exports.TEMPLATE_VERSION = TEMPLATE_VERSION; exports.makeTemplate = makeTemplate; exports.parseTemplate = parseTemplate; exports.templateNeeds = templateNeeds; exports.applyTemplate = applyTemplate; exports.DOCUMENT_GUIDE = DOCUMENT_GUIDE; exports.AUTHORING_GUIDE = AUTHORING_GUIDE; exports.EXAMPLE_TEMPLATE = EXAMPLE_TEMPLATE; exports.templatePrompt = templatePrompt; exports.jsonFromAnswer = jsonFromAnswer; exports.readTemplateAnswer = readTemplateAnswer; exports.fixTemplatePrompt = fixTemplatePrompt; exports.documentPrompt = documentPrompt; exports.readDocumentAnswer = readDocumentAnswer; exports.fixDocumentPrompt = fixDocumentPrompt; exports.documentChanges = documentChanges;
@@ -1,6 +1,9 @@
1
+ import type { Dashboard, DocumentKind } from './schema';
1
2
  import { type AppTemplate } from './templates';
3
+ /** How to write forms and dashboards, for an assistant: the part of the guide that applies to one document. */
4
+ export declare const DOCUMENT_GUIDE = "## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step, min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\nCharts can't do arithmetic across metrics (weight \u00D7 reps, a ratio of two inputs). Chart what's recorded instead, or add an input for the combined value, and say which you did in the sentence before the JSON.\n\n";
2
5
  /** How to write a modelform template, for an assistant. Kept next to the format so they change together. */
3
- export declare const AUTHORING_GUIDE = "# modelform templates\n\nA template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.\n\n```\n{\n \"$modelform\": \"template\",\n \"version\": 1,\n \"title\": \"Short name\",\n \"description\": \"One sentence on what it's for.\",\n \"documents\": [ { \"kind\": \"form\" | \"dashboard\", \"id\": \"letters-digits-dashes\", \"dashboard\": { ...document } } ],\n \"tabs\": [ ...tabs ]\n}\n```\n\n## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`. Its `kind` matches its entry in `documents`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step, min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\nCharts can't do arithmetic across metrics (weight \u00D7 reps, a ratio of two inputs). Chart what's recorded instead, or add an input for the combined value, and say which you did in the sentence before the JSON.\n\n## Tabs\n\n`{ \"id\": \"\u2026\", \"title\": \"\u2026\", \"icon\": \"\u2026\", \"screen\": \u2026 }`, where the screen is one of:\n\n- `{ \"type\": \"forms\", \"forms\": [\"<form id>\", \u2026] }`\n- `{ \"type\": \"dashboard\", \"dashboard\": \"<dashboard id>\" }`\n- `{ \"type\": \"menu\", \"items\": [ { \"form\": \"<id>\" } or { \"dashboard\": \"<id>\", \"description\": \"\u2026\" } ] }`\n\nUsually one tab for the forms and one per dashboard.\n";
6
+ export declare const AUTHORING_GUIDE = "# modelform templates\n\nA template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.\n\n```\n{\n \"$modelform\": \"template\",\n \"version\": 1,\n \"title\": \"Short name\",\n \"description\": \"One sentence on what it's for.\",\n \"documents\": [ { \"kind\": \"form\" | \"dashboard\", \"id\": \"letters-digits-dashes\", \"dashboard\": { ...document } } ],\n \"tabs\": [ ...tabs ]\n}\n```\n\nEach document's `kind` matches its entry in `documents`.\n\n## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step, min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\nCharts can't do arithmetic across metrics (weight \u00D7 reps, a ratio of two inputs). Chart what's recorded instead, or add an input for the combined value, and say which you did in the sentence before the JSON.\n\n## Tabs\n\n`{ \"id\": \"\u2026\", \"title\": \"\u2026\", \"icon\": \"\u2026\", \"screen\": \u2026 }`, where the screen is one of:\n\n- `{ \"type\": \"forms\", \"forms\": [\"<form id>\", \u2026] }`\n- `{ \"type\": \"dashboard\", \"dashboard\": \"<dashboard id>\" }`\n- `{ \"type\": \"menu\", \"items\": [ { \"form\": \"<id>\" } or { \"dashboard\": \"<id>\", \"description\": \"\u2026\" } ] }`\n\nUsually one tab for the forms and one per dashboard.\n";
4
7
  /** The example the guide ends with, for tests and editors. */
5
8
  export declare const EXAMPLE_TEMPLATE: AppTemplate;
6
9
  export interface PromptContext {
@@ -28,3 +31,36 @@ export declare function readTemplateAnswer(text: string): {
28
31
  };
29
32
  /** A follow-up asking the assistant to fix what was wrong with its template. */
30
33
  export declare function fixTemplatePrompt(problems: string[]): string;
34
+ export interface DocumentPromptContext {
35
+ /** Metrics the app records, so charts can read them and new inputs don't clash with them. */
36
+ recorded?: string[];
37
+ }
38
+ /** A prompt asking an assistant to change `document` as `request` says and send the whole document back. */
39
+ export declare function documentPrompt(request: string, document: Dashboard, { recorded }?: DocumentPromptContext): string;
40
+ /**
41
+ * Reads a changed document out of an assistant's reply: a document, or a template holding just
42
+ * one. It must be the same kind as the one asked about. Warnings are values that will be ignored.
43
+ */
44
+ export declare function readDocumentAnswer(text: string, kind: DocumentKind): {
45
+ document: Dashboard;
46
+ warnings: string[];
47
+ } | {
48
+ error: string;
49
+ };
50
+ /** A follow-up asking the assistant to fix what was wrong with the form or dashboard it sent. */
51
+ export declare function fixDocumentPrompt(problems: string[], kind: DocumentKind): string;
52
+ export interface PanelChange {
53
+ change: 'added' | 'removed' | 'changed';
54
+ id: number;
55
+ title: string;
56
+ type: string;
57
+ /** For a changed panel, what changed: "title", "type", "position", "size", "options", "queries", "field config", "other". */
58
+ what: string[];
59
+ }
60
+ export interface DocumentChanges {
61
+ /** Settings of the document itself that changed, e.g. "title", "time range". */
62
+ document: string[];
63
+ panels: PanelChange[];
64
+ }
65
+ /** What changing `before` into `after` does, panel by panel (matched by id), for a person to check. */
66
+ export declare function documentChanges(before: Dashboard, after: Dashboard): DocumentChanges;
@@ -228,12 +228,12 @@
228
228
 
229
229
 
230
230
 
231
- var _chunkKROS6BLMjs = require('../chunk-KROS6BLM.js');
232
231
 
233
232
 
234
233
 
235
234
 
236
235
 
236
+ var _chunkKJR3ZKG4js = require('../chunk-KJR3ZKG4.js');
237
237
 
238
238
 
239
239
 
@@ -459,4 +459,14 @@ var _chunkKROS6BLMjs = require('../chunk-KROS6BLM.js');
459
459
 
460
460
 
461
461
 
462
- exports.ALL = _chunkKROS6BLMjs.ALL; exports.AUTHORING_GUIDE = _chunkKROS6BLMjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkKROS6BLMjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkKROS6BLMjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkKROS6BLMjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkKROS6BLMjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkKROS6BLMjs.ConfigLoader; exports.DASHBOARD_DS = _chunkKROS6BLMjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkKROS6BLMjs.DEFAULT_GAZETTEER; exports.EDITABLE_VARIABLE_TYPES = _chunkKROS6BLMjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkKROS6BLMjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkKROS6BLMjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkKROS6BLMjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkKROS6BLMjs.GrafanaClient; exports.GrafanaDataSource = _chunkKROS6BLMjs.GrafanaDataSource; exports.GrafanaError = _chunkKROS6BLMjs.GrafanaError; exports.HttpConfigFiles = _chunkKROS6BLMjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkKROS6BLMjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkKROS6BLMjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkKROS6BLMjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkKROS6BLMjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkKROS6BLMjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkKROS6BLMjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkKROS6BLMjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkKROS6BLMjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkKROS6BLMjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkKROS6BLMjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkKROS6BLMjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkKROS6BLMjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkKROS6BLMjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkKROS6BLMjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkKROS6BLMjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkKROS6BLMjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkKROS6BLMjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkKROS6BLMjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkKROS6BLMjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkKROS6BLMjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkKROS6BLMjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkKROS6BLMjs.UNIT_CHOICES; exports.addTime = _chunkKROS6BLMjs.addTime; exports.appSchema = _chunkKROS6BLMjs.appSchema; exports.applyDashboardLink = _chunkKROS6BLMjs.applyDashboardLink; exports.applyJsonEdits = _chunkKROS6BLMjs.applyJsonEdits; exports.applyTemplate = _chunkKROS6BLMjs.applyTemplate; exports.applyTransformations = _chunkKROS6BLMjs.applyTransformations; exports.assembleBundle = _chunkKROS6BLMjs.assembleBundle; exports.assembleFromResponse = _chunkKROS6BLMjs.assembleFromResponse; exports.buildFrames = _chunkKROS6BLMjs.buildFrames; exports.bundleFromFiles = _chunkKROS6BLMjs.bundleFromFiles; exports.bundleRoot = _chunkKROS6BLMjs.bundleRoot; exports.calculateInterval = _chunkKROS6BLMjs.calculateInterval; exports.checkFiles = _chunkKROS6BLMjs.checkFiles; exports.cleanDashboard = _chunkKROS6BLMjs.cleanDashboard; exports.cleanPanelOptions = _chunkKROS6BLMjs.cleanPanelOptions; exports.collapseRow = _chunkKROS6BLMjs.collapseRow; exports.compactGrid = _chunkKROS6BLMjs.compactGrid; exports.copyPanels = _chunkKROS6BLMjs.copyPanels; exports.dashboardSchema = _chunkKROS6BLMjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkKROS6BLMjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkKROS6BLMjs.dashboardSourceIds; exports.defaultFetchJson = _chunkKROS6BLMjs.defaultFetchJson; exports.describeRange = _chunkKROS6BLMjs.describeRange; exports.diffJson = _chunkKROS6BLMjs.diffJson; exports.documentIdFor = _chunkKROS6BLMjs.documentIdFor; exports.documentKind = _chunkKROS6BLMjs.documentKind; exports.documentUses = _chunkKROS6BLMjs.documentUses; exports.dropTarget = _chunkKROS6BLMjs.dropTarget; exports.duplicatePanel = _chunkKROS6BLMjs.duplicatePanel; exports.entriesSavedWith = _chunkKROS6BLMjs.entriesSavedWith; exports.entriesToItems = _chunkKROS6BLMjs.entriesToItems; exports.entryToInputValue = _chunkKROS6BLMjs.entryToInputValue; exports.expandRow = _chunkKROS6BLMjs.expandRow; exports.fetchBundle = _chunkKROS6BLMjs.fetchBundle; exports.fetchJsonWithToken = _chunkKROS6BLMjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkKROS6BLMjs.fieldDisplayName; exports.fieldMatches = _chunkKROS6BLMjs.fieldMatches; exports.fixTemplatePrompt = _chunkKROS6BLMjs.fixTemplatePrompt; exports.formatClock = _chunkKROS6BLMjs.formatClock; exports.formatDisplay = _chunkKROS6BLMjs.formatDisplay; exports.formatDuration = _chunkKROS6BLMjs.formatDuration; exports.formatJsonText = _chunkKROS6BLMjs.formatJsonText; exports.formatLocalDateTime = _chunkKROS6BLMjs.formatLocalDateTime; exports.formatValue = _chunkKROS6BLMjs.formatValue; exports.frameLength = _chunkKROS6BLMjs.frameLength; exports.framesToOptions = _chunkKROS6BLMjs.framesToOptions; exports.fromWire = _chunkKROS6BLMjs.fromWire; exports.getPath = _chunkKROS6BLMjs.getPath; exports.gridOffsetPx = _chunkKROS6BLMjs.gridOffsetPx; exports.gridUnitsToPx = _chunkKROS6BLMjs.gridUnitsToPx; exports.groupField = _chunkKROS6BLMjs.groupField; exports.groupFields = _chunkKROS6BLMjs.groupFields; exports.groupProblems = _chunkKROS6BLMjs.groupProblems; exports.groupToEntries = _chunkKROS6BLMjs.groupToEntries; exports.httpFetchJson = _chunkKROS6BLMjs.httpFetchJson; exports.initialVariableValues = _chunkKROS6BLMjs.initialVariableValues; exports.inputGroups = _chunkKROS6BLMjs.inputGroups; exports.inputPanels = _chunkKROS6BLMjs.inputPanels; exports.inputProblem = _chunkKROS6BLMjs.inputProblem; exports.insertPanel = _chunkKROS6BLMjs.insertPanel; exports.interpolate = _chunkKROS6BLMjs.interpolate; exports.interpolateDeep = _chunkKROS6BLMjs.interpolateDeep; exports.isBundleResponse = _chunkKROS6BLMjs.isBundleResponse; exports.isEditableVariableType = _chunkKROS6BLMjs.isEditableVariableType; exports.isEmptyItem = _chunkKROS6BLMjs.isEmptyItem; exports.isFormPanelType = _chunkKROS6BLMjs.isFormPanelType; exports.isInputGroup = _chunkKROS6BLMjs.isInputGroup; exports.isInputPanel = _chunkKROS6BLMjs.isInputPanel; exports.isInputType = _chunkKROS6BLMjs.isInputType; exports.isLocalDatasource = _chunkKROS6BLMjs.isLocalDatasource; exports.isReducer = _chunkKROS6BLMjs.isReducer; exports.isRow = _chunkKROS6BLMjs.isRow; exports.isSqlDatasource = _chunkKROS6BLMjs.isSqlDatasource; exports.jsonFromAnswer = _chunkKROS6BLMjs.jsonFromAnswer; exports.layoutCanvas = _chunkKROS6BLMjs.layoutCanvas; exports.layoutDashboard = _chunkKROS6BLMjs.layoutDashboard; exports.lineColumn = _chunkKROS6BLMjs.lineColumn; exports.loadGazetteer = _chunkKROS6BLMjs.loadGazetteer; exports.locate = _chunkKROS6BLMjs.locate; exports.makeTemplate = _chunkKROS6BLMjs.makeTemplate; exports.manifestSchemaIssues = _chunkKROS6BLMjs.manifestSchemaIssues; exports.mappedResult = _chunkKROS6BLMjs.mappedResult; exports.mappingProblem = _chunkKROS6BLMjs.mappingProblem; exports.mappingRow = _chunkKROS6BLMjs.mappingRow; exports.mappingRows = _chunkKROS6BLMjs.mappingRows; exports.metricChanges = _chunkKROS6BLMjs.metricChanges; exports.movePanel = _chunkKROS6BLMjs.movePanel; exports.newDocument = _chunkKROS6BLMjs.newDocument; exports.newPanel = _chunkKROS6BLMjs.newPanel; exports.newSaveId = _chunkKROS6BLMjs.newSaveId; exports.newVariable = _chunkKROS6BLMjs.newVariable; exports.nextPanelId = _chunkKROS6BLMjs.nextPanelId; exports.normalizeRef = _chunkKROS6BLMjs.normalizeRef; exports.numberFields = _chunkKROS6BLMjs.numberFields; exports.optionValue = _chunkKROS6BLMjs.optionValue; exports.overrideProperties = _chunkKROS6BLMjs.overrideProperties; exports.panelEdits = _chunkKROS6BLMjs.panelEdits; exports.panelHasQueries = _chunkKROS6BLMjs.panelHasQueries; exports.panelKey = _chunkKROS6BLMjs.panelKey; exports.panelMetrics = _chunkKROS6BLMjs.panelMetrics; exports.panelOptions = _chunkKROS6BLMjs.panelOptions; exports.panelOverrides = _chunkKROS6BLMjs.panelOverrides; exports.panelSize = _chunkKROS6BLMjs.panelSize; exports.panelSpan = _chunkKROS6BLMjs.panelSpan; exports.parseClockDigits = _chunkKROS6BLMjs.parseClockDigits; exports.parseDashboardLink = _chunkKROS6BLMjs.parseDashboardLink; exports.parseDuration = _chunkKROS6BLMjs.parseDuration; exports.parseGazetteer = _chunkKROS6BLMjs.parseGazetteer; exports.parseJsonText = _chunkKROS6BLMjs.parseJsonText; exports.parseLocalDateTime = _chunkKROS6BLMjs.parseLocalDateTime; exports.parseRange = _chunkKROS6BLMjs.parseRange; exports.parseSnippet = _chunkKROS6BLMjs.parseSnippet; exports.parseTemplate = _chunkKROS6BLMjs.parseTemplate; exports.parseTime = _chunkKROS6BLMjs.parseTime; exports.pasteSnippet = _chunkKROS6BLMjs.pasteSnippet; exports.placePanel = _chunkKROS6BLMjs.placePanel; exports.plainInputPanels = _chunkKROS6BLMjs.plainInputPanels; exports.pointerToPath = _chunkKROS6BLMjs.pointerToPath; exports.prepareDashboard = _chunkKROS6BLMjs.prepareDashboard; exports.previewPaste = _chunkKROS6BLMjs.previewPaste; exports.queryPanel = _chunkKROS6BLMjs.queryPanel; exports.queryParam = _chunkKROS6BLMjs.queryParam; exports.readConfigFiles = _chunkKROS6BLMjs.readConfigFiles; exports.readTemplateAnswer = _chunkKROS6BLMjs.readTemplateAnswer; exports.readingOrder = _chunkKROS6BLMjs.readingOrder; exports.reduce = _chunkKROS6BLMjs.reduce; exports.refineOptions = _chunkKROS6BLMjs.refineOptions; exports.refreshedVariables = _chunkKROS6BLMjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkKROS6BLMjs.removeDocumentFromManifest; exports.removePanel = _chunkKROS6BLMjs.removePanel; exports.renameDocumentInManifest = _chunkKROS6BLMjs.renameDocumentInManifest; exports.renameMetrics = _chunkKROS6BLMjs.renameMetrics; exports.renameVariableInPanels = _chunkKROS6BLMjs.renameVariableInPanels; exports.repack = _chunkKROS6BLMjs.repack; exports.repeatOptions = _chunkKROS6BLMjs.repeatOptions; exports.resizePanel = _chunkKROS6BLMjs.resizePanel; exports.resolveColor = _chunkKROS6BLMjs.resolveColor; exports.resolveFieldConfig = _chunkKROS6BLMjs.resolveFieldConfig; exports.resolveLinks = _chunkKROS6BLMjs.resolveLinks; exports.resolveTimezone = _chunkKROS6BLMjs.resolveTimezone; exports.resolveUrl = _chunkKROS6BLMjs.resolveUrl; exports.resolveVariables = _chunkKROS6BLMjs.resolveVariables; exports.revalidateBundle = _chunkKROS6BLMjs.revalidateBundle; exports.rowsToMappings = _chunkKROS6BLMjs.rowsToMappings; exports.sameSave = _chunkKROS6BLMjs.sameSave; exports.sampleEntries = _chunkKROS6BLMjs.sampleEntries; exports.screenDocuments = _chunkKROS6BLMjs.screenDocuments; exports.screenOfType = _chunkKROS6BLMjs.screenOfType; exports.selectValue = _chunkKROS6BLMjs.selectValue; exports.seriesColor = _chunkKROS6BLMjs.seriesColor; exports.setHiddenOnPhones = _chunkKROS6BLMjs.setHiddenOnPhones; exports.setJsonValue = _chunkKROS6BLMjs.setJsonValue; exports.setOption = _chunkKROS6BLMjs.setOption; exports.setOptionValue = _chunkKROS6BLMjs.setOptionValue; exports.setOverrides = _chunkKROS6BLMjs.setOverrides; exports.settleLayout = _chunkKROS6BLMjs.settleLayout; exports.snapToGrid = _chunkKROS6BLMjs.snapToGrid; exports.splitPath = _chunkKROS6BLMjs.splitPath; exports.startOf = _chunkKROS6BLMjs.startOf; exports.stringifyCompact = _chunkKROS6BLMjs.stringifyCompact; exports.tabIdFor = _chunkKROS6BLMjs.tabIdFor; exports.templateNeeds = _chunkKROS6BLMjs.templateNeeds; exports.templatePrompt = _chunkKROS6BLMjs.templatePrompt; exports.textSuggestions = _chunkKROS6BLMjs.textSuggestions; exports.thresholdStep = _chunkKROS6BLMjs.thresholdStep; exports.timeExprError = _chunkKROS6BLMjs.timeExprError; exports.timeField = _chunkKROS6BLMjs.timeField; exports.toEntries = _chunkKROS6BLMjs.toEntries; exports.toMillis = _chunkKROS6BLMjs.toMillis; exports.toSeries = _chunkKROS6BLMjs.toSeries; exports.toXYSeries = _chunkKROS6BLMjs.toXYSeries; exports.uniqueNames = _chunkKROS6BLMjs.uniqueNames; exports.validateBundle = _chunkKROS6BLMjs.validateBundle; exports.validateDashboard = _chunkKROS6BLMjs.validateDashboard; exports.validateManifest = _chunkKROS6BLMjs.validateManifest; exports.valueColor = _chunkKROS6BLMjs.valueColor; exports.valueText = _chunkKROS6BLMjs.valueText; exports.variableDependents = _chunkKROS6BLMjs.variableDependents; exports.variableInfo = _chunkKROS6BLMjs.variableInfo; exports.variableNameError = _chunkKROS6BLMjs.variableNameError; exports.variableOptions = _chunkKROS6BLMjs.variableOptions; exports.variableOrder = _chunkKROS6BLMjs.variableOrder; exports.variableReferences = _chunkKROS6BLMjs.variableReferences; exports.variableUses = _chunkKROS6BLMjs.variableUses; exports.variableWithCurrent = _chunkKROS6BLMjs.variableWithCurrent; exports.variableWithFlags = _chunkKROS6BLMjs.variableWithFlags; exports.variableWithQuery = _chunkKROS6BLMjs.variableWithQuery; exports.variableWithType = _chunkKROS6BLMjs.variableWithType; exports.visibleVariables = _chunkKROS6BLMjs.visibleVariables; exports.zoomRange = _chunkKROS6BLMjs.zoomRange;
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+ exports.ALL = _chunkKJR3ZKG4js.ALL; exports.AUTHORING_GUIDE = _chunkKJR3ZKG4js.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkKJR3ZKG4js.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkKJR3ZKG4js.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkKJR3ZKG4js.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkKJR3ZKG4js.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkKJR3ZKG4js.ConfigLoader; exports.DASHBOARD_DS = _chunkKJR3ZKG4js.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkKJR3ZKG4js.DEFAULT_GAZETTEER; exports.DOCUMENT_GUIDE = _chunkKJR3ZKG4js.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkKJR3ZKG4js.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkKJR3ZKG4js.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkKJR3ZKG4js.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkKJR3ZKG4js.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkKJR3ZKG4js.GrafanaClient; exports.GrafanaDataSource = _chunkKJR3ZKG4js.GrafanaDataSource; exports.GrafanaError = _chunkKJR3ZKG4js.GrafanaError; exports.HttpConfigFiles = _chunkKJR3ZKG4js.HttpConfigFiles; exports.INPUT_GROUP = _chunkKJR3ZKG4js.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkKJR3ZKG4js.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkKJR3ZKG4js.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkKJR3ZKG4js.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkKJR3ZKG4js.LocalDataSource; exports.MANIFEST_VERSION = _chunkKJR3ZKG4js.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkKJR3ZKG4js.MAPPING_TYPES; exports.MemoryEntryStore = _chunkKJR3ZKG4js.MemoryEntryStore; exports.NAMED_COLORS = _chunkKJR3ZKG4js.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkKJR3ZKG4js.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkKJR3ZKG4js.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkKJR3ZKG4js.PANEL_TYPES; exports.REDUCER_LABELS = _chunkKJR3ZKG4js.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkKJR3ZKG4js.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkKJR3ZKG4js.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkKJR3ZKG4js.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkKJR3ZKG4js.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkKJR3ZKG4js.SPECIAL_MATCHES; exports.SaveConflictError = _chunkKJR3ZKG4js.SaveConflictError; exports.TEMPLATE_VERSION = _chunkKJR3ZKG4js.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkKJR3ZKG4js.TIME_PRESETS; exports.UNIT_CHOICES = _chunkKJR3ZKG4js.UNIT_CHOICES; exports.addTime = _chunkKJR3ZKG4js.addTime; exports.appSchema = _chunkKJR3ZKG4js.appSchema; exports.applyDashboardLink = _chunkKJR3ZKG4js.applyDashboardLink; exports.applyJsonEdits = _chunkKJR3ZKG4js.applyJsonEdits; exports.applyTemplate = _chunkKJR3ZKG4js.applyTemplate; exports.applyTransformations = _chunkKJR3ZKG4js.applyTransformations; exports.assembleBundle = _chunkKJR3ZKG4js.assembleBundle; exports.assembleFromResponse = _chunkKJR3ZKG4js.assembleFromResponse; exports.buildFrames = _chunkKJR3ZKG4js.buildFrames; exports.bundleFromFiles = _chunkKJR3ZKG4js.bundleFromFiles; exports.bundleRoot = _chunkKJR3ZKG4js.bundleRoot; exports.calculateInterval = _chunkKJR3ZKG4js.calculateInterval; exports.checkFiles = _chunkKJR3ZKG4js.checkFiles; exports.cleanDashboard = _chunkKJR3ZKG4js.cleanDashboard; exports.cleanPanelOptions = _chunkKJR3ZKG4js.cleanPanelOptions; exports.collapseRow = _chunkKJR3ZKG4js.collapseRow; exports.compactGrid = _chunkKJR3ZKG4js.compactGrid; exports.copyPanels = _chunkKJR3ZKG4js.copyPanels; exports.dashboardSchema = _chunkKJR3ZKG4js.dashboardSchema; exports.dashboardSchemaIssues = _chunkKJR3ZKG4js.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkKJR3ZKG4js.dashboardSourceIds; exports.defaultFetchJson = _chunkKJR3ZKG4js.defaultFetchJson; exports.describeRange = _chunkKJR3ZKG4js.describeRange; exports.diffJson = _chunkKJR3ZKG4js.diffJson; exports.documentChanges = _chunkKJR3ZKG4js.documentChanges; exports.documentIdFor = _chunkKJR3ZKG4js.documentIdFor; exports.documentKind = _chunkKJR3ZKG4js.documentKind; exports.documentPrompt = _chunkKJR3ZKG4js.documentPrompt; exports.documentUses = _chunkKJR3ZKG4js.documentUses; exports.dropTarget = _chunkKJR3ZKG4js.dropTarget; exports.duplicatePanel = _chunkKJR3ZKG4js.duplicatePanel; exports.entriesSavedWith = _chunkKJR3ZKG4js.entriesSavedWith; exports.entriesToItems = _chunkKJR3ZKG4js.entriesToItems; exports.entryToInputValue = _chunkKJR3ZKG4js.entryToInputValue; exports.expandRow = _chunkKJR3ZKG4js.expandRow; exports.fetchBundle = _chunkKJR3ZKG4js.fetchBundle; exports.fetchJsonWithToken = _chunkKJR3ZKG4js.fetchJsonWithToken; exports.fieldDisplayName = _chunkKJR3ZKG4js.fieldDisplayName; exports.fieldMatches = _chunkKJR3ZKG4js.fieldMatches; exports.fixDocumentPrompt = _chunkKJR3ZKG4js.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkKJR3ZKG4js.fixTemplatePrompt; exports.formatClock = _chunkKJR3ZKG4js.formatClock; exports.formatDisplay = _chunkKJR3ZKG4js.formatDisplay; exports.formatDuration = _chunkKJR3ZKG4js.formatDuration; exports.formatJsonText = _chunkKJR3ZKG4js.formatJsonText; exports.formatLocalDateTime = _chunkKJR3ZKG4js.formatLocalDateTime; exports.formatValue = _chunkKJR3ZKG4js.formatValue; exports.frameLength = _chunkKJR3ZKG4js.frameLength; exports.framesToOptions = _chunkKJR3ZKG4js.framesToOptions; exports.fromWire = _chunkKJR3ZKG4js.fromWire; exports.getPath = _chunkKJR3ZKG4js.getPath; exports.gridOffsetPx = _chunkKJR3ZKG4js.gridOffsetPx; exports.gridUnitsToPx = _chunkKJR3ZKG4js.gridUnitsToPx; exports.groupField = _chunkKJR3ZKG4js.groupField; exports.groupFields = _chunkKJR3ZKG4js.groupFields; exports.groupProblems = _chunkKJR3ZKG4js.groupProblems; exports.groupToEntries = _chunkKJR3ZKG4js.groupToEntries; exports.httpFetchJson = _chunkKJR3ZKG4js.httpFetchJson; exports.initialVariableValues = _chunkKJR3ZKG4js.initialVariableValues; exports.inputGroups = _chunkKJR3ZKG4js.inputGroups; exports.inputPanels = _chunkKJR3ZKG4js.inputPanels; exports.inputProblem = _chunkKJR3ZKG4js.inputProblem; exports.insertPanel = _chunkKJR3ZKG4js.insertPanel; exports.interpolate = _chunkKJR3ZKG4js.interpolate; exports.interpolateDeep = _chunkKJR3ZKG4js.interpolateDeep; exports.isBundleResponse = _chunkKJR3ZKG4js.isBundleResponse; exports.isEditableVariableType = _chunkKJR3ZKG4js.isEditableVariableType; exports.isEmptyItem = _chunkKJR3ZKG4js.isEmptyItem; exports.isFormPanelType = _chunkKJR3ZKG4js.isFormPanelType; exports.isInputGroup = _chunkKJR3ZKG4js.isInputGroup; exports.isInputPanel = _chunkKJR3ZKG4js.isInputPanel; exports.isInputType = _chunkKJR3ZKG4js.isInputType; exports.isLocalDatasource = _chunkKJR3ZKG4js.isLocalDatasource; exports.isReducer = _chunkKJR3ZKG4js.isReducer; exports.isRow = _chunkKJR3ZKG4js.isRow; exports.isSqlDatasource = _chunkKJR3ZKG4js.isSqlDatasource; exports.jsonFromAnswer = _chunkKJR3ZKG4js.jsonFromAnswer; exports.layoutCanvas = _chunkKJR3ZKG4js.layoutCanvas; exports.layoutDashboard = _chunkKJR3ZKG4js.layoutDashboard; exports.lineColumn = _chunkKJR3ZKG4js.lineColumn; exports.loadGazetteer = _chunkKJR3ZKG4js.loadGazetteer; exports.locate = _chunkKJR3ZKG4js.locate; exports.makeTemplate = _chunkKJR3ZKG4js.makeTemplate; exports.manifestSchemaIssues = _chunkKJR3ZKG4js.manifestSchemaIssues; exports.mappedResult = _chunkKJR3ZKG4js.mappedResult; exports.mappingProblem = _chunkKJR3ZKG4js.mappingProblem; exports.mappingRow = _chunkKJR3ZKG4js.mappingRow; exports.mappingRows = _chunkKJR3ZKG4js.mappingRows; exports.metricChanges = _chunkKJR3ZKG4js.metricChanges; exports.movePanel = _chunkKJR3ZKG4js.movePanel; exports.newDocument = _chunkKJR3ZKG4js.newDocument; exports.newPanel = _chunkKJR3ZKG4js.newPanel; exports.newSaveId = _chunkKJR3ZKG4js.newSaveId; exports.newVariable = _chunkKJR3ZKG4js.newVariable; exports.nextPanelId = _chunkKJR3ZKG4js.nextPanelId; exports.normalizeRef = _chunkKJR3ZKG4js.normalizeRef; exports.numberFields = _chunkKJR3ZKG4js.numberFields; exports.optionValue = _chunkKJR3ZKG4js.optionValue; exports.overrideProperties = _chunkKJR3ZKG4js.overrideProperties; exports.panelEdits = _chunkKJR3ZKG4js.panelEdits; exports.panelHasQueries = _chunkKJR3ZKG4js.panelHasQueries; exports.panelKey = _chunkKJR3ZKG4js.panelKey; exports.panelMetrics = _chunkKJR3ZKG4js.panelMetrics; exports.panelOptions = _chunkKJR3ZKG4js.panelOptions; exports.panelOverrides = _chunkKJR3ZKG4js.panelOverrides; exports.panelSize = _chunkKJR3ZKG4js.panelSize; exports.panelSpan = _chunkKJR3ZKG4js.panelSpan; exports.parseClockDigits = _chunkKJR3ZKG4js.parseClockDigits; exports.parseDashboardLink = _chunkKJR3ZKG4js.parseDashboardLink; exports.parseDuration = _chunkKJR3ZKG4js.parseDuration; exports.parseGazetteer = _chunkKJR3ZKG4js.parseGazetteer; exports.parseJsonText = _chunkKJR3ZKG4js.parseJsonText; exports.parseLocalDateTime = _chunkKJR3ZKG4js.parseLocalDateTime; exports.parseRange = _chunkKJR3ZKG4js.parseRange; exports.parseSnippet = _chunkKJR3ZKG4js.parseSnippet; exports.parseTemplate = _chunkKJR3ZKG4js.parseTemplate; exports.parseTime = _chunkKJR3ZKG4js.parseTime; exports.pasteSnippet = _chunkKJR3ZKG4js.pasteSnippet; exports.placePanel = _chunkKJR3ZKG4js.placePanel; exports.plainInputPanels = _chunkKJR3ZKG4js.plainInputPanels; exports.pointerToPath = _chunkKJR3ZKG4js.pointerToPath; exports.prepareDashboard = _chunkKJR3ZKG4js.prepareDashboard; exports.previewPaste = _chunkKJR3ZKG4js.previewPaste; exports.queryPanel = _chunkKJR3ZKG4js.queryPanel; exports.queryParam = _chunkKJR3ZKG4js.queryParam; exports.readConfigFiles = _chunkKJR3ZKG4js.readConfigFiles; exports.readDocumentAnswer = _chunkKJR3ZKG4js.readDocumentAnswer; exports.readTemplateAnswer = _chunkKJR3ZKG4js.readTemplateAnswer; exports.readingOrder = _chunkKJR3ZKG4js.readingOrder; exports.reduce = _chunkKJR3ZKG4js.reduce; exports.refineOptions = _chunkKJR3ZKG4js.refineOptions; exports.refreshedVariables = _chunkKJR3ZKG4js.refreshedVariables; exports.removeDocumentFromManifest = _chunkKJR3ZKG4js.removeDocumentFromManifest; exports.removePanel = _chunkKJR3ZKG4js.removePanel; exports.renameDocumentInManifest = _chunkKJR3ZKG4js.renameDocumentInManifest; exports.renameMetrics = _chunkKJR3ZKG4js.renameMetrics; exports.renameVariableInPanels = _chunkKJR3ZKG4js.renameVariableInPanels; exports.repack = _chunkKJR3ZKG4js.repack; exports.repeatOptions = _chunkKJR3ZKG4js.repeatOptions; exports.resizePanel = _chunkKJR3ZKG4js.resizePanel; exports.resolveColor = _chunkKJR3ZKG4js.resolveColor; exports.resolveFieldConfig = _chunkKJR3ZKG4js.resolveFieldConfig; exports.resolveLinks = _chunkKJR3ZKG4js.resolveLinks; exports.resolveTimezone = _chunkKJR3ZKG4js.resolveTimezone; exports.resolveUrl = _chunkKJR3ZKG4js.resolveUrl; exports.resolveVariables = _chunkKJR3ZKG4js.resolveVariables; exports.revalidateBundle = _chunkKJR3ZKG4js.revalidateBundle; exports.rowsToMappings = _chunkKJR3ZKG4js.rowsToMappings; exports.sameSave = _chunkKJR3ZKG4js.sameSave; exports.sampleEntries = _chunkKJR3ZKG4js.sampleEntries; exports.screenDocuments = _chunkKJR3ZKG4js.screenDocuments; exports.screenOfType = _chunkKJR3ZKG4js.screenOfType; exports.selectValue = _chunkKJR3ZKG4js.selectValue; exports.seriesColor = _chunkKJR3ZKG4js.seriesColor; exports.setHiddenOnPhones = _chunkKJR3ZKG4js.setHiddenOnPhones; exports.setJsonValue = _chunkKJR3ZKG4js.setJsonValue; exports.setOption = _chunkKJR3ZKG4js.setOption; exports.setOptionValue = _chunkKJR3ZKG4js.setOptionValue; exports.setOverrides = _chunkKJR3ZKG4js.setOverrides; exports.settleLayout = _chunkKJR3ZKG4js.settleLayout; exports.snapToGrid = _chunkKJR3ZKG4js.snapToGrid; exports.splitPath = _chunkKJR3ZKG4js.splitPath; exports.startOf = _chunkKJR3ZKG4js.startOf; exports.stringifyCompact = _chunkKJR3ZKG4js.stringifyCompact; exports.tabIdFor = _chunkKJR3ZKG4js.tabIdFor; exports.templateNeeds = _chunkKJR3ZKG4js.templateNeeds; exports.templatePrompt = _chunkKJR3ZKG4js.templatePrompt; exports.textSuggestions = _chunkKJR3ZKG4js.textSuggestions; exports.thresholdStep = _chunkKJR3ZKG4js.thresholdStep; exports.timeExprError = _chunkKJR3ZKG4js.timeExprError; exports.timeField = _chunkKJR3ZKG4js.timeField; exports.toEntries = _chunkKJR3ZKG4js.toEntries; exports.toMillis = _chunkKJR3ZKG4js.toMillis; exports.toSeries = _chunkKJR3ZKG4js.toSeries; exports.toXYSeries = _chunkKJR3ZKG4js.toXYSeries; exports.uniqueNames = _chunkKJR3ZKG4js.uniqueNames; exports.validateBundle = _chunkKJR3ZKG4js.validateBundle; exports.validateDashboard = _chunkKJR3ZKG4js.validateDashboard; exports.validateManifest = _chunkKJR3ZKG4js.validateManifest; exports.valueColor = _chunkKJR3ZKG4js.valueColor; exports.valueText = _chunkKJR3ZKG4js.valueText; exports.variableDependents = _chunkKJR3ZKG4js.variableDependents; exports.variableInfo = _chunkKJR3ZKG4js.variableInfo; exports.variableNameError = _chunkKJR3ZKG4js.variableNameError; exports.variableOptions = _chunkKJR3ZKG4js.variableOptions; exports.variableOrder = _chunkKJR3ZKG4js.variableOrder; exports.variableReferences = _chunkKJR3ZKG4js.variableReferences; exports.variableUses = _chunkKJR3ZKG4js.variableUses; exports.variableWithCurrent = _chunkKJR3ZKG4js.variableWithCurrent; exports.variableWithFlags = _chunkKJR3ZKG4js.variableWithFlags; exports.variableWithQuery = _chunkKJR3ZKG4js.variableWithQuery; exports.variableWithType = _chunkKJR3ZKG4js.variableWithType; exports.visibleVariables = _chunkKJR3ZKG4js.visibleVariables; exports.zoomRange = _chunkKJR3ZKG4js.zoomRange;
@@ -8,6 +8,7 @@ import {
8
8
  ConfigLoader,
9
9
  DASHBOARD_DS,
10
10
  DEFAULT_GAZETTEER,
11
+ DOCUMENT_GUIDE,
11
12
  EDITABLE_VARIABLE_TYPES,
12
13
  EXAMPLE_TEMPLATE,
13
14
  GRID_COLUMNS,
@@ -62,8 +63,10 @@ import {
62
63
  defaultFetchJson,
63
64
  describeRange,
64
65
  diffJson,
66
+ documentChanges,
65
67
  documentIdFor,
66
68
  documentKind,
69
+ documentPrompt,
67
70
  documentUses,
68
71
  dropTarget,
69
72
  duplicatePanel,
@@ -75,6 +78,7 @@ import {
75
78
  fetchJsonWithToken,
76
79
  fieldDisplayName,
77
80
  fieldMatches,
81
+ fixDocumentPrompt,
78
82
  fixTemplatePrompt,
79
83
  formatClock,
80
84
  formatDisplay,
@@ -161,6 +165,7 @@ import {
161
165
  queryPanel,
162
166
  queryParam,
163
167
  readConfigFiles,
168
+ readDocumentAnswer,
164
169
  readTemplateAnswer,
165
170
  readingOrder,
166
171
  reduce,
@@ -228,7 +233,7 @@ import {
228
233
  variableWithType,
229
234
  visibleVariables,
230
235
  zoomRange
231
- } from "../chunk-QXUFH447.mjs";
236
+ } from "../chunk-AJEPW5KG.mjs";
232
237
  export {
233
238
  ALL,
234
239
  AUTHORING_GUIDE,
@@ -239,6 +244,7 @@ export {
239
244
  ConfigLoader,
240
245
  DASHBOARD_DS,
241
246
  DEFAULT_GAZETTEER,
247
+ DOCUMENT_GUIDE,
242
248
  EDITABLE_VARIABLE_TYPES,
243
249
  EXAMPLE_TEMPLATE,
244
250
  GRID_COLUMNS,
@@ -293,8 +299,10 @@ export {
293
299
  defaultFetchJson,
294
300
  describeRange,
295
301
  diffJson,
302
+ documentChanges,
296
303
  documentIdFor,
297
304
  documentKind,
305
+ documentPrompt,
298
306
  documentUses,
299
307
  dropTarget,
300
308
  duplicatePanel,
@@ -306,6 +314,7 @@ export {
306
314
  fetchJsonWithToken,
307
315
  fieldDisplayName,
308
316
  fieldMatches,
317
+ fixDocumentPrompt,
309
318
  fixTemplatePrompt,
310
319
  formatClock,
311
320
  formatDisplay,
@@ -392,6 +401,7 @@ export {
392
401
  queryPanel,
393
402
  queryParam,
394
403
  readConfigFiles,
404
+ readDocumentAnswer,
395
405
  readTemplateAnswer,
396
406
  readingOrder,
397
407
  reduce,