@modelform/react-native 0.10.0 → 0.12.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.
@@ -1981,8 +1981,9 @@ var app_schema_default = {
1981
1981
  type: "object",
1982
1982
  properties: {
1983
1983
  version: {
1984
- description: "Format version. Always 1 for now.",
1985
- const: 1
1984
+ type: "integer",
1985
+ description: "The oldest config format that can show this config: 1 unless it uses something newer (see MANIFEST_VERSION). An app that reads only older formats asks to be updated instead.",
1986
+ minimum: 1
1986
1987
  },
1987
1988
  title: {
1988
1989
  type: "string",
@@ -7452,8 +7453,9 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7452
7453
  }
7453
7454
  }
7454
7455
  if (data.version !== void 0) {
7455
- if (1 !== data.version) {
7456
- const err5 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" };
7456
+ let data0 = data.version;
7457
+ if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)))) {
7458
+ const err5 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
7457
7459
  if (vErrors === null) {
7458
7460
  vErrors = [err5];
7459
7461
  } else {
@@ -7461,25 +7463,36 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7461
7463
  }
7462
7464
  errors++;
7463
7465
  }
7466
+ if (typeof data0 == "number") {
7467
+ if (data0 < 1 || isNaN(data0)) {
7468
+ const err6 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
7469
+ if (vErrors === null) {
7470
+ vErrors = [err6];
7471
+ } else {
7472
+ vErrors.push(err6);
7473
+ }
7474
+ errors++;
7475
+ }
7476
+ }
7464
7477
  }
7465
7478
  if (data.title !== void 0) {
7466
7479
  let data1 = data.title;
7467
7480
  if (typeof data1 === "string") {
7468
7481
  if (func2(data1) < 1) {
7469
- const err6 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7482
+ const err7 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7470
7483
  if (vErrors === null) {
7471
- vErrors = [err6];
7484
+ vErrors = [err7];
7472
7485
  } else {
7473
- vErrors.push(err6);
7486
+ vErrors.push(err7);
7474
7487
  }
7475
7488
  errors++;
7476
7489
  }
7477
7490
  } else {
7478
- const err7 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7491
+ const err8 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7479
7492
  if (vErrors === null) {
7480
- vErrors = [err7];
7493
+ vErrors = [err8];
7481
7494
  } else {
7482
- vErrors.push(err7);
7495
+ vErrors.push(err8);
7483
7496
  }
7484
7497
  errors++;
7485
7498
  }
@@ -7488,11 +7501,11 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7488
7501
  let data2 = data.tabs;
7489
7502
  if (Array.isArray(data2)) {
7490
7503
  if (data2.length < 1) {
7491
- const err8 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
7504
+ const err9 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
7492
7505
  if (vErrors === null) {
7493
- vErrors = [err8];
7506
+ vErrors = [err9];
7494
7507
  } else {
7495
- vErrors.push(err8);
7508
+ vErrors.push(err9);
7496
7509
  }
7497
7510
  errors++;
7498
7511
  }
@@ -7504,11 +7517,11 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7504
7517
  }
7505
7518
  }
7506
7519
  } else {
7507
- const err9 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7520
+ const err10 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7508
7521
  if (vErrors === null) {
7509
- vErrors = [err9];
7522
+ vErrors = [err10];
7510
7523
  } else {
7511
- vErrors.push(err9);
7524
+ vErrors.push(err10);
7512
7525
  }
7513
7526
  errors++;
7514
7527
  }
@@ -7518,42 +7531,42 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7518
7531
  if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
7519
7532
  for (const key1 in data4) {
7520
7533
  let data5 = data4[key1];
7521
- const _errs12 = errors;
7522
- let valid4 = false;
7523
7534
  const _errs13 = errors;
7535
+ let valid4 = false;
7536
+ const _errs14 = errors;
7524
7537
  if (typeof data5 !== "string") {
7525
- const err10 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7538
+ const err11 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7526
7539
  if (vErrors === null) {
7527
- vErrors = [err10];
7540
+ vErrors = [err11];
7528
7541
  } else {
7529
- vErrors.push(err10);
7542
+ vErrors.push(err11);
7530
7543
  }
7531
7544
  errors++;
7532
7545
  }
7533
- var _valid0 = _errs13 === errors;
7546
+ var _valid0 = _errs14 === errors;
7534
7547
  valid4 = valid4 || _valid0;
7535
7548
  if (!valid4) {
7536
- const _errs15 = errors;
7549
+ const _errs16 = errors;
7537
7550
  if (!validate36(data5, { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data4, parentDataProperty: key1, rootData })) {
7538
7551
  vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
7539
7552
  errors = vErrors.length;
7540
7553
  }
7541
- var _valid0 = _errs15 === errors;
7554
+ var _valid0 = _errs16 === errors;
7542
7555
  valid4 = valid4 || _valid0;
7543
7556
  }
7544
7557
  if (!valid4) {
7545
- const err11 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7558
+ const err12 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7546
7559
  if (vErrors === null) {
7547
- vErrors = [err11];
7560
+ vErrors = [err12];
7548
7561
  } else {
7549
- vErrors.push(err11);
7562
+ vErrors.push(err12);
7550
7563
  }
7551
7564
  errors++;
7552
7565
  } else {
7553
- errors = _errs12;
7566
+ errors = _errs13;
7554
7567
  if (vErrors !== null) {
7555
- if (_errs12) {
7556
- vErrors.length = _errs12;
7568
+ if (_errs13) {
7569
+ vErrors.length = _errs13;
7557
7570
  } else {
7558
7571
  vErrors = null;
7559
7572
  }
@@ -7561,21 +7574,21 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7561
7574
  }
7562
7575
  }
7563
7576
  } else {
7564
- const err12 = { instancePath: instancePath + "/documents", schemaPath: "#/properties/documents/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7577
+ const err13 = { instancePath: instancePath + "/documents", schemaPath: "#/properties/documents/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7565
7578
  if (vErrors === null) {
7566
- vErrors = [err12];
7579
+ vErrors = [err13];
7567
7580
  } else {
7568
- vErrors.push(err12);
7581
+ vErrors.push(err13);
7569
7582
  }
7570
7583
  errors++;
7571
7584
  }
7572
7585
  }
7573
7586
  } else {
7574
- const err13 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7587
+ const err14 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7575
7588
  if (vErrors === null) {
7576
- vErrors = [err13];
7589
+ vErrors = [err14];
7577
7590
  } else {
7578
- vErrors.push(err13);
7591
+ vErrors.push(err14);
7579
7592
  }
7580
7593
  errors++;
7581
7594
  }
@@ -8559,10 +8572,16 @@ function setOverrides(panel, overrides) {
8559
8572
 
8560
8573
  // src/core/manifest.ts
8561
8574
  var MANIFEST_VERSION = 1;
8575
+ var FORMAT_CHANGES = [];
8576
+ function requiredManifestVersion(bundle) {
8577
+ return Math.max(1, ...FORMAT_CHANGES.filter((c) => c.uses(bundle)).map((c) => c.version));
8578
+ }
8562
8579
  var isObject3 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
8563
8580
  var nonEmptyString = (v) => typeof v === "string" && v.trim() !== "";
8564
8581
  function validateManifest(json, file = "manifest") {
8565
8582
  const error = (path, message) => ({ severity: "error", path: `${file}: ${path}`, message });
8583
+ if (isObject3(json) && typeof json.version === "number" && json.version > MANIFEST_VERSION)
8584
+ return [{ ...error("version", `needs config format ${json.version}, and this app shows up to ${MANIFEST_VERSION}. Update the app to open it.`), code: "newer-version" }];
8566
8585
  const shape = manifestSchemaIssues(json).filter((i) => !/^documents\.[^.[]+[.[]/.test(i.path));
8567
8586
  if (shape.length) return shape.map((i) => error(i.path, i.message));
8568
8587
  const issues = [];
@@ -8881,10 +8900,11 @@ var ConfigLoader = class {
8881
8900
  const { bundle, issues, revision, unreachable } = result;
8882
8901
  if (!bundle) {
8883
8902
  const errors = issues.filter((i) => i.severity === "error").length;
8884
- const error = unreachable ? issues[0]?.message : errors === 1 ? "1 error" : `${errors} errors`;
8903
+ const needsUpdate = issues.some((i) => i.code === "newer-version");
8904
+ const error = unreachable ? issues[0]?.message : needsUpdate ? "a newer format" : errors === 1 ? "1 error" : `${errors} errors`;
8885
8905
  return this.set(
8886
- { loading: false, error, unreachable: !!unreachable, issues },
8887
- this.snapshot.loading || error !== this.snapshot.error || !!unreachable !== !!this.snapshot.unreachable || !sameIssues(issues, this.snapshot.issues)
8906
+ { loading: false, error, unreachable: !!unreachable, needsUpdate, issues },
8907
+ this.snapshot.loading || error !== this.snapshot.error || !!unreachable !== !!this.snapshot.unreachable || needsUpdate !== !!this.snapshot.needsUpdate || !sameIssues(issues, this.snapshot.issues)
8888
8908
  );
8889
8909
  }
8890
8910
  const json = JSON.stringify(bundle);
@@ -8894,8 +8914,8 @@ var ConfigLoader = class {
8894
8914
  if (changed || revision !== this.snapshot.revision) cache2?.write({ url, fetchedAt, bundle, revision }).catch(() => {
8895
8915
  });
8896
8916
  this.set(
8897
- { ...changed && { bundle }, source: "remote", fetchedAt, revision, loading: false, error: void 0, unreachable: void 0, issues },
8898
- changed || revision !== this.snapshot.revision || this.snapshot.source !== "remote" || !!this.snapshot.error || this.snapshot.loading || !sameIssues(issues, this.snapshot.issues)
8917
+ { ...changed && { bundle }, source: "remote", fetchedAt, revision, loading: false, error: void 0, unreachable: void 0, needsUpdate: void 0, issues },
8918
+ changed || revision !== this.snapshot.revision || this.snapshot.source !== "remote" || !!this.snapshot.error || !!this.snapshot.needsUpdate || this.snapshot.loading || !sameIssues(issues, this.snapshot.issues)
8899
8919
  );
8900
8920
  } finally {
8901
8921
  clearTimeout(timer);
@@ -11377,10 +11397,10 @@ function mergeVariables(existing, incoming) {
11377
11397
  const renamed = {};
11378
11398
  const out = [...existing];
11379
11399
  for (const v of incoming) {
11380
- const same = existing.find((e) => e.name === v.name);
11381
- if (same && sameVariable(same, v)) continue;
11400
+ const same2 = existing.find((e) => e.name === v.name);
11401
+ if (same2 && sameVariable(same2, v)) continue;
11382
11402
  let name = v.name;
11383
- if (same) {
11403
+ if (same2) {
11384
11404
  let n = 2;
11385
11405
  while (taken.has(`${v.name}_${n}`)) n++;
11386
11406
  name = `${v.name}_${n}`;
@@ -11568,24 +11588,9 @@ function applyTemplate(manifestText, paths, template, options = {}) {
11568
11588
  }
11569
11589
 
11570
11590
  // 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
- \`\`\`
11591
+ var DOCUMENT_GUIDE = `## Documents
11585
11592
 
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\`.
11593
+ 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
11594
 
11590
11595
  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
11596
 
@@ -11632,7 +11637,25 @@ Units and ranges go in \`"fieldConfig": { "defaults": { "unit": "\u2026", "min",
11632
11637
 
11633
11638
  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
11639
 
11635
- ## Tabs
11640
+ `;
11641
+ var AUTHORING_GUIDE = `# modelform templates
11642
+
11643
+ A template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.
11644
+
11645
+ \`\`\`
11646
+ {
11647
+ "$modelform": "template",
11648
+ "version": 1,
11649
+ "title": "Short name",
11650
+ "description": "One sentence on what it's for.",
11651
+ "documents": [ { "kind": "form" | "dashboard", "id": "letters-digits-dashes", "dashboard": { ...document } } ],
11652
+ "tabs": [ ...tabs ]
11653
+ }
11654
+ \`\`\`
11655
+
11656
+ Each document's \`kind\` matches its entry in \`documents\`.
11657
+
11658
+ ${DOCUMENT_GUIDE}## Tabs
11636
11659
 
11637
11660
  \`{ "id": "\u2026", "title": "\u2026", "icon": "\u2026", "screen": \u2026 }\`, where the screen is one of:
11638
11661
 
@@ -11789,6 +11812,88 @@ function fixTemplatePrompt(problems) {
11789
11812
  "Fix these and reply with the whole corrected template as one ```json code block."
11790
11813
  ].join("\n");
11791
11814
  }
11815
+ function documentPrompt(request, document, { recorded = [] } = {}) {
11816
+ const kind = document.kind ?? "dashboard";
11817
+ return [
11818
+ `I\u2019m building an app with modelform studio. Change this ${kind} for me:`,
11819
+ "",
11820
+ request.trim().replace(/^/gm, "> "),
11821
+ "",
11822
+ recorded.length ? `The app records these metrics: ${recorded.map((m) => `\`${m}\``).join(", ")}. Charts can read any of them.` : "",
11823
+ "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.",
11824
+ `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.`,
11825
+ "",
11826
+ `## The ${kind} now`,
11827
+ "",
11828
+ "```json",
11829
+ JSON.stringify(document, null, 2),
11830
+ "```",
11831
+ "",
11832
+ DOCUMENT_GUIDE
11833
+ ].filter((line, i, all) => line !== "" || all[i - 1] !== "").join("\n");
11834
+ }
11835
+ function readDocumentAnswer(text, kind) {
11836
+ let json;
11837
+ try {
11838
+ json = jsonFromAnswer(text);
11839
+ } catch (e) {
11840
+ return { error: e.message };
11841
+ }
11842
+ const wrapper = json;
11843
+ if (wrapper?.$modelform === "template") {
11844
+ if (!Array.isArray(wrapper.documents) || wrapper.documents.length !== 1) return { error: `That\u2019s a template, not one ${kind}` };
11845
+ json = wrapper.documents[0]?.dashboard;
11846
+ }
11847
+ if (!json || typeof json !== "object" || Array.isArray(json)) return { error: `That isn\u2019t a ${kind}` };
11848
+ const raw = json;
11849
+ const stated = raw.kind ?? (Array.isArray(raw.panels) ? documentKind(raw) : void 0);
11850
+ if (stated !== void 0 && stated !== kind)
11851
+ 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}` };
11852
+ const { dashboard, issues } = prepareDashboard(raw, kind);
11853
+ if (!dashboard) return { error: issues.filter((i) => i.severity === "error").map((i) => `${i.path}: ${i.message}`).join("; ") || `That isn\u2019t a ${kind}` };
11854
+ const document = { kind, ...raw };
11855
+ return { document, warnings: issues.filter((i) => i.severity === "warning").map((i) => `${i.path}: ${i.message}`) };
11856
+ }
11857
+ function fixDocumentPrompt(problems, kind) {
11858
+ return [
11859
+ `modelform couldn\u2019t use that ${kind} as it was:`,
11860
+ "",
11861
+ ...problems.map((p) => `- ${p}`),
11862
+ "",
11863
+ `Fix these and reply with the whole corrected ${kind} as one \`\`\`json code block.`
11864
+ ].join("\n");
11865
+ }
11866
+ var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
11867
+ var flat = (d) => (d.panels ?? []).flatMap((p) => p.type === "row" && p.panels ? [p, ...p.panels] : [p]);
11868
+ function documentChanges(before, after) {
11869
+ const labels = [["kind", "kind"], ["title", "title"], ["description", "description"], ["time", "time range"], ["templating", "variables"], ["timezone", "time zone"], ["refresh", "refresh"]];
11870
+ const document = labels.filter(([key]) => !same(before[key], after[key])).map(([, label]) => label);
11871
+ const old = new Map(flat(before).map((p) => [p.id, p]));
11872
+ const now = new Map(flat(after).map((p) => [p.id, p]));
11873
+ const info = (p) => ({ id: p.id, title: p.title || p.type, type: p.type });
11874
+ const panels = [];
11875
+ for (const p of flat(after)) {
11876
+ const was = old.get(p.id);
11877
+ if (!was) {
11878
+ panels.push({ change: "added", ...info(p), what: [] });
11879
+ continue;
11880
+ }
11881
+ const what = [];
11882
+ if (was.title !== p.title) what.push("title");
11883
+ if (was.type !== p.type) what.push("type");
11884
+ if (was.gridPos?.x !== p.gridPos?.x || was.gridPos?.y !== p.gridPos?.y) what.push("position");
11885
+ if (was.gridPos?.w !== p.gridPos?.w || was.gridPos?.h !== p.gridPos?.h) what.push("size");
11886
+ if (!same(was.options, p.options)) what.push("options");
11887
+ if (!same(was.targets, p.targets) || !same(was.datasource, p.datasource) || !same(was.transformations, p.transformations)) what.push("queries");
11888
+ if (!same(was.fieldConfig, p.fieldConfig)) what.push("field config");
11889
+ const known = /* @__PURE__ */ new Set(["id", "title", "type", "gridPos", "options", "targets", "datasource", "transformations", "fieldConfig", "panels"]);
11890
+ const rest = (q) => Object.fromEntries(Object.entries(q).filter(([k]) => !known.has(k)).sort(([a], [b]) => a.localeCompare(b)));
11891
+ if (!same(rest(was), rest(p))) what.push("other");
11892
+ if (what.length) panels.push({ change: "changed", ...info(p), what });
11893
+ }
11894
+ for (const p of flat(before)) if (!now.has(p.id)) panels.push({ change: "removed", ...info(p), what: [] });
11895
+ return { document, panels };
11896
+ }
11792
11897
 
11793
11898
  export {
11794
11899
  frameLength,
@@ -11928,6 +12033,7 @@ export {
11928
12033
  panelOverrides,
11929
12034
  setOverrides,
11930
12035
  MANIFEST_VERSION,
12036
+ requiredManifestVersion,
11931
12037
  validateManifest,
11932
12038
  prepareDashboard,
11933
12039
  validateDashboard2 as validateDashboard,
@@ -12014,10 +12120,15 @@ export {
12014
12120
  parseTemplate,
12015
12121
  templateNeeds,
12016
12122
  applyTemplate,
12123
+ DOCUMENT_GUIDE,
12017
12124
  AUTHORING_GUIDE,
12018
12125
  EXAMPLE_TEMPLATE,
12019
12126
  templatePrompt,
12020
12127
  jsonFromAnswer,
12021
12128
  readTemplateAnswer,
12022
- fixTemplatePrompt
12129
+ fixTemplatePrompt,
12130
+ documentPrompt,
12131
+ readDocumentAnswer,
12132
+ fixDocumentPrompt,
12133
+ documentChanges
12023
12134
  };
@@ -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,13 +228,13 @@
228
228
 
229
229
 
230
230
 
231
- var _chunkKROS6BLMjs = require('../chunk-KROS6BLM.js');
232
231
 
233
232
 
234
233
 
235
234
 
236
235
 
237
236
 
237
+ var _chunkG67L7TFKjs = require('../chunk-G67L7TFK.js');
238
238
 
239
239
 
240
240
 
@@ -459,4 +459,16 @@ 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
+
473
+
474
+ exports.ALL = _chunkG67L7TFKjs.ALL; exports.AUTHORING_GUIDE = _chunkG67L7TFKjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkG67L7TFKjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkG67L7TFKjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkG67L7TFKjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkG67L7TFKjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkG67L7TFKjs.ConfigLoader; exports.DASHBOARD_DS = _chunkG67L7TFKjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkG67L7TFKjs.DEFAULT_GAZETTEER; exports.DOCUMENT_GUIDE = _chunkG67L7TFKjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkG67L7TFKjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkG67L7TFKjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkG67L7TFKjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkG67L7TFKjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkG67L7TFKjs.GrafanaClient; exports.GrafanaDataSource = _chunkG67L7TFKjs.GrafanaDataSource; exports.GrafanaError = _chunkG67L7TFKjs.GrafanaError; exports.HttpConfigFiles = _chunkG67L7TFKjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkG67L7TFKjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkG67L7TFKjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkG67L7TFKjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkG67L7TFKjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkG67L7TFKjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkG67L7TFKjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkG67L7TFKjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkG67L7TFKjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkG67L7TFKjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkG67L7TFKjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkG67L7TFKjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkG67L7TFKjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkG67L7TFKjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkG67L7TFKjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkG67L7TFKjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkG67L7TFKjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkG67L7TFKjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkG67L7TFKjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkG67L7TFKjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkG67L7TFKjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkG67L7TFKjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkG67L7TFKjs.UNIT_CHOICES; exports.addTime = _chunkG67L7TFKjs.addTime; exports.appSchema = _chunkG67L7TFKjs.appSchema; exports.applyDashboardLink = _chunkG67L7TFKjs.applyDashboardLink; exports.applyJsonEdits = _chunkG67L7TFKjs.applyJsonEdits; exports.applyTemplate = _chunkG67L7TFKjs.applyTemplate; exports.applyTransformations = _chunkG67L7TFKjs.applyTransformations; exports.assembleBundle = _chunkG67L7TFKjs.assembleBundle; exports.assembleFromResponse = _chunkG67L7TFKjs.assembleFromResponse; exports.buildFrames = _chunkG67L7TFKjs.buildFrames; exports.bundleFromFiles = _chunkG67L7TFKjs.bundleFromFiles; exports.bundleRoot = _chunkG67L7TFKjs.bundleRoot; exports.calculateInterval = _chunkG67L7TFKjs.calculateInterval; exports.checkFiles = _chunkG67L7TFKjs.checkFiles; exports.cleanDashboard = _chunkG67L7TFKjs.cleanDashboard; exports.cleanPanelOptions = _chunkG67L7TFKjs.cleanPanelOptions; exports.collapseRow = _chunkG67L7TFKjs.collapseRow; exports.compactGrid = _chunkG67L7TFKjs.compactGrid; exports.copyPanels = _chunkG67L7TFKjs.copyPanels; exports.dashboardSchema = _chunkG67L7TFKjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkG67L7TFKjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkG67L7TFKjs.dashboardSourceIds; exports.defaultFetchJson = _chunkG67L7TFKjs.defaultFetchJson; exports.describeRange = _chunkG67L7TFKjs.describeRange; exports.diffJson = _chunkG67L7TFKjs.diffJson; exports.documentChanges = _chunkG67L7TFKjs.documentChanges; exports.documentIdFor = _chunkG67L7TFKjs.documentIdFor; exports.documentKind = _chunkG67L7TFKjs.documentKind; exports.documentPrompt = _chunkG67L7TFKjs.documentPrompt; exports.documentUses = _chunkG67L7TFKjs.documentUses; exports.dropTarget = _chunkG67L7TFKjs.dropTarget; exports.duplicatePanel = _chunkG67L7TFKjs.duplicatePanel; exports.entriesSavedWith = _chunkG67L7TFKjs.entriesSavedWith; exports.entriesToItems = _chunkG67L7TFKjs.entriesToItems; exports.entryToInputValue = _chunkG67L7TFKjs.entryToInputValue; exports.expandRow = _chunkG67L7TFKjs.expandRow; exports.fetchBundle = _chunkG67L7TFKjs.fetchBundle; exports.fetchJsonWithToken = _chunkG67L7TFKjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkG67L7TFKjs.fieldDisplayName; exports.fieldMatches = _chunkG67L7TFKjs.fieldMatches; exports.fixDocumentPrompt = _chunkG67L7TFKjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkG67L7TFKjs.fixTemplatePrompt; exports.formatClock = _chunkG67L7TFKjs.formatClock; exports.formatDisplay = _chunkG67L7TFKjs.formatDisplay; exports.formatDuration = _chunkG67L7TFKjs.formatDuration; exports.formatJsonText = _chunkG67L7TFKjs.formatJsonText; exports.formatLocalDateTime = _chunkG67L7TFKjs.formatLocalDateTime; exports.formatValue = _chunkG67L7TFKjs.formatValue; exports.frameLength = _chunkG67L7TFKjs.frameLength; exports.framesToOptions = _chunkG67L7TFKjs.framesToOptions; exports.fromWire = _chunkG67L7TFKjs.fromWire; exports.getPath = _chunkG67L7TFKjs.getPath; exports.gridOffsetPx = _chunkG67L7TFKjs.gridOffsetPx; exports.gridUnitsToPx = _chunkG67L7TFKjs.gridUnitsToPx; exports.groupField = _chunkG67L7TFKjs.groupField; exports.groupFields = _chunkG67L7TFKjs.groupFields; exports.groupProblems = _chunkG67L7TFKjs.groupProblems; exports.groupToEntries = _chunkG67L7TFKjs.groupToEntries; exports.httpFetchJson = _chunkG67L7TFKjs.httpFetchJson; exports.initialVariableValues = _chunkG67L7TFKjs.initialVariableValues; exports.inputGroups = _chunkG67L7TFKjs.inputGroups; exports.inputPanels = _chunkG67L7TFKjs.inputPanels; exports.inputProblem = _chunkG67L7TFKjs.inputProblem; exports.insertPanel = _chunkG67L7TFKjs.insertPanel; exports.interpolate = _chunkG67L7TFKjs.interpolate; exports.interpolateDeep = _chunkG67L7TFKjs.interpolateDeep; exports.isBundleResponse = _chunkG67L7TFKjs.isBundleResponse; exports.isEditableVariableType = _chunkG67L7TFKjs.isEditableVariableType; exports.isEmptyItem = _chunkG67L7TFKjs.isEmptyItem; exports.isFormPanelType = _chunkG67L7TFKjs.isFormPanelType; exports.isInputGroup = _chunkG67L7TFKjs.isInputGroup; exports.isInputPanel = _chunkG67L7TFKjs.isInputPanel; exports.isInputType = _chunkG67L7TFKjs.isInputType; exports.isLocalDatasource = _chunkG67L7TFKjs.isLocalDatasource; exports.isReducer = _chunkG67L7TFKjs.isReducer; exports.isRow = _chunkG67L7TFKjs.isRow; exports.isSqlDatasource = _chunkG67L7TFKjs.isSqlDatasource; exports.jsonFromAnswer = _chunkG67L7TFKjs.jsonFromAnswer; exports.layoutCanvas = _chunkG67L7TFKjs.layoutCanvas; exports.layoutDashboard = _chunkG67L7TFKjs.layoutDashboard; exports.lineColumn = _chunkG67L7TFKjs.lineColumn; exports.loadGazetteer = _chunkG67L7TFKjs.loadGazetteer; exports.locate = _chunkG67L7TFKjs.locate; exports.makeTemplate = _chunkG67L7TFKjs.makeTemplate; exports.manifestSchemaIssues = _chunkG67L7TFKjs.manifestSchemaIssues; exports.mappedResult = _chunkG67L7TFKjs.mappedResult; exports.mappingProblem = _chunkG67L7TFKjs.mappingProblem; exports.mappingRow = _chunkG67L7TFKjs.mappingRow; exports.mappingRows = _chunkG67L7TFKjs.mappingRows; exports.metricChanges = _chunkG67L7TFKjs.metricChanges; exports.movePanel = _chunkG67L7TFKjs.movePanel; exports.newDocument = _chunkG67L7TFKjs.newDocument; exports.newPanel = _chunkG67L7TFKjs.newPanel; exports.newSaveId = _chunkG67L7TFKjs.newSaveId; exports.newVariable = _chunkG67L7TFKjs.newVariable; exports.nextPanelId = _chunkG67L7TFKjs.nextPanelId; exports.normalizeRef = _chunkG67L7TFKjs.normalizeRef; exports.numberFields = _chunkG67L7TFKjs.numberFields; exports.optionValue = _chunkG67L7TFKjs.optionValue; exports.overrideProperties = _chunkG67L7TFKjs.overrideProperties; exports.panelEdits = _chunkG67L7TFKjs.panelEdits; exports.panelHasQueries = _chunkG67L7TFKjs.panelHasQueries; exports.panelKey = _chunkG67L7TFKjs.panelKey; exports.panelMetrics = _chunkG67L7TFKjs.panelMetrics; exports.panelOptions = _chunkG67L7TFKjs.panelOptions; exports.panelOverrides = _chunkG67L7TFKjs.panelOverrides; exports.panelSize = _chunkG67L7TFKjs.panelSize; exports.panelSpan = _chunkG67L7TFKjs.panelSpan; exports.parseClockDigits = _chunkG67L7TFKjs.parseClockDigits; exports.parseDashboardLink = _chunkG67L7TFKjs.parseDashboardLink; exports.parseDuration = _chunkG67L7TFKjs.parseDuration; exports.parseGazetteer = _chunkG67L7TFKjs.parseGazetteer; exports.parseJsonText = _chunkG67L7TFKjs.parseJsonText; exports.parseLocalDateTime = _chunkG67L7TFKjs.parseLocalDateTime; exports.parseRange = _chunkG67L7TFKjs.parseRange; exports.parseSnippet = _chunkG67L7TFKjs.parseSnippet; exports.parseTemplate = _chunkG67L7TFKjs.parseTemplate; exports.parseTime = _chunkG67L7TFKjs.parseTime; exports.pasteSnippet = _chunkG67L7TFKjs.pasteSnippet; exports.placePanel = _chunkG67L7TFKjs.placePanel; exports.plainInputPanels = _chunkG67L7TFKjs.plainInputPanels; exports.pointerToPath = _chunkG67L7TFKjs.pointerToPath; exports.prepareDashboard = _chunkG67L7TFKjs.prepareDashboard; exports.previewPaste = _chunkG67L7TFKjs.previewPaste; exports.queryPanel = _chunkG67L7TFKjs.queryPanel; exports.queryParam = _chunkG67L7TFKjs.queryParam; exports.readConfigFiles = _chunkG67L7TFKjs.readConfigFiles; exports.readDocumentAnswer = _chunkG67L7TFKjs.readDocumentAnswer; exports.readTemplateAnswer = _chunkG67L7TFKjs.readTemplateAnswer; exports.readingOrder = _chunkG67L7TFKjs.readingOrder; exports.reduce = _chunkG67L7TFKjs.reduce; exports.refineOptions = _chunkG67L7TFKjs.refineOptions; exports.refreshedVariables = _chunkG67L7TFKjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkG67L7TFKjs.removeDocumentFromManifest; exports.removePanel = _chunkG67L7TFKjs.removePanel; exports.renameDocumentInManifest = _chunkG67L7TFKjs.renameDocumentInManifest; exports.renameMetrics = _chunkG67L7TFKjs.renameMetrics; exports.renameVariableInPanels = _chunkG67L7TFKjs.renameVariableInPanels; exports.repack = _chunkG67L7TFKjs.repack; exports.repeatOptions = _chunkG67L7TFKjs.repeatOptions; exports.requiredManifestVersion = _chunkG67L7TFKjs.requiredManifestVersion; exports.resizePanel = _chunkG67L7TFKjs.resizePanel; exports.resolveColor = _chunkG67L7TFKjs.resolveColor; exports.resolveFieldConfig = _chunkG67L7TFKjs.resolveFieldConfig; exports.resolveLinks = _chunkG67L7TFKjs.resolveLinks; exports.resolveTimezone = _chunkG67L7TFKjs.resolveTimezone; exports.resolveUrl = _chunkG67L7TFKjs.resolveUrl; exports.resolveVariables = _chunkG67L7TFKjs.resolveVariables; exports.revalidateBundle = _chunkG67L7TFKjs.revalidateBundle; exports.rowsToMappings = _chunkG67L7TFKjs.rowsToMappings; exports.sameSave = _chunkG67L7TFKjs.sameSave; exports.sampleEntries = _chunkG67L7TFKjs.sampleEntries; exports.screenDocuments = _chunkG67L7TFKjs.screenDocuments; exports.screenOfType = _chunkG67L7TFKjs.screenOfType; exports.selectValue = _chunkG67L7TFKjs.selectValue; exports.seriesColor = _chunkG67L7TFKjs.seriesColor; exports.setHiddenOnPhones = _chunkG67L7TFKjs.setHiddenOnPhones; exports.setJsonValue = _chunkG67L7TFKjs.setJsonValue; exports.setOption = _chunkG67L7TFKjs.setOption; exports.setOptionValue = _chunkG67L7TFKjs.setOptionValue; exports.setOverrides = _chunkG67L7TFKjs.setOverrides; exports.settleLayout = _chunkG67L7TFKjs.settleLayout; exports.snapToGrid = _chunkG67L7TFKjs.snapToGrid; exports.splitPath = _chunkG67L7TFKjs.splitPath; exports.startOf = _chunkG67L7TFKjs.startOf; exports.stringifyCompact = _chunkG67L7TFKjs.stringifyCompact; exports.tabIdFor = _chunkG67L7TFKjs.tabIdFor; exports.templateNeeds = _chunkG67L7TFKjs.templateNeeds; exports.templatePrompt = _chunkG67L7TFKjs.templatePrompt; exports.textSuggestions = _chunkG67L7TFKjs.textSuggestions; exports.thresholdStep = _chunkG67L7TFKjs.thresholdStep; exports.timeExprError = _chunkG67L7TFKjs.timeExprError; exports.timeField = _chunkG67L7TFKjs.timeField; exports.toEntries = _chunkG67L7TFKjs.toEntries; exports.toMillis = _chunkG67L7TFKjs.toMillis; exports.toSeries = _chunkG67L7TFKjs.toSeries; exports.toXYSeries = _chunkG67L7TFKjs.toXYSeries; exports.uniqueNames = _chunkG67L7TFKjs.uniqueNames; exports.validateBundle = _chunkG67L7TFKjs.validateBundle; exports.validateDashboard = _chunkG67L7TFKjs.validateDashboard; exports.validateManifest = _chunkG67L7TFKjs.validateManifest; exports.valueColor = _chunkG67L7TFKjs.valueColor; exports.valueText = _chunkG67L7TFKjs.valueText; exports.variableDependents = _chunkG67L7TFKjs.variableDependents; exports.variableInfo = _chunkG67L7TFKjs.variableInfo; exports.variableNameError = _chunkG67L7TFKjs.variableNameError; exports.variableOptions = _chunkG67L7TFKjs.variableOptions; exports.variableOrder = _chunkG67L7TFKjs.variableOrder; exports.variableReferences = _chunkG67L7TFKjs.variableReferences; exports.variableUses = _chunkG67L7TFKjs.variableUses; exports.variableWithCurrent = _chunkG67L7TFKjs.variableWithCurrent; exports.variableWithFlags = _chunkG67L7TFKjs.variableWithFlags; exports.variableWithQuery = _chunkG67L7TFKjs.variableWithQuery; exports.variableWithType = _chunkG67L7TFKjs.variableWithType; exports.visibleVariables = _chunkG67L7TFKjs.visibleVariables; exports.zoomRange = _chunkG67L7TFKjs.zoomRange;