@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.
@@ -1,8 +1,10 @@
1
1
  export declare class UUIDPromise<T> extends Promise<T> {
2
- readonly uuid: string;
3
- constructor(uuid: string, executor: (...args: Parameters<ConstructorParameters<typeof Promise<T>>[0]>) => void);
4
- static from<T>(uuid: string, promise: Promise<T> | PromiseLike<T>): UUIDPromise<T>;
5
- then<TResult1 = T, TResult2 = never>(...args: Parameters<Promise<T>["then"]>): UUIDPromise<TResult1 | TResult2>;
6
- catch<TResult2 = never>(...args: Parameters<Promise<T>["catch"]>): UUIDPromise<T | TResult2>;
7
- finally(onfinally?: Parameters<Promise<T>["finally"]>[0]): UUIDPromise<T>;
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(uuid, executor) {
32257
+ constructor(executor, uuid) {
32258
32258
  super(executor);
32259
- __publicField(this, "uuid");
32260
- this.uuid = uuid;
32259
+ __publicField(this, "_uuid");
32260
+ this._uuid = uuid;
32261
32261
  }
32262
- static from(uuid, promise) {
32263
- if (!promise || typeof promise.then !== "function") {
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
- then(...args) {
32271
- return UUIDPromise.from(this.uuid, super.then(...args));
32265
+ set uuid(uuid) {
32266
+ this._uuid = uuid;
32272
32267
  }
32273
- catch(...args) {
32274
- return UUIDPromise.from(this.uuid, super.catch(...args));
32275
- }
32276
- finally(onfinally) {
32277
- return UUIDPromise.from(this.uuid, super.finally(onfinally));
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) => {
@@ -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(uuid2, executor) {
32259
+ constructor(executor, uuid2) {
32260
32260
  super(executor);
32261
- __publicField(this, "uuid");
32262
- this.uuid = uuid2;
32261
+ __publicField(this, "_uuid");
32262
+ this._uuid = uuid2;
32263
32263
  }
32264
- static from(uuid2, promise) {
32265
- if (!promise || typeof promise.then !== "function") {
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
- then(...args) {
32273
- return UUIDPromise.from(this.uuid, super.then(...args));
32267
+ set uuid(uuid2) {
32268
+ this._uuid = uuid2;
32274
32269
  }
32275
- catch(...args) {
32276
- return UUIDPromise.from(this.uuid, super.catch(...args));
32277
- }
32278
- finally(onfinally) {
32279
- return UUIDPromise.from(this.uuid, super.finally(onfinally));
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) => {
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.34",
3
+ "version": "1.0.32-react-flow-david-fixes.35",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/forms.umd.cjs",
6
6
  "module": "dist/forms.js",