@overmap-ai/forms 1.0.10 → 1.0.11-fix-dropdown-buttons.1

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/typings.d.ts CHANGED
@@ -5,6 +5,12 @@ import { AnyField, BaseField } from "./fields";
5
5
  * a `Promise<File>[]` instead of a `File[]` as the files must be downloaded.
6
6
  * `Promise<File>[]` is not add to the `FieldValue` type as it is not a valid
7
7
  * value for submitted forms as the files must be present to be submitted
8
+ * TODO: This causes type errors in hemora-web. Maybe we should change this to:
9
+ * export type Form = {
10
+ * data: Record<string, FieldValue>,
11
+ * attachments: Record<string, Promise<File>[]>
12
+ * }
13
+ * Then, we could just use `data` for creating attachment instances.
8
14
  */
9
15
  export type Form = Record<string, FieldValue | Promise<File>[]>;
10
16
  /** Helper type that extracts the TValue type from a BaseField. */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Form functionality for Overmap",
4
4
  "author": "Wôrdn Inc.",
5
5
  "license": "UNLICENSED",
6
- "version": "1.0.10",
6
+ "version": "1.0.11-fix-dropdown-buttons.1",
7
7
  "type": "module",
8
8
  "main": "dist/forms.umd.cjs",
9
9
  "module": "dist/forms.js",
@@ -37,7 +37,7 @@
37
37
  "react-dom": "^18.2.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@overmap-ai/blocks": "^1.0.8",
40
+ "@overmap-ai/blocks": "1.0.10-fix-dropdown-buttons.0",
41
41
  "@overmap-ai/core": "^1.0.2-wor-154-upload-field-types.1",
42
42
  "@rollup/plugin-commonjs": "^25.0.4",
43
43
  "@storybook/addon-a11y": "^7.4.5",