@overmap-ai/forms 1.0.32-react-flow-david-fixes.35 → 1.0.32-react-flow-david-fixes.37

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/forms.js CHANGED
@@ -32458,7 +32458,10 @@ const DisplayFile = memo((props) => {
32458
32458
  }, [resolvedFile]);
32459
32459
  useEffect(() => {
32460
32460
  if (file instanceof UUIDPromise) {
32461
- file.then(setResolvedFile).catch(console.error);
32461
+ file.then((file2) => {
32462
+ console.debug("file", file2);
32463
+ setResolvedFile(file2);
32464
+ }).catch(console.error);
32462
32465
  } else {
32463
32466
  setResolvedFile(file);
32464
32467
  }
@@ -36275,7 +36278,7 @@ const separateFilesFromFields = async (fields) => {
36275
36278
  async function awaitPromisesFromFieldValues(values) {
36276
36279
  const valuesWithoutFiles = {};
36277
36280
  for (const [key, value] of Object.entries(values)) {
36278
- if (Array.isArray(value) && value.every((item) => item instanceof Promise)) {
36281
+ if (Array.isArray(value) && value.every((item) => item instanceof UUIDPromise)) {
36279
36282
  valuesWithoutFiles[key] = await Promise.all(value);
36280
36283
  } else {
36281
36284
  valuesWithoutFiles[key] = value;
@@ -32460,7 +32460,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
32460
32460
  }, [resolvedFile]);
32461
32461
  React.useEffect(() => {
32462
32462
  if (file instanceof UUIDPromise) {
32463
- file.then(setResolvedFile).catch(console.error);
32463
+ file.then((file2) => {
32464
+ console.debug("file", file2);
32465
+ setResolvedFile(file2);
32466
+ }).catch(console.error);
32464
32467
  } else {
32465
32468
  setResolvedFile(file);
32466
32469
  }
@@ -36277,7 +36280,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
36277
36280
  async function awaitPromisesFromFieldValues(values) {
36278
36281
  const valuesWithoutFiles = {};
36279
36282
  for (const [key, value] of Object.entries(values)) {
36280
- if (Array.isArray(value) && value.every((item) => item instanceof Promise)) {
36283
+ if (Array.isArray(value) && value.every((item) => item instanceof UUIDPromise)) {
36281
36284
  valuesWithoutFiles[key] = await Promise.all(value);
36282
36285
  } else {
36283
36286
  valuesWithoutFiles[key] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/forms",
3
- "version": "1.0.32-react-flow-david-fixes.35",
3
+ "version": "1.0.32-react-flow-david-fixes.37",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/forms.umd.cjs",
6
6
  "module": "dist/forms.js",