@opengeoweb/taf 12.10.0 → 12.11.0

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/index.esm.js CHANGED
@@ -357,6 +357,9 @@ var tafTranslations = {
357
357
  nl: nl
358
358
  };
359
359
 
360
+ function _OverloadYield(e, d) {
361
+ this.v = e, this.k = d;
362
+ }
360
363
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
361
364
  try {
362
365
  var i = n[a](c),
@@ -391,306 +394,180 @@ function _objectWithoutPropertiesLoose(r, e) {
391
394
  }
392
395
  return t;
393
396
  }
394
- function _regeneratorRuntime() {
395
- _regeneratorRuntime = function () {
396
- return e;
397
- };
398
- var t,
399
- e = {},
400
- r = Object.prototype,
401
- n = r.hasOwnProperty,
402
- o = Object.defineProperty || function (t, e, r) {
403
- t[e] = r.value;
404
- },
405
- i = "function" == typeof Symbol ? Symbol : {},
406
- a = i.iterator || "@@iterator",
407
- c = i.asyncIterator || "@@asyncIterator",
408
- u = i.toStringTag || "@@toStringTag";
409
- function define(t, e, r) {
410
- return Object.defineProperty(t, e, {
411
- value: r,
412
- enumerable: true,
413
- configurable: true,
414
- writable: true
415
- }), t[e];
416
- }
417
- try {
418
- define({}, "");
419
- } catch (t) {
420
- define = function (t, e, r) {
421
- return t[e] = r;
422
- };
423
- }
424
- function wrap(t, e, r, n) {
425
- var i = e && e.prototype instanceof Generator ? e : Generator,
426
- a = Object.create(i.prototype),
427
- c = new Context(n || []);
428
- return o(a, "_invoke", {
429
- value: makeInvokeMethod(t, r, c)
430
- }), a;
431
- }
432
- function tryCatch(t, e, r) {
433
- try {
434
- return {
435
- type: "normal",
436
- arg: t.call(e, r)
437
- };
438
- } catch (t) {
439
- return {
440
- type: "throw",
441
- arg: t
397
+ function _regenerator() {
398
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
399
+ var e,
400
+ t,
401
+ r = "function" == typeof Symbol ? Symbol : {},
402
+ n = r.iterator || "@@iterator",
403
+ o = r.toStringTag || "@@toStringTag";
404
+ function i(r, n, o, i) {
405
+ var c = n && n.prototype instanceof Generator ? n : Generator,
406
+ u = Object.create(c.prototype);
407
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
408
+ var i,
409
+ c,
410
+ u,
411
+ f = 0,
412
+ p = o || [],
413
+ y = false,
414
+ G = {
415
+ p: 0,
416
+ n: 0,
417
+ v: e,
418
+ a: d,
419
+ f: d.bind(e, 4),
420
+ d: function (t, r) {
421
+ return i = t, c = 0, u = e, G.n = r, a;
422
+ }
423
+ };
424
+ function d(r, n) {
425
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
426
+ var o,
427
+ i = p[t],
428
+ d = G.p,
429
+ l = i[2];
430
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
431
+ }
432
+ if (o || r > 1) return a;
433
+ throw y = true, n;
434
+ }
435
+ return function (o, p, l) {
436
+ if (f > 1) throw TypeError("Generator is already running");
437
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
438
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
439
+ try {
440
+ if (f = 2, i) {
441
+ if (c || (o = "next"), t = i[o]) {
442
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
443
+ if (!t.done) return t;
444
+ u = t.value, c < 2 && (c = 0);
445
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
446
+ i = e;
447
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
448
+ } catch (t) {
449
+ i = e, c = 1, u = t;
450
+ } finally {
451
+ f = 1;
452
+ }
453
+ }
454
+ return {
455
+ value: t,
456
+ done: y
457
+ };
442
458
  };
443
- }
459
+ }(r, o, i), true), u;
444
460
  }
445
- e.wrap = wrap;
446
- var h = "suspendedStart",
447
- l = "suspendedYield",
448
- f = "executing",
449
- s = "completed",
450
- y = {};
461
+ var a = {};
451
462
  function Generator() {}
452
463
  function GeneratorFunction() {}
453
464
  function GeneratorFunctionPrototype() {}
454
- var p = {};
455
- define(p, a, function () {
465
+ t = Object.getPrototypeOf;
466
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
467
+ return this;
468
+ }), t),
469
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
470
+ function f(e) {
471
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
472
+ }
473
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
456
474
  return this;
475
+ }), _regeneratorDefine(u, "toString", function () {
476
+ return "[object Generator]";
477
+ }), (_regenerator = function () {
478
+ return {
479
+ w: i,
480
+ m: f
481
+ };
482
+ })();
483
+ }
484
+ function _regeneratorAsync(n, e, r, t, o) {
485
+ var a = _regeneratorAsyncGen(n, e, r, t, o);
486
+ return a.next().then(function (n) {
487
+ return n.done ? n.value : a.next();
457
488
  });
458
- var d = Object.getPrototypeOf,
459
- v = d && d(d(values([])));
460
- v && v !== r && n.call(v, a) && (p = v);
461
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
462
- function defineIteratorMethods(t) {
463
- ["next", "throw", "return"].forEach(function (e) {
464
- define(t, e, function (t) {
465
- return this._invoke(e, t);
489
+ }
490
+ function _regeneratorAsyncGen(r, e, t, o, n) {
491
+ return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
492
+ }
493
+ function _regeneratorAsyncIterator(t, e) {
494
+ function n(r, o, i, f) {
495
+ try {
496
+ var c = t[r](o),
497
+ u = c.value;
498
+ return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
499
+ n("next", t, i, f);
500
+ }, function (t) {
501
+ n("throw", t, i, f);
502
+ }) : e.resolve(u).then(function (t) {
503
+ c.value = t, i(c);
504
+ }, function (t) {
505
+ return n("throw", t, i, f);
466
506
  });
467
- });
507
+ } catch (t) {
508
+ f(t);
509
+ }
468
510
  }
469
- function AsyncIterator(t, e) {
470
- function invoke(r, o, i, a) {
471
- var c = tryCatch(t[r], t, o);
472
- if ("throw" !== c.type) {
473
- var u = c.arg,
474
- h = u.value;
475
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
476
- invoke("next", t, i, a);
477
- }, function (t) {
478
- invoke("throw", t, i, a);
479
- }) : e.resolve(h).then(function (t) {
480
- u.value = t, i(u);
481
- }, function (t) {
482
- return invoke("throw", t, i, a);
511
+ var r;
512
+ this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
513
+ return this;
514
+ })), _regeneratorDefine(this, "_invoke", function (t, o, i) {
515
+ function f() {
516
+ return new e(function (e, r) {
517
+ n(t, i, e, r);
518
+ });
519
+ }
520
+ return r = r ? r.then(f, f) : f();
521
+ }, true);
522
+ }
523
+ function _regeneratorDefine(e, r, n, t) {
524
+ var i = Object.defineProperty;
525
+ try {
526
+ i({}, "", {});
527
+ } catch (e) {
528
+ i = 0;
529
+ }
530
+ _regeneratorDefine = function (e, r, n, t) {
531
+ if (r) i ? i(e, r, {
532
+ value: n,
533
+ enumerable: !t,
534
+ configurable: !t,
535
+ writable: !t
536
+ }) : e[r] = n;else {
537
+ function o(r, n) {
538
+ _regeneratorDefine(e, r, function (e) {
539
+ return this._invoke(r, n, e);
483
540
  });
484
541
  }
485
- a(c.arg);
542
+ o("next", 0), o("throw", 1), o("return", 2);
486
543
  }
487
- var r;
488
- o(this, "_invoke", {
489
- value: function (t, n) {
490
- function callInvokeWithMethodAndArg() {
491
- return new e(function (e, r) {
492
- invoke(t, n, e, r);
493
- });
494
- }
495
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
496
- }
497
- });
498
- }
499
- function makeInvokeMethod(e, r, n) {
500
- var o = h;
501
- return function (i, a) {
502
- if (o === f) throw Error("Generator is already running");
503
- if (o === s) {
504
- if ("throw" === i) throw a;
505
- return {
506
- value: t,
507
- done: true
544
+ }, _regeneratorDefine(e, r, n, t);
545
+ }
546
+ function _regeneratorKeys(e) {
547
+ var n = Object(e),
548
+ r = [];
549
+ for (var t in n) r.unshift(t);
550
+ return function e() {
551
+ for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
552
+ return e.done = true, e;
553
+ };
554
+ }
555
+ function _regeneratorValues(e) {
556
+ if (null != e) {
557
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
558
+ r = 0;
559
+ if (t) return t.call(e);
560
+ if ("function" == typeof e.next) return e;
561
+ if (!isNaN(e.length)) return {
562
+ next: function () {
563
+ return e && r >= e.length && (e = void 0), {
564
+ value: e && e[r++],
565
+ done: !e
508
566
  };
509
567
  }
510
- for (n.method = i, n.arg = a;;) {
511
- var c = n.delegate;
512
- if (c) {
513
- var u = maybeInvokeDelegate(c, n);
514
- if (u) {
515
- if (u === y) continue;
516
- return u;
517
- }
518
- }
519
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
520
- if (o === h) throw o = s, n.arg;
521
- n.dispatchException(n.arg);
522
- } else "return" === n.method && n.abrupt("return", n.arg);
523
- o = f;
524
- var p = tryCatch(e, r, n);
525
- if ("normal" === p.type) {
526
- if (o = n.done ? s : l, p.arg === y) continue;
527
- return {
528
- value: p.arg,
529
- done: n.done
530
- };
531
- }
532
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
533
- }
534
568
  };
535
569
  }
536
- function maybeInvokeDelegate(e, r) {
537
- var n = r.method,
538
- o = e.iterator[n];
539
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
540
- var i = tryCatch(o, e.iterator, r.arg);
541
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
542
- var a = i.arg;
543
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
544
- }
545
- function pushTryEntry(t) {
546
- var e = {
547
- tryLoc: t[0]
548
- };
549
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
550
- }
551
- function resetTryEntry(t) {
552
- var e = t.completion || {};
553
- e.type = "normal", delete e.arg, t.completion = e;
554
- }
555
- function Context(t) {
556
- this.tryEntries = [{
557
- tryLoc: "root"
558
- }], t.forEach(pushTryEntry, this), this.reset(true);
559
- }
560
- function values(e) {
561
- if (e || "" === e) {
562
- var r = e[a];
563
- if (r) return r.call(e);
564
- if ("function" == typeof e.next) return e;
565
- if (!isNaN(e.length)) {
566
- var o = -1,
567
- i = function next() {
568
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
569
- return next.value = t, next.done = true, next;
570
- };
571
- return i.next = i;
572
- }
573
- }
574
- throw new TypeError(typeof e + " is not iterable");
575
- }
576
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
577
- value: GeneratorFunctionPrototype,
578
- configurable: true
579
- }), o(GeneratorFunctionPrototype, "constructor", {
580
- value: GeneratorFunction,
581
- configurable: true
582
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
583
- var e = "function" == typeof t && t.constructor;
584
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
585
- }, e.mark = function (t) {
586
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
587
- }, e.awrap = function (t) {
588
- return {
589
- __await: t
590
- };
591
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
592
- return this;
593
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
594
- void 0 === i && (i = Promise);
595
- var a = new AsyncIterator(wrap(t, r, n, o), i);
596
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
597
- return t.done ? t.value : a.next();
598
- });
599
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
600
- return this;
601
- }), define(g, "toString", function () {
602
- return "[object Generator]";
603
- }), e.keys = function (t) {
604
- var e = Object(t),
605
- r = [];
606
- for (var n in e) r.push(n);
607
- return r.reverse(), function next() {
608
- for (; r.length;) {
609
- var t = r.pop();
610
- if (t in e) return next.value = t, next.done = false, next;
611
- }
612
- return next.done = true, next;
613
- };
614
- }, e.values = values, Context.prototype = {
615
- constructor: Context,
616
- reset: function (e) {
617
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
618
- },
619
- stop: function () {
620
- this.done = true;
621
- var t = this.tryEntries[0].completion;
622
- if ("throw" === t.type) throw t.arg;
623
- return this.rval;
624
- },
625
- dispatchException: function (e) {
626
- if (this.done) throw e;
627
- var r = this;
628
- function handle(n, o) {
629
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
630
- }
631
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
632
- var i = this.tryEntries[o],
633
- a = i.completion;
634
- if ("root" === i.tryLoc) return handle("end");
635
- if (i.tryLoc <= this.prev) {
636
- var c = n.call(i, "catchLoc"),
637
- u = n.call(i, "finallyLoc");
638
- if (c && u) {
639
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
640
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
641
- } else if (c) {
642
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
643
- } else {
644
- if (!u) throw Error("try statement without catch or finally");
645
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
646
- }
647
- }
648
- }
649
- },
650
- abrupt: function (t, e) {
651
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
652
- var o = this.tryEntries[r];
653
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
654
- var i = o;
655
- break;
656
- }
657
- }
658
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
659
- var a = i ? i.completion : {};
660
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
661
- },
662
- complete: function (t, e) {
663
- if ("throw" === t.type) throw t.arg;
664
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
665
- },
666
- finish: function (t) {
667
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
668
- var r = this.tryEntries[e];
669
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
670
- }
671
- },
672
- catch: function (t) {
673
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
674
- var r = this.tryEntries[e];
675
- if (r.tryLoc === t) {
676
- var n = r.completion;
677
- if ("throw" === n.type) {
678
- var o = n.arg;
679
- resetTryEntry(r);
680
- }
681
- return o;
682
- }
683
- }
684
- throw Error("illegal catch attempt");
685
- },
686
- delegateYield: function (e, r, n) {
687
- return this.delegate = {
688
- iterator: values(e),
689
- resultName: r,
690
- nextLoc: n
691
- }, "next" === this.method && (this.arg = t), y;
692
- }
693
- }, e;
570
+ throw new TypeError(typeof e + " is not iterable");
694
571
  }
695
572
  function _toPrimitive(t, r) {
696
573
  if ("object" != typeof t || !t) return t;
@@ -706,6 +583,74 @@ function _toPropertyKey(t) {
706
583
  var i = _toPrimitive(t, "string");
707
584
  return "symbol" == typeof i ? i : i + "";
708
585
  }
586
+ function _regeneratorRuntime() {
587
+
588
+ var r = _regenerator(),
589
+ e = r.m(_regeneratorRuntime),
590
+ t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
591
+ function n(r) {
592
+ var e = "function" == typeof r && r.constructor;
593
+ return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
594
+ }
595
+ var o = {
596
+ throw: 1,
597
+ return: 2,
598
+ break: 3,
599
+ continue: 3
600
+ };
601
+ function a(r) {
602
+ var e, t;
603
+ return function (n) {
604
+ e || (e = {
605
+ stop: function () {
606
+ return t(n.a, 2);
607
+ },
608
+ catch: function () {
609
+ return n.v;
610
+ },
611
+ abrupt: function (r, e) {
612
+ return t(n.a, o[r], e);
613
+ },
614
+ delegateYield: function (r, o, a) {
615
+ return e.resultName = o, t(n.d, _regeneratorValues(r), a);
616
+ },
617
+ finish: function (r) {
618
+ return t(n.f, r);
619
+ }
620
+ }, t = function (r, t, o) {
621
+ n.p = e.prev, n.n = e.next;
622
+ try {
623
+ return r(t, o);
624
+ } finally {
625
+ e.next = n.n;
626
+ }
627
+ }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
628
+ try {
629
+ return r.call(this, e);
630
+ } finally {
631
+ n.p = e.prev, n.n = e.next;
632
+ }
633
+ };
634
+ }
635
+ return (_regeneratorRuntime = function () {
636
+ return {
637
+ wrap: function (e, t, n, o) {
638
+ return r.w(a(e), t, n, o && o.reverse());
639
+ },
640
+ isGeneratorFunction: n,
641
+ mark: r.m,
642
+ awrap: function (r, e) {
643
+ return new _OverloadYield(r, e);
644
+ },
645
+ AsyncIterator: _regeneratorAsyncIterator,
646
+ async: function (r, e, t, o, u) {
647
+ return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
648
+ },
649
+ keys: _regeneratorKeys,
650
+ values: _regeneratorValues
651
+ };
652
+ })();
653
+ }
709
654
 
710
655
  /* *
711
656
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -2945,7 +2890,7 @@ var usePostTaf = function usePostTaf() {
2945
2890
  return postTaf(auth, tafData);
2946
2891
  },
2947
2892
  onSuccess: function () {
2948
- var _onSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_data, _ref2) {
2893
+ var _onSuccess = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_data, _ref2) {
2949
2894
  var tafData, isAutoSaved, message;
2950
2895
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2951
2896
  while (1) switch (_context.prev = _context.next) {
@@ -2973,7 +2918,7 @@ var usePostTaf = function usePostTaf() {
2973
2918
  return onSuccess;
2974
2919
  }(),
2975
2920
  onError: function () {
2976
- var _onError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(error, _ref3) {
2921
+ var _onError = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(error, _ref3) {
2977
2922
  var tafData, setError, tafError;
2978
2923
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2979
2924
  while (1) switch (_context2.prev = _context2.next) {
@@ -3020,7 +2965,7 @@ var usePatchTaf = function usePatchTaf() {
3020
2965
  return patchTaf(auth, tafData, force);
3021
2966
  },
3022
2967
  onSuccess: function () {
3023
- var _onSuccess2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
2968
+ var _onSuccess2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
3024
2969
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3025
2970
  while (1) switch (_context3.prev = _context3.next) {
3026
2971
  case 0:
@@ -3040,7 +2985,7 @@ var usePatchTaf = function usePatchTaf() {
3040
2985
  return onSuccess;
3041
2986
  }(),
3042
2987
  onError: function () {
3043
- var _onError2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(error, _ref5) {
2988
+ var _onError2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(error, _ref5) {
3044
2989
  var tafData, setError, newError;
3045
2990
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3046
2991
  while (1) switch (_context4.prev = _context4.next) {
@@ -3097,7 +3042,7 @@ var _excluded$5 = ["cavOK"],
3097
3042
  _excluded7 = ["IS_DRAFT"],
3098
3043
  _excluded8 = ["changeGroups"],
3099
3044
  _excluded9 = ["valid"],
3100
- _excluded10 = ["valid"];
3045
+ _excluded0 = ["valid"];
3101
3046
  var emptyBaseForecast = {
3102
3047
  wind: '',
3103
3048
  visibility: '',
@@ -3475,7 +3420,7 @@ var isTafAmendedCorrectedChanged = function isTafAmendedCorrectedChanged(origina
3475
3420
  originalBaseF.valid;
3476
3421
  var originalNoValid = _objectWithoutPropertiesLoose(originalBaseF, _excluded9);
3477
3422
  currentBaseF.valid;
3478
- var currentNoValid = _objectWithoutPropertiesLoose(currentBaseF, _excluded10);
3423
+ var currentNoValid = _objectWithoutPropertiesLoose(currentBaseF, _excluded0);
3479
3424
  return !isEqual(originalNoValid, currentNoValid) || !isEqual(originalChG, currentChG);
3480
3425
  };
3481
3426
  var getConfirmationDialogContent = function getConfirmationDialogContent(action, isFormDirty, t) {
@@ -4955,7 +4900,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
4955
4900
  }));
4956
4901
  }, [dispatch]);
4957
4902
  var setIsEditor = /*#__PURE__*/function () {
4958
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(checked) {
4903
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(checked) {
4959
4904
  var username, didSucceed;
4960
4905
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4961
4906
  while (1) switch (_context.prev = _context.next) {
@@ -4992,7 +4937,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
4992
4937
  title: t('confirm-dialog-title'),
4993
4938
  description: t('switch-description-viewer'),
4994
4939
  confirmLabel: t('switch-confirm-viewer')
4995
- }).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
4940
+ }).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
4996
4941
  var didSucceed;
4997
4942
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4998
4943
  while (1) switch (_context2.prev = _context2.next) {
@@ -5036,8 +4981,8 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
5036
4981
  case 'CORRECT':
5037
4982
  case 'PUBLISH':
5038
4983
  toggleIsDraft(false);
5039
- void handleSubmit( /*#__PURE__*/function () {
5040
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
4984
+ void handleSubmit(/*#__PURE__*/function () {
4985
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
5041
4986
  var didSucceed;
5042
4987
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
5043
4988
  while (1) switch (_context3.prev = _context3.next) {
@@ -5091,7 +5036,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
5091
5036
  var onTafViewModeButtonPress = function onTafViewModeButtonPress(action) {
5092
5037
  switch (action) {
5093
5038
  case 'CANCEL':
5094
- void showConfirmDialog(action).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
5039
+ void showConfirmDialog(action).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
5095
5040
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
5096
5041
  while (1) switch (_context4.prev = _context4.next) {
5097
5042
  case 0:
@@ -6201,7 +6146,7 @@ var TafPanel = function TafPanel(_ref) {
6201
6146
  t = _useTafTranslation.t;
6202
6147
  var severity = isWarning(error) ? 'warning' : 'error';
6203
6148
  var onTafAction = /*#__PURE__*/function () {
6204
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(action, taf) {
6149
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(action, taf) {
6205
6150
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6206
6151
  while (1) switch (_context.prev = _context.next) {
6207
6152
  case 0:
@@ -6355,7 +6300,7 @@ var TafLayout = function TafLayout(_ref) {
6355
6300
  error = _React$useState6[0],
6356
6301
  setError = _React$useState6[1];
6357
6302
  var postTaf = /*#__PURE__*/function () {
6358
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data, isAutoSaved) {
6303
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data, isAutoSaved) {
6359
6304
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6360
6305
  while (1) switch (_context.prev = _context.next) {
6361
6306
  case 0:
@@ -6379,7 +6324,7 @@ var TafLayout = function TafLayout(_ref) {
6379
6324
  };
6380
6325
  }();
6381
6326
  var updateEditor = /*#__PURE__*/function () {
6382
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data, force) {
6327
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data, force) {
6383
6328
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
6384
6329
  while (1) switch (_context2.prev = _context2.next) {
6385
6330
  case 0:
@@ -6411,7 +6356,7 @@ var TafLayout = function TafLayout(_ref) {
6411
6356
  };
6412
6357
  }();
6413
6358
  var patchTaf = /*#__PURE__*/function () {
6414
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
6359
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
6415
6360
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
6416
6361
  while (1) switch (_context3.prev = _context3.next) {
6417
6362
  case 0:
@@ -6443,7 +6388,7 @@ var TafLayout = function TafLayout(_ref) {
6443
6388
  return _onChangeTab.apply(this, arguments);
6444
6389
  }
6445
6390
  function _onChangeTab() {
6446
- _onChangeTab = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(action, value, isFormDirty) {
6391
+ _onChangeTab = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(action, value, isFormDirty) {
6447
6392
  var taf;
6448
6393
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
6449
6394
  while (1) switch (_context4.prev = _context4.next) {
@@ -6727,7 +6672,7 @@ var TafModule = function TafModule(_ref) {
6727
6672
  fetchNewTafList = _useTafList.refetch;
6728
6673
  var lastUpdateTime = dateUtils.dateToString(new Date(dataUpdatedAt), dateUtils.DATE_FORMAT_HOURS);
6729
6674
  var onUpdateTaf = /*#__PURE__*/function () {
6730
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6675
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6731
6676
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6732
6677
  while (1) switch (_context.prev = _context.next) {
6733
6678
  case 0:
@@ -8054,7 +7999,7 @@ var fakeTafTacJson = {
8054
7999
  };
8055
8000
  var tafEndPoints = [http.get(/^.*\/taflist$/, function () {
8056
8001
  return HttpResponse.json(getFakeUpdatedList());
8057
- }), http.post(/^.*\/taf$/, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8002
+ }), http.post(/^.*\/taf$/, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8058
8003
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8059
8004
  while (1) switch (_context.prev = _context.next) {
8060
8005
  case 0:
@@ -8068,7 +8013,7 @@ var tafEndPoints = [http.get(/^.*\/taflist$/, function () {
8068
8013
  }
8069
8014
  }, _callee);
8070
8015
  }))), http.patch(/^.*\/taf$/, /*#__PURE__*/function () {
8071
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
8016
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
8072
8017
  var request, patchTaf, updatedList;
8073
8018
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
8074
8019
  while (1) switch (_context2.prev = _context2.next) {
@@ -8100,7 +8045,7 @@ var tafEndPoints = [http.get(/^.*\/taflist$/, function () {
8100
8045
  return function (_x) {
8101
8046
  return _ref3.apply(this, arguments);
8102
8047
  };
8103
- }()), http.post(/^.*\/taf2tac$/, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
8048
+ }()), http.post(/^.*\/taf2tac$/, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
8104
8049
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8105
8050
  while (1) switch (_context3.prev = _context3.next) {
8106
8051
  case 0:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "12.10.0",
3
+ "version": "12.11.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,15 +8,15 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "12.10.0",
12
- "@opengeoweb/shared": "12.10.0",
11
+ "@opengeoweb/api": "12.11.0",
12
+ "@opengeoweb/shared": "12.11.0",
13
13
  "react-hook-form": "^7.50.1",
14
- "@opengeoweb/theme": "12.10.0",
15
- "@opengeoweb/form-fields": "12.10.0",
16
- "@opengeoweb/authentication": "12.10.0",
14
+ "@opengeoweb/theme": "12.11.0",
15
+ "@opengeoweb/form-fields": "12.11.0",
16
+ "@opengeoweb/authentication": "12.11.0",
17
17
  "@reduxjs/toolkit": "^2.6.1",
18
18
  "react-redux": "^9.2.0",
19
- "@opengeoweb/snackbar": "12.10.0",
19
+ "@opengeoweb/snackbar": "12.11.0",
20
20
  "react-sortablejs": "^6.1.4",
21
21
  "sortablejs": "^1.15.1",
22
22
  "@emotion/react": "^11.11.1",
@@ -33,6 +33,9 @@
33
33
  "@emotion/react": "*",
34
34
  "@emotion/styled": "*"
35
35
  },
36
+ "devDependencies": {
37
+ "eslint-plugin-storybook": "9.0.17"
38
+ },
36
39
  "module": "./index.esm.js",
37
40
  "type": "module",
38
41
  "main": "./index.esm.js",
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { TafModule } from './components/TafModule';
3
3
  type Story = StoryObj<typeof TafModule>;
4
4
  declare const meta: Meta<typeof TafModule>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { AutoTaf } from './AutoTaf';
3
3
  declare const meta: Meta<typeof AutoTaf>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import IssuesPane from './IssuesPane';
3
3
  declare const meta: Meta<typeof IssuesPane>;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  import { TafFromBackend } from '../../types';
4
4
  interface WrapperProps {
5
5
  tafFromBackend: TafFromBackend;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridProps } from '@mui/material';
3
2
  import { FieldValues } from 'react-hook-form';
4
3
  export interface TafFormRowProps extends GridProps {
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import LocationTabs from './LocationTabs';
3
3
  declare const meta: Meta<typeof LocationTabs>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { AdverseWeatherTACMessage } from './AdverseWeatherTacMessage';
3
3
  declare const meta: Meta<typeof AdverseWeatherTACMessage>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import TacOverview from './TacOverview';
3
3
  declare const meta: Meta<typeof TacOverview>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import TacOverviewMobile from './TacOverviewMobile';
3
3
  declare const meta: Meta<typeof TacOverviewMobile>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import TafLayout from './TafLayout';
3
3
  declare const meta: Meta<typeof TafLayout>;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
3
3
  import TafPanel from './TafPanel';
4
4
  declare const meta: Meta<typeof TafPanel>;
5
5
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import TopTabs from './TopTabs';
3
3
  declare const meta: Meta<typeof TopTabs>;
4
4
  export default meta;
@@ -17,7 +17,7 @@ interface TafTimeSlots {
17
17
  export declare const sortTafTimeSlots: (tafList: TafFromBackend[]) => TafTimeSlots;
18
18
  export declare const muiTabA11yProps: (index: number) => {
19
19
  id: string;
20
- 'aria-controls': string;
20
+ "aria-controls": string;
21
21
  };
22
22
  export declare const getNewTafLocationIndex: (tafLocations: TafFromBackend[], previousTafLocationUUID: string) => number;
23
23
  export declare const getPreviousTaf: (tafList: TafFromBackend[], currentTaf: TafFromBackend) => Taf;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import TafModule from './TafModule';
3
3
  declare const meta: Meta<typeof TafModule>;
4
4
  export default meta;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
3
2
  import { TAC, Taf, TafFromBackend, TafFromFrontEnd } from '../../types';
4
3
  import { TafError } from '../../components/TafLayout/utils';