@modelform/react-native 0.14.0 → 0.16.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/dist/index.mjs CHANGED
@@ -53,6 +53,7 @@ import {
53
53
  bundleRoot,
54
54
  calculateInterval,
55
55
  checkFiles,
56
+ choicesOf,
56
57
  cleanDashboard,
57
58
  cleanPanelOptions,
58
59
  collapseRow,
@@ -251,7 +252,7 @@ import {
251
252
  variableWithType,
252
253
  visibleVariables,
253
254
  zoomRange
254
- } from "./chunk-72OFPTDE.mjs";
255
+ } from "./chunk-Q5GMOQT7.mjs";
255
256
 
256
257
  // src/ui/theme.tsx
257
258
  import { createContext, useContext } from "react";
@@ -4756,6 +4757,7 @@ export {
4756
4757
  bundleRoot,
4757
4758
  calculateInterval,
4758
4759
  checkFiles,
4760
+ choicesOf,
4759
4761
  cleanDashboard,
4760
4762
  cleanPanelOptions,
4761
4763
  collapseRow,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelform/react-native",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Render Grafana-compatible dashboard JSON, and input forms in the same format, as native React Native panels.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -11,6 +11,10 @@
11
11
  "$ref": "#/definitions/DocumentKind",
12
12
  "description": "Whether this document is a form (for recording entries) or a dashboard (for showing them). Without it, a document with input-* panels counts as a form. See documentKind()."
13
13
  },
14
+ "localOnly": {
15
+ "type": "boolean",
16
+ "description": "Forms: keep what this form records on the device where it's recorded. Apps that sync entries (to an account, other devices, a server) must leave these out. Off by default."
17
+ },
14
18
  "uid": {
15
19
  "type": "string"
16
20
  },
@@ -110,7 +114,7 @@
110
114
  "form",
111
115
  "dashboard"
112
116
  ],
113
- "description": "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds three extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)"
117
+ "description": "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds four extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `localOnly` to keep a form's entries on the device that records them - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)"
114
118
  },
115
119
  "Panel": {
116
120
  "type": "object",