@overmap-ai/forms 1.0.32-react-flow-david-fixes.34 → 1.0.32-react-flow-david-fixes.35
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/form/fields/UploadField/UUIDPromise.d.ts +8 -6
- package/dist/forms.js +26 -17
- package/dist/forms.umd.cjs +26 -17
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare class UUIDPromise<T> extends Promise<T> {
|
|
2
|
-
|
|
3
|
-
constructor(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
private _uuid;
|
|
3
|
+
constructor(executor: (...args: Parameters<ConstructorParameters<typeof Promise<T>>[0]>) => void, uuid: string);
|
|
4
|
+
get uuid(): string;
|
|
5
|
+
private set uuid(value);
|
|
6
|
+
static from<T>(promise: Promise<T> | PromiseLike<T>, uuid: string): UUIDPromise<T>;
|
|
7
|
+
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): UUIDPromise<TResult1 | TResult2>;
|
|
8
|
+
catch<TResult2 = never>(onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): UUIDPromise<T | TResult2>;
|
|
9
|
+
finally(onFinally?: (() => void) | undefined | null): UUIDPromise<T>;
|
|
8
10
|
}
|
package/dist/forms.js
CHANGED
|
@@ -32254,27 +32254,36 @@ const ImageCard = memo(
|
|
|
32254
32254
|
})
|
|
32255
32255
|
);
|
|
32256
32256
|
class UUIDPromise extends Promise {
|
|
32257
|
-
constructor(
|
|
32257
|
+
constructor(executor, uuid) {
|
|
32258
32258
|
super(executor);
|
|
32259
|
-
__publicField(this, "
|
|
32260
|
-
this.
|
|
32259
|
+
__publicField(this, "_uuid");
|
|
32260
|
+
this._uuid = uuid;
|
|
32261
32261
|
}
|
|
32262
|
-
|
|
32263
|
-
|
|
32264
|
-
throw new TypeError("Input must be a Promise or PromiseLike");
|
|
32265
|
-
}
|
|
32266
|
-
return new UUIDPromise(uuid, (resolve, reject) => {
|
|
32267
|
-
Promise.resolve(promise).then(resolve).catch(reject);
|
|
32268
|
-
});
|
|
32262
|
+
get uuid() {
|
|
32263
|
+
return this._uuid;
|
|
32269
32264
|
}
|
|
32270
|
-
|
|
32271
|
-
|
|
32265
|
+
set uuid(uuid) {
|
|
32266
|
+
this._uuid = uuid;
|
|
32272
32267
|
}
|
|
32273
|
-
|
|
32274
|
-
return UUIDPromise
|
|
32275
|
-
|
|
32276
|
-
|
|
32277
|
-
|
|
32268
|
+
static from(promise, uuid) {
|
|
32269
|
+
return new UUIDPromise((resolve, reject) => {
|
|
32270
|
+
Promise.resolve(promise).then(resolve).catch(reject);
|
|
32271
|
+
}, uuid);
|
|
32272
|
+
}
|
|
32273
|
+
then(onFulfilled, onRejected) {
|
|
32274
|
+
const promise = super.then(onFulfilled, onRejected);
|
|
32275
|
+
promise.uuid = this.uuid;
|
|
32276
|
+
return promise;
|
|
32277
|
+
}
|
|
32278
|
+
catch(onRejected) {
|
|
32279
|
+
const promise = super.catch(onRejected);
|
|
32280
|
+
promise.uuid = this.uuid;
|
|
32281
|
+
return promise;
|
|
32282
|
+
}
|
|
32283
|
+
finally(onFinally) {
|
|
32284
|
+
const promise = super.finally(onFinally);
|
|
32285
|
+
promise.uuid = this.uuid;
|
|
32286
|
+
return promise;
|
|
32278
32287
|
}
|
|
32279
32288
|
}
|
|
32280
32289
|
const convertBytesToLargestUnit = (bytes) => {
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -32256,27 +32256,36 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
32256
32256
|
})
|
|
32257
32257
|
);
|
|
32258
32258
|
class UUIDPromise extends Promise {
|
|
32259
|
-
constructor(
|
|
32259
|
+
constructor(executor, uuid2) {
|
|
32260
32260
|
super(executor);
|
|
32261
|
-
__publicField(this, "
|
|
32262
|
-
this.
|
|
32261
|
+
__publicField(this, "_uuid");
|
|
32262
|
+
this._uuid = uuid2;
|
|
32263
32263
|
}
|
|
32264
|
-
|
|
32265
|
-
|
|
32266
|
-
throw new TypeError("Input must be a Promise or PromiseLike");
|
|
32267
|
-
}
|
|
32268
|
-
return new UUIDPromise(uuid2, (resolve, reject) => {
|
|
32269
|
-
Promise.resolve(promise).then(resolve).catch(reject);
|
|
32270
|
-
});
|
|
32264
|
+
get uuid() {
|
|
32265
|
+
return this._uuid;
|
|
32271
32266
|
}
|
|
32272
|
-
|
|
32273
|
-
|
|
32267
|
+
set uuid(uuid2) {
|
|
32268
|
+
this._uuid = uuid2;
|
|
32274
32269
|
}
|
|
32275
|
-
|
|
32276
|
-
return UUIDPromise
|
|
32277
|
-
|
|
32278
|
-
|
|
32279
|
-
|
|
32270
|
+
static from(promise, uuid2) {
|
|
32271
|
+
return new UUIDPromise((resolve, reject) => {
|
|
32272
|
+
Promise.resolve(promise).then(resolve).catch(reject);
|
|
32273
|
+
}, uuid2);
|
|
32274
|
+
}
|
|
32275
|
+
then(onFulfilled, onRejected) {
|
|
32276
|
+
const promise = super.then(onFulfilled, onRejected);
|
|
32277
|
+
promise.uuid = this.uuid;
|
|
32278
|
+
return promise;
|
|
32279
|
+
}
|
|
32280
|
+
catch(onRejected) {
|
|
32281
|
+
const promise = super.catch(onRejected);
|
|
32282
|
+
promise.uuid = this.uuid;
|
|
32283
|
+
return promise;
|
|
32284
|
+
}
|
|
32285
|
+
finally(onFinally) {
|
|
32286
|
+
const promise = super.finally(onFinally);
|
|
32287
|
+
promise.uuid = this.uuid;
|
|
32288
|
+
return promise;
|
|
32280
32289
|
}
|
|
32281
32290
|
}
|
|
32282
32291
|
const convertBytesToLargestUnit = (bytes) => {
|