@overmap-ai/forms 1.0.32-react-flow-david-fixes.31 → 1.0.32-react-flow-david-fixes.33
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class UUIDPromise<T> extends Promise<T> {
|
|
2
2
|
readonly uuid: string;
|
|
3
3
|
constructor(uuid: string, executor: (...args: Parameters<ConstructorParameters<typeof Promise<T>>[0]>) => void);
|
|
4
|
-
static from<T>(uuid: string, promise: Promise<T>): UUIDPromise<T>;
|
|
4
|
+
static from<T>(uuid: string, promise: Promise<T> | PromiseLike<T>): UUIDPromise<T>;
|
|
5
5
|
then<TResult1 = T, TResult2 = never>(...args: Parameters<Promise<T>["then"]>): UUIDPromise<TResult1 | TResult2>;
|
|
6
6
|
catch<TResult2 = never>(...args: Parameters<Promise<T>["catch"]>): UUIDPromise<T | TResult2>;
|
|
7
7
|
}
|
package/dist/forms.js
CHANGED
|
@@ -32261,7 +32261,7 @@ class UUIDPromise extends Promise {
|
|
|
32261
32261
|
}
|
|
32262
32262
|
static from(uuid, promise) {
|
|
32263
32263
|
return new UUIDPromise(uuid, (resolve, reject) => {
|
|
32264
|
-
promise.then(resolve).catch(reject);
|
|
32264
|
+
Promise.resolve(promise).then(resolve).catch(reject);
|
|
32265
32265
|
});
|
|
32266
32266
|
}
|
|
32267
32267
|
then(...args) {
|
|
@@ -32442,7 +32442,7 @@ const DisplayFile = memo((props) => {
|
|
|
32442
32442
|
return { url: url2, name: name2, size };
|
|
32443
32443
|
}, [resolvedFile]);
|
|
32444
32444
|
useEffect(() => {
|
|
32445
|
-
if (file instanceof
|
|
32445
|
+
if (file instanceof UUIDPromise) {
|
|
32446
32446
|
file.then(setResolvedFile).catch(console.error);
|
|
32447
32447
|
} else {
|
|
32448
32448
|
setResolvedFile(file);
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -32263,7 +32263,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
32263
32263
|
}
|
|
32264
32264
|
static from(uuid2, promise) {
|
|
32265
32265
|
return new UUIDPromise(uuid2, (resolve, reject) => {
|
|
32266
|
-
promise.then(resolve).catch(reject);
|
|
32266
|
+
Promise.resolve(promise).then(resolve).catch(reject);
|
|
32267
32267
|
});
|
|
32268
32268
|
}
|
|
32269
32269
|
then(...args) {
|
|
@@ -32444,7 +32444,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
32444
32444
|
return { url: url2, name: name2, size };
|
|
32445
32445
|
}, [resolvedFile]);
|
|
32446
32446
|
React.useEffect(() => {
|
|
32447
|
-
if (file instanceof
|
|
32447
|
+
if (file instanceof UUIDPromise) {
|
|
32448
32448
|
file.then(setResolvedFile).catch(console.error);
|
|
32449
32449
|
} else {
|
|
32450
32450
|
setResolvedFile(file);
|