@dxos/shell 0.8.2-main.85fa0e5 → 0.8.2-main.f11618f

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.
@@ -564,7 +564,7 @@ function _objectSpread$7(te) {
564
564
  }
565
565
  return te;
566
566
  }
567
- var usePrevious$2 = function(J, ne) {
567
+ var usePrevious$1 = function(J, ne) {
568
568
  var re = useRef();
569
569
  return useEffect(function() {
570
570
  re.current = J;
@@ -588,7 +588,7 @@ function useTranslation$1(te) {
588
588
  function ge() {
589
589
  return le.getFixedT(null, ue.nsMode === "fallback" ? he : he[0], pe);
590
590
  }
591
- var be = useState(ge), _e = _slicedToArray(be, 2), we = _e[0], Ee = _e[1], Se = he.join(), Ce = usePrevious$2(Se), Ae = useRef(!0);
591
+ var be = useState(ge), _e = _slicedToArray(be, 2), we = _e[0], Ee = _e[1], Se = he.join(), Ce = usePrevious$1(Se), Ae = useRef(!0);
592
592
  useEffect(function() {
593
593
  var je = ue.bindI18n, Me = ue.bindI18nStore;
594
594
  Ae.current = !0, !me && !de && loadNamespaces(le, he, function() {
@@ -11054,24 +11054,7 @@ function cloneNode(te, J) {
11054
11054
  }
11055
11055
  return ne;
11056
11056
  }
11057
- function sourceOffset(te, J) {
11058
- if (J && typeof J.offset < "u")
11059
- return J.offset;
11060
- let ne = 1, re = 1, ae = 0;
11061
- for (let oe = 0; oe < te.length; oe++) {
11062
- if (re === J.line && ne === J.column) {
11063
- ae = oe;
11064
- break;
11065
- }
11066
- te[oe] === `
11067
- ` ? (ne = 1, re += 1) : ne += 1;
11068
- }
11069
- return ae;
11070
- }
11071
11057
  let Node$5 = class {
11072
- get proxyOf() {
11073
- return this;
11074
- }
11075
11058
  constructor(J = {}) {
11076
11059
  this.raws = {}, this[isClean$2] = !1, this[my$2] = !0;
11077
11060
  for (let ne in J)
@@ -11160,25 +11143,23 @@ let Node$5 = class {
11160
11143
  let J = this.parent.index(this);
11161
11144
  return this.parent.nodes[J + 1];
11162
11145
  }
11163
- positionBy(J) {
11164
- let ne = this.source.start;
11146
+ positionBy(J, ne) {
11147
+ let re = this.source.start;
11165
11148
  if (J.index)
11166
- ne = this.positionInside(J.index);
11149
+ re = this.positionInside(J.index, ne);
11167
11150
  else if (J.word) {
11168
- let re = "document" in this.source.input ? this.source.input.document : this.source.input.css, oe = re.slice(
11169
- sourceOffset(re, this.source.start),
11170
- sourceOffset(re, this.source.end)
11171
- ).indexOf(J.word);
11172
- oe !== -1 && (ne = this.positionInside(oe));
11151
+ ne = this.toString();
11152
+ let ae = ne.indexOf(J.word);
11153
+ ae !== -1 && (re = this.positionInside(ae, ne));
11173
11154
  }
11174
- return ne;
11155
+ return re;
11175
11156
  }
11176
- positionInside(J) {
11177
- let ne = this.source.start.column, re = this.source.start.line, ae = "document" in this.source.input ? this.source.input.document : this.source.input.css, oe = sourceOffset(ae, this.source.start), le = oe + J;
11178
- for (let fe = oe; fe < le; fe++)
11179
- ae[fe] === `
11180
- ` ? (ne = 1, re += 1) : ne += 1;
11181
- return { column: ne, line: re };
11157
+ positionInside(J, ne) {
11158
+ let re = ne || this.toString(), ae = this.source.start.column, oe = this.source.start.line;
11159
+ for (let le = 0; le < J; le++)
11160
+ re[le] === `
11161
+ ` ? (ae = 1, oe += 1) : ae += 1;
11162
+ return { column: ae, line: oe };
11182
11163
  }
11183
11164
  prev() {
11184
11165
  if (!this.parent) return;
@@ -11197,12 +11178,10 @@ let Node$5 = class {
11197
11178
  line: ne.line
11198
11179
  };
11199
11180
  if (J.word) {
11200
- let ae = "document" in this.source.input ? this.source.input.document : this.source.input.css, le = ae.slice(
11201
- sourceOffset(ae, this.source.start),
11202
- sourceOffset(ae, this.source.end)
11203
- ).indexOf(J.word);
11204
- le !== -1 && (ne = this.positionInside(le), re = this.positionInside(
11205
- le + J.word.length
11181
+ let ae = this.toString(), oe = ae.indexOf(J.word);
11182
+ oe !== -1 && (ne = this.positionInside(oe, ae), re = this.positionInside(
11183
+ oe + J.word.length,
11184
+ ae
11206
11185
  ));
11207
11186
  } else
11208
11187
  J.start ? ne = {
@@ -11273,6 +11252,9 @@ let Node$5 = class {
11273
11252
  for (let oe in re) ae[oe] = re[oe];
11274
11253
  return J.warn(ne, ae);
11275
11254
  }
11255
+ get proxyOf() {
11256
+ return this;
11257
+ }
11276
11258
  };
11277
11259
  var node = Node$5;
11278
11260
  Node$5.default = Node$5;
@@ -11284,12 +11266,12 @@ let Node$4 = node, Comment$4 = class extends Node$4 {
11284
11266
  var comment = Comment$4;
11285
11267
  Comment$4.default = Comment$4;
11286
11268
  let Node$3 = node, Declaration$4 = class extends Node$3 {
11287
- get variable() {
11288
- return this.prop.startsWith("--") || this.prop[0] === "$";
11289
- }
11290
11269
  constructor(J) {
11291
11270
  J && typeof J.value < "u" && typeof J.value != "string" && (J = { ...J, value: String(J.value) }), super(J), this.type = "decl";
11292
11271
  }
11272
+ get variable() {
11273
+ return this.prop.startsWith("--") || this.prop[0] === "$";
11274
+ }
11293
11275
  };
11294
11276
  var declaration = Declaration$4;
11295
11277
  Declaration$4.default = Declaration$4;
@@ -11303,14 +11285,6 @@ function markTreeDirty(te) {
11303
11285
  markTreeDirty(J);
11304
11286
  }
11305
11287
  let Container$7 = class or extends Node$2 {
11306
- get first() {
11307
- if (this.proxyOf.nodes)
11308
- return this.proxyOf.nodes[0];
11309
- }
11310
- get last() {
11311
- if (this.proxyOf.nodes)
11312
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
11313
- }
11314
11288
  append(...J) {
11315
11289
  for (let ne of J) {
11316
11290
  let re = this.normalize(ne, this.last);
@@ -11490,6 +11464,14 @@ let Container$7 = class or extends Node$2 {
11490
11464
  return ne(re, ae);
11491
11465
  }));
11492
11466
  }
11467
+ get first() {
11468
+ if (this.proxyOf.nodes)
11469
+ return this.proxyOf.nodes[0];
11470
+ }
11471
+ get last() {
11472
+ if (this.proxyOf.nodes)
11473
+ return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
11474
+ }
11493
11475
  };
11494
11476
  Container$7.registerParse = (te) => {
11495
11477
  parse$7 = te;
@@ -11541,12 +11523,12 @@ Document$4.registerProcessor = (te) => {
11541
11523
  var document$1 = Document$4;
11542
11524
  Document$4.default = Document$4;
11543
11525
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", customAlphabet = (te, J = 21) => (ne = J) => {
11544
- let re = "", ae = ne | 0;
11526
+ let re = "", ae = ne;
11545
11527
  for (; ae--; )
11546
11528
  re += te[Math.random() * te.length | 0];
11547
11529
  return re;
11548
11530
  }, nanoid$1 = (te = 21) => {
11549
- let J = "", ne = te | 0;
11531
+ let J = "", ne = te;
11550
11532
  for (; ne--; )
11551
11533
  J += urlAlphabet[Math.random() * 64 | 0];
11552
11534
  return J;
@@ -11637,13 +11619,10 @@ let PreviousMap$2 = class {
11637
11619
  var previousMap = PreviousMap$2;
11638
11620
  PreviousMap$2.default = PreviousMap$2;
11639
11621
  let { nanoid } = nonSecure, { isAbsolute, resolve: resolve$1 } = require$$3, { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } = require$$3, { fileURLToPath, pathToFileURL: pathToFileURL$1 } = require$$3, CssSyntaxError$1 = cssSyntaxError, PreviousMap$1 = previousMap, terminalHighlight = require$$3, fromOffsetCache = Symbol("fromOffsetCache"), sourceMapAvailable$1 = !!(SourceMapConsumer$1 && SourceMapGenerator$1), pathAvailable$1 = !!(resolve$1 && isAbsolute), Input$7 = class {
11640
- get from() {
11641
- return this.file || this.id;
11642
- }
11643
11622
  constructor(J, ne = {}) {
11644
11623
  if (J === null || typeof J > "u" || typeof J == "object" && !J.toString)
11645
11624
  throw new Error(`PostCSS received ${J} instead of CSS string`);
11646
- if (this.css = J.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, ne.document && (this.document = ne.document.toString()), ne.from && (!pathAvailable$1 || /^\w+:\/\//.test(ne.from) || isAbsolute(ne.from) ? this.file = ne.from : this.file = resolve$1(ne.from)), pathAvailable$1 && sourceMapAvailable$1) {
11625
+ if (this.css = J.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, ne.from && (!pathAvailable$1 || /^\w+:\/\//.test(ne.from) || isAbsolute(ne.from) ? this.file = ne.from : this.file = resolve$1(ne.from)), pathAvailable$1 && sourceMapAvailable$1) {
11647
11626
  let re = new PreviousMap$1(this.css, ne);
11648
11627
  if (re.text) {
11649
11628
  this.map = re;
@@ -11757,6 +11736,9 @@ let { nanoid } = nonSecure, { isAbsolute, resolve: resolve$1 } = require$$3, { S
11757
11736
  this[ne] != null && (J[ne] = this[ne]);
11758
11737
  return this.map && (J.map = { ...this.map }, J.map.consumerCache && (J.map.consumerCache = void 0)), J;
11759
11738
  }
11739
+ get from() {
11740
+ return this.file || this.id;
11741
+ }
11760
11742
  };
11761
11743
  var input = Input$7;
11762
11744
  Input$7.default = Input$7;
@@ -11812,6 +11794,9 @@ let list$2 = {
11812
11794
  var list_1 = list$2;
11813
11795
  list$2.default = list$2;
11814
11796
  let Container$3 = container, list$1 = list_1, Rule$3 = class extends Container$3 {
11797
+ constructor(J) {
11798
+ super(J), this.type = "rule", this.nodes || (this.nodes = []);
11799
+ }
11815
11800
  get selectors() {
11816
11801
  return list$1.comma(this.selector);
11817
11802
  }
@@ -11819,9 +11804,6 @@ let Container$3 = container, list$1 = list_1, Rule$3 = class extends Container$3
11819
11804
  let ne = this.selector ? this.selector.match(/,\s*/) : null, re = ne ? ne[0] : "," + this.raw("between", "beforeOpen");
11820
11805
  this.selector = J.join(re);
11821
11806
  }
11822
- constructor(J) {
11823
- super(J), this.type = "rule", this.nodes || (this.nodes = []);
11824
- }
11825
11807
  };
11826
11808
  var rule = Rule$3;
11827
11809
  Rule$3.default = Rule$3;
@@ -12278,7 +12260,7 @@ let Parser$1 = class {
12278
12260
  freeSemicolon(J) {
12279
12261
  if (this.spaces += J[1], this.current.nodes) {
12280
12262
  let ne = this.current.nodes[this.current.nodes.length - 1];
12281
- ne && ne.type === "rule" && !ne.raws.ownSemicolon && (ne.raws.ownSemicolon = this.spaces, this.spaces = "", ne.source.end = this.getPosition(J[2]), ne.source.end.offset += ne.raws.ownSemicolon.length);
12263
+ ne && ne.type === "rule" && !ne.raws.ownSemicolon && (ne.raws.ownSemicolon = this.spaces, this.spaces = "");
12282
12264
  }
12283
12265
  }
12284
12266
  // Helpers
@@ -12418,7 +12400,7 @@ let Parser$1 = class {
12418
12400
  }
12419
12401
  unknownWord(J) {
12420
12402
  throw this.input.error(
12421
- "Unknown word " + J[0][1],
12403
+ "Unknown word",
12422
12404
  { offset: J[0][2] },
12423
12405
  { offset: J[0][2] + J[0][1].length }
12424
12406
  );
@@ -12467,9 +12449,6 @@ let Warning$2 = class {
12467
12449
  var warning = Warning$2;
12468
12450
  Warning$2.default = Warning$2;
12469
12451
  let Warning$1 = warning, Result$3 = class {
12470
- get content() {
12471
- return this.css;
12472
- }
12473
12452
  constructor(J, ne, re) {
12474
12453
  this.processor = J, this.messages = [], this.root = ne, this.opts = re, this.css = void 0, this.map = void 0;
12475
12454
  }
@@ -12484,6 +12463,9 @@ let Warning$1 = warning, Result$3 = class {
12484
12463
  warnings() {
12485
12464
  return this.messages.filter((J) => J.type === "warning");
12486
12465
  }
12466
+ get content() {
12467
+ return this.css;
12468
+ }
12487
12469
  };
12488
12470
  var result = Result$3;
12489
12471
  Result$3.default = Result$3;
@@ -12549,30 +12531,6 @@ function cleanMarks(te) {
12549
12531
  return te[isClean] = !1, te.nodes && te.nodes.forEach((J) => cleanMarks(J)), te;
12550
12532
  }
12551
12533
  let postcss$2 = {}, LazyResult$2 = class sr {
12552
- get content() {
12553
- return this.stringify().content;
12554
- }
12555
- get css() {
12556
- return this.stringify().css;
12557
- }
12558
- get map() {
12559
- return this.stringify().map;
12560
- }
12561
- get messages() {
12562
- return this.sync().messages;
12563
- }
12564
- get opts() {
12565
- return this.result.opts;
12566
- }
12567
- get processor() {
12568
- return this.result.processor;
12569
- }
12570
- get root() {
12571
- return this.sync().root;
12572
- }
12573
- get [Symbol.toStringTag]() {
12574
- return "LazyResult";
12575
- }
12576
12534
  constructor(J, ne, re) {
12577
12535
  this.stringified = !1, this.processed = !1;
12578
12536
  let ae;
@@ -12815,28 +12773,17 @@ let postcss$2 = {}, LazyResult$2 = class sr {
12815
12773
  warnings() {
12816
12774
  return this.sync().warnings();
12817
12775
  }
12818
- };
12819
- LazyResult$2.registerPostcss = (te) => {
12820
- postcss$2 = te;
12821
- };
12822
- var lazyResult = LazyResult$2;
12823
- LazyResult$2.default = LazyResult$2;
12824
- Root$d.registerLazyResult(LazyResult$2);
12825
- Document$3.registerLazyResult(LazyResult$2);
12826
- let MapGenerator = mapGenerator, parse$4 = parse_1$1;
12827
- const Result$1 = result;
12828
- let stringify$1 = stringify_1, warnOnce = warnOnce$2, NoWorkResult$1 = class {
12829
12776
  get content() {
12830
- return this.result.css;
12777
+ return this.stringify().content;
12831
12778
  }
12832
12779
  get css() {
12833
- return this.result.css;
12780
+ return this.stringify().css;
12834
12781
  }
12835
12782
  get map() {
12836
- return this.result.map;
12783
+ return this.stringify().map;
12837
12784
  }
12838
12785
  get messages() {
12839
- return [];
12786
+ return this.sync().messages;
12840
12787
  }
12841
12788
  get opts() {
12842
12789
  return this.result.opts;
@@ -12845,21 +12792,22 @@ let stringify$1 = stringify_1, warnOnce = warnOnce$2, NoWorkResult$1 = class {
12845
12792
  return this.result.processor;
12846
12793
  }
12847
12794
  get root() {
12848
- if (this._root)
12849
- return this._root;
12850
- let J, ne = parse$4;
12851
- try {
12852
- J = ne(this._css, this._opts);
12853
- } catch (re) {
12854
- this.error = re;
12855
- }
12856
- if (this.error)
12857
- throw this.error;
12858
- return this._root = J, J;
12795
+ return this.sync().root;
12859
12796
  }
12860
12797
  get [Symbol.toStringTag]() {
12861
- return "NoWorkResult";
12798
+ return "LazyResult";
12862
12799
  }
12800
+ };
12801
+ LazyResult$2.registerPostcss = (te) => {
12802
+ postcss$2 = te;
12803
+ };
12804
+ var lazyResult = LazyResult$2;
12805
+ LazyResult$2.default = LazyResult$2;
12806
+ Root$d.registerLazyResult(LazyResult$2);
12807
+ Document$3.registerLazyResult(LazyResult$2);
12808
+ let MapGenerator = mapGenerator, parse$4 = parse_1$1;
12809
+ const Result$1 = result;
12810
+ let stringify$1 = stringify_1, warnOnce = warnOnce$2, NoWorkResult$1 = class {
12863
12811
  constructor(J, ne, re) {
12864
12812
  ne = ne.toString(), this.stringified = !1, this._processor = J, this._css = ne, this._opts = re, this._map = void 0;
12865
12813
  let ae, oe = stringify$1;
@@ -12901,12 +12849,46 @@ let stringify$1 = stringify_1, warnOnce = warnOnce$2, NoWorkResult$1 = class {
12901
12849
  warnings() {
12902
12850
  return [];
12903
12851
  }
12852
+ get content() {
12853
+ return this.result.css;
12854
+ }
12855
+ get css() {
12856
+ return this.result.css;
12857
+ }
12858
+ get map() {
12859
+ return this.result.map;
12860
+ }
12861
+ get messages() {
12862
+ return [];
12863
+ }
12864
+ get opts() {
12865
+ return this.result.opts;
12866
+ }
12867
+ get processor() {
12868
+ return this.result.processor;
12869
+ }
12870
+ get root() {
12871
+ if (this._root)
12872
+ return this._root;
12873
+ let J, ne = parse$4;
12874
+ try {
12875
+ J = ne(this._css, this._opts);
12876
+ } catch (re) {
12877
+ this.error = re;
12878
+ }
12879
+ if (this.error)
12880
+ throw this.error;
12881
+ return this._root = J, J;
12882
+ }
12883
+ get [Symbol.toStringTag]() {
12884
+ return "NoWorkResult";
12885
+ }
12904
12886
  };
12905
12887
  var noWorkResult = NoWorkResult$1;
12906
12888
  NoWorkResult$1.default = NoWorkResult$1;
12907
12889
  let Document$2 = document$1, LazyResult$1 = lazyResult, NoWorkResult = noWorkResult, Root$c = root$2, Processor$1 = class {
12908
12890
  constructor(J = []) {
12909
- this.version = "8.5.3", this.plugins = this.normalize(J);
12891
+ this.version = "8.4.47", this.plugins = this.normalize(J);
12910
12892
  }
12911
12893
  normalize(J) {
12912
12894
  let ne = [];
@@ -23625,16 +23607,16 @@ function createFocusGuard() {
23625
23607
  const te = document.createElement("span");
23626
23608
  return te.setAttribute("data-radix-focus-guard", ""), te.tabIndex = 0, te.style.outline = "none", te.style.opacity = "0", te.style.position = "fixed", te.style.pointerEvents = "none", te;
23627
23609
  }
23628
- var __assign$2 = function() {
23629
- return __assign$2 = Object.assign || function(J) {
23610
+ var __assign$3 = function() {
23611
+ return __assign$3 = Object.assign || function(J) {
23630
23612
  for (var ne, re = 1, ae = arguments.length; re < ae; re++) {
23631
23613
  ne = arguments[re];
23632
23614
  for (var oe in ne) Object.prototype.hasOwnProperty.call(ne, oe) && (J[oe] = ne[oe]);
23633
23615
  }
23634
23616
  return J;
23635
- }, __assign$2.apply(this, arguments);
23617
+ }, __assign$3.apply(this, arguments);
23636
23618
  };
23637
- function __rest$2(te, J) {
23619
+ function __rest$3(te, J) {
23638
23620
  var ne = {};
23639
23621
  for (var re in te) Object.prototype.hasOwnProperty.call(te, re) && J.indexOf(re) < 0 && (ne[re] = te[re]);
23640
23622
  if (te != null && typeof Object.getOwnPropertySymbols == "function")
@@ -23642,7 +23624,7 @@ function __rest$2(te, J) {
23642
23624
  J.indexOf(re[ae]) < 0 && Object.prototype.propertyIsEnumerable.call(te, re[ae]) && (ne[re[ae]] = te[re[ae]]);
23643
23625
  return ne;
23644
23626
  }
23645
- function __spreadArray$2(te, J, ne) {
23627
+ function __spreadArray$3(te, J, ne) {
23646
23628
  if (ne || arguments.length === 2) for (var re = 0, ae = J.length, oe; re < ae; re++)
23647
23629
  (oe || !(re in J)) && (oe || (oe = Array.prototype.slice.call(J, 0, re)), oe[re] = J[re]);
23648
23630
  return te.concat(oe || Array.prototype.slice.call(J));
@@ -23754,16 +23736,16 @@ function innerCreateMedium$1(te, J) {
23754
23736
  function createSidecarMedium$1(te) {
23755
23737
  te === void 0 && (te = {});
23756
23738
  var J = innerCreateMedium$1(null);
23757
- return J.options = __assign$2({ async: !0, ssr: !1 }, te), J;
23739
+ return J.options = __assign$3({ async: !0, ssr: !1 }, te), J;
23758
23740
  }
23759
23741
  var SideCar$3 = function(te) {
23760
- var J = te.sideCar, ne = __rest$2(te, ["sideCar"]);
23742
+ var J = te.sideCar, ne = __rest$3(te, ["sideCar"]);
23761
23743
  if (!J)
23762
23744
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
23763
23745
  var re = J.read();
23764
23746
  if (!re)
23765
23747
  throw new Error("Sidecar medium not found");
23766
- return React.createElement(re, __assign$2({}, ne));
23748
+ return React.createElement(re, __assign$3({}, ne));
23767
23749
  };
23768
23750
  SideCar$3.isSideCarExport = !0;
23769
23751
  function exportSidecar$1(te, J) {
@@ -23775,12 +23757,12 @@ var effectCar$1 = createSidecarMedium$1(), nothing$1 = function() {
23775
23757
  onScrollCapture: nothing$1,
23776
23758
  onWheelCapture: nothing$1,
23777
23759
  onTouchMoveCapture: nothing$1
23778
- }), ae = re[0], oe = re[1], le = te.forwardProps, fe = te.children, ce = te.className, ue = te.removeScrollBar, de = te.enabled, pe = te.shards, he = te.sideCar, me = te.noIsolation, ge = te.inert, be = te.allowPinchZoom, _e = te.as, we = _e === void 0 ? "div" : _e, Ee = te.gapMode, Se = __rest$2(te, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), Ce = he, Ae = useMergeRefs$1([ne, J]), Te = __assign$2(__assign$2({}, Se), ae);
23760
+ }), ae = re[0], oe = re[1], le = te.forwardProps, fe = te.children, ce = te.className, ue = te.removeScrollBar, de = te.enabled, pe = te.shards, he = te.sideCar, me = te.noIsolation, ge = te.inert, be = te.allowPinchZoom, _e = te.as, we = _e === void 0 ? "div" : _e, Ee = te.gapMode, Se = __rest$3(te, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), Ce = he, Ae = useMergeRefs$1([ne, J]), Te = __assign$3(__assign$3({}, Se), ae);
23779
23761
  return React.createElement(
23780
23762
  React.Fragment,
23781
23763
  null,
23782
23764
  de && React.createElement(Ce, { sideCar: effectCar$1, removeScrollBar: ue, shards: pe, noIsolation: me, inert: ge, setCallbacks: oe, allowPinchZoom: !!be, lockRef: ne, gapMode: Ee }),
23783
- le ? React.cloneElement(React.Children.only(fe), __assign$2(__assign$2({}, Te), { ref: Ae })) : React.createElement(we, __assign$2({}, Te, { className: ce, ref: Ae }), fe)
23765
+ le ? React.cloneElement(React.Children.only(fe), __assign$3(__assign$3({}, Te), { ref: Ae })) : React.createElement(we, __assign$3({}, Te, { className: ce, ref: Ae }), fe)
23784
23766
  );
23785
23767
  });
23786
23768
  RemoveScroll$1.defaultProps = {
@@ -24009,7 +23991,7 @@ function RemoveScrollSideCar$1(te) {
24009
23991
  }, [te]), React.useEffect(function() {
24010
23992
  if (te.inert) {
24011
23993
  document.body.classList.add("block-interactivity-".concat(ae));
24012
- var be = __spreadArray$2([te.lockRef.current], (te.shards || []).map(extractRef$1), !0).filter(Boolean);
23994
+ var be = __spreadArray$3([te.lockRef.current], (te.shards || []).map(extractRef$1), !0).filter(Boolean);
24013
23995
  return be.forEach(function(_e) {
24014
23996
  return _e.classList.add("allow-interactivity-".concat(ae));
24015
23997
  }), function() {
@@ -24091,7 +24073,7 @@ function getOutermostShadowParent$1(te) {
24091
24073
  }
24092
24074
  const SideCar$2 = exportSidecar$1(effectCar$1, RemoveScrollSideCar$1);
24093
24075
  var ReactRemoveScroll$1 = React.forwardRef(function(te, J) {
24094
- return React.createElement(RemoveScroll$1, __assign$2({}, te, { ref: J, sideCar: SideCar$2 }));
24076
+ return React.createElement(RemoveScroll$1, __assign$3({}, te, { ref: J, sideCar: SideCar$2 }));
24095
24077
  });
24096
24078
  ReactRemoveScroll$1.classNames = RemoveScroll$1.classNames;
24097
24079
  var getDefaultParent = function(te) {
@@ -24466,7 +24448,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
24466
24448
  ) || console.warn(J);
24467
24449
  }, [J, te]), null;
24468
24450
  }, Root2 = AlertDialog$1;
24469
- function usePrevious$1(te) {
24451
+ function usePrevious(te) {
24470
24452
  const J = React.useRef({ value: te, previous: te });
24471
24453
  return React.useMemo(() => (J.current.value !== te && (J.current.previous = J.current.value, J.current.value = te), J.current.previous), [te]);
24472
24454
  }
@@ -24552,7 +24534,7 @@ var INDICATOR_NAME$1 = "CheckboxIndicator", CheckboxIndicator = React.forwardRef
24552
24534
  );
24553
24535
  CheckboxIndicator.displayName = INDICATOR_NAME$1;
24554
24536
  var BubbleInput = (te) => {
24555
- const { control: J, checked: ne, bubbles: re = !0, defaultChecked: ae, ...oe } = te, le = React.useRef(null), fe = usePrevious$1(ne), ce = useSize(J);
24537
+ const { control: J, checked: ne, bubbles: re = !0, defaultChecked: ae, ...oe } = te, le = React.useRef(null), fe = usePrevious(ne), ce = useSize(J);
24556
24538
  React.useEffect(() => {
24557
24539
  const de = le.current, pe = window.HTMLInputElement.prototype, me = Object.getOwnPropertyDescriptor(pe, "checked").set;
24558
24540
  if (fe !== ne && me) {
@@ -24602,7 +24584,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24602
24584
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24603
24585
  PERFORMANCE OF THIS SOFTWARE.
24604
24586
  ***************************************************************************** */
24605
- function __spreadArray$1(te, J, ne) {
24587
+ function __spreadArray$2(te, J, ne) {
24606
24588
  if (arguments.length === 2) for (var re = 0, ae = J.length, oe; re < ae; re++)
24607
24589
  (oe || !(re in J)) && (oe || (oe = Array.prototype.slice.call(J, 0, re)), oe[re] = J[re]);
24608
24590
  return te.concat(oe || Array.prototype.slice.call(J));
@@ -24625,7 +24607,7 @@ var transform = function(te) {
24625
24607
  var ce = le.selectionDirection, ue = le.value, de = getSelectionState(le), pe = function(he) {
24626
24608
  eq(he, fe) && (eq(he, ZERO) || eq(he, getSelectionState(le))) || (ne.current = he, re(function(me) {
24627
24609
  return eq(me, he) ? me : he;
24628
- }), le.setSelectionRange.apply(le, __spreadArray$1(__spreadArray$1([], he, !1), [ce || void 0], !1)));
24610
+ }), le.setSelectionRange.apply(le, __spreadArray$2(__spreadArray$2([], he, !1), [ce || void 0], !1)));
24629
24611
  };
24630
24612
  if (oe === "selectionchange" && document.activeElement !== le)
24631
24613
  return pe([ue.length, ue.length]);
@@ -25273,9 +25255,7 @@ const TABSTER_ATTRIBUTE_NAME = "data-tabster", TABSTER_DUMMY_INPUT_ATTRIBUTE_NAM
25273
25255
  Deloser: 3
25274
25256
  }, SysDummyInputsPositions = {
25275
25257
  Auto: 0,
25276
- // Tabster will place dummy inputs depending on the container tag name and on the default behaviour.
25277
25258
  Inside: 1,
25278
- // Tabster will always place dummy inputs inside the container.
25279
25259
  Outside: 2
25280
25260
  // Tabster will always place dummy inputs outside of the container.
25281
25261
  };
@@ -25542,6 +25522,7 @@ function createElementTreeWalker(te, J, ne) {
25542
25522
  J,
25543
25523
  NodeFilter.SHOW_ELEMENT,
25544
25524
  re,
25525
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
25545
25526
  // @ts-ignore: We still don't want to completely break IE11, so, entityReferenceExpansion argument is not optional.
25546
25527
  !1
25547
25528
  /* Last argument is not optional for IE11! */
@@ -26407,6 +26388,7 @@ const Keys = {
26407
26388
  Tab: "Tab",
26408
26389
  Enter: "Enter",
26409
26390
  Escape: "Escape",
26391
+ Space: " ",
26410
26392
  PageUp: "PageUp",
26411
26393
  PageDown: "PageDown",
26412
26394
  End: "End",
@@ -26768,7 +26750,7 @@ class Tabster {
26768
26750
  class TabsterCore {
26769
26751
  constructor(J, ne) {
26770
26752
  var re, ae;
26771
- this._forgetMemorizedElements = [], this._wrappers = /* @__PURE__ */ new Set(), this._initQueue = [], this._version = "8.5.5", this._noop = !1, this.getWindow = () => {
26753
+ this._forgetMemorizedElements = [], this._wrappers = /* @__PURE__ */ new Set(), this._initQueue = [], this._version = "8.5.2", this._noop = !1, this.getWindow = () => {
26772
26754
  if (!this._win)
26773
26755
  throw new Error("Using disposed Tabster.");
26774
26756
  return this._win;
@@ -26867,14 +26849,7 @@ function canUseDOM() {
26867
26849
  window.document.createElement)
26868
26850
  );
26869
26851
  }
26870
- const useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect, usePrevious = (te) => {
26871
- const J = React.useRef(null);
26872
- return React.useEffect(() => {
26873
- J.current = te;
26874
- }, [
26875
- te
26876
- ]), J.current;
26877
- };
26852
+ const useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
26878
26853
  function isVirtualElement(te) {
26879
26854
  return te && !!te._virtual;
26880
26855
  }
@@ -26892,71 +26867,44 @@ function getParent(te, J = {}) {
26892
26867
  const ne = te.parentNode;
26893
26868
  return ne && ne.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? ne.host : ne;
26894
26869
  }
26895
- const DEFAULT_FACTORY = (te) => te;
26896
- function createTabsterWithConfig(te) {
26897
- const J = (te == null ? void 0 : te.defaultView) || void 0, ne = J == null ? void 0 : J.__tabsterShadowDOMAPI;
26898
- if (J)
26899
- return createTabster(J, {
26900
- autoRoot: {},
26901
- controlTab: !1,
26902
- getParent,
26903
- checkUncontrolledTrappingFocus: (re) => {
26904
- var ae;
26905
- return !!(!((ae = re.firstElementChild) === null || ae === void 0) && ae.hasAttribute("data-is-focus-trap-zone-bumper"));
26906
- },
26907
- DOMAPI: ne
26908
- });
26909
- }
26910
- function useTabster(te = DEFAULT_FACTORY) {
26911
- const { targetDocument: J } = useFluent(), ne = React.useRef(null);
26912
- if (useIsomorphicLayoutEffect(() => {
26913
- const re = createTabsterWithConfig(J);
26914
- if (re)
26915
- return ne.current = te(re), () => {
26916
- disposeTabster(re), ne.current = null;
26917
- };
26918
- }, [
26870
+ const useTabster = () => {
26871
+ const { targetDocument: te } = useFluent(), J = (te == null ? void 0 : te.defaultView) || void 0, ne = J == null ? void 0 : J.__tabsterShadowDOMAPI, re = React.useMemo(() => J ? createTabster(J, {
26872
+ autoRoot: {},
26873
+ controlTab: !1,
26874
+ getParent,
26875
+ checkUncontrolledTrappingFocus: (ae) => {
26876
+ var oe;
26877
+ return !!(!((oe = ae.firstElementChild) === null || oe === void 0) && oe.hasAttribute("data-is-focus-trap-zone-bumper"));
26878
+ },
26879
+ DOMAPI: ne
26880
+ }) : null, [
26919
26881
  J,
26920
- te
26921
- ]), process.env.NODE_ENV !== "production") {
26922
- const re = usePrevious(te);
26923
- if (re !== null && re !== te)
26924
- throw new Error([
26925
- "@fluentui/react-tabster: ",
26926
- "The factory function passed to useTabster has changed. This should not ever happen."
26927
- ].join(`
26928
- `));
26929
- }
26930
- return ne;
26931
- }
26932
- const useFocusFinders = () => {
26933
- const te = useTabster(), { targetDocument: J } = useFluent(), ne = React.useCallback((fe, ce) => {
26934
- var ue;
26935
- return ((ue = te.current) === null || ue === void 0 ? void 0 : ue.focusable.findAll({
26936
- container: fe,
26937
- acceptCondition: ce
26938
- })) || [];
26882
+ ne
26883
+ ]);
26884
+ return useIsomorphicLayoutEffect(() => () => {
26885
+ re && disposeTabster(re);
26939
26886
  }, [
26887
+ re
26888
+ ]), re;
26889
+ }, useFocusFinders = () => {
26890
+ const te = useTabster(), { targetDocument: J } = useFluent(), ne = React.useCallback((fe, ce) => (te == null ? void 0 : te.focusable.findAll({
26891
+ container: fe,
26892
+ acceptCondition: ce
26893
+ })) || [], [
26940
26894
  te
26941
- ]), re = React.useCallback((fe) => {
26942
- var ce;
26943
- return (ce = te.current) === null || ce === void 0 ? void 0 : ce.focusable.findFirst({
26944
- container: fe
26945
- });
26946
- }, [
26895
+ ]), re = React.useCallback((fe) => te == null ? void 0 : te.focusable.findFirst({
26896
+ container: fe
26897
+ }), [
26947
26898
  te
26948
- ]), ae = React.useCallback((fe) => {
26949
- var ce;
26950
- return (ce = te.current) === null || ce === void 0 ? void 0 : ce.focusable.findLast({
26951
- container: fe
26952
- });
26953
- }, [
26899
+ ]), ae = React.useCallback((fe) => te == null ? void 0 : te.focusable.findLast({
26900
+ container: fe
26901
+ }), [
26954
26902
  te
26955
26903
  ]), oe = React.useCallback((fe, ce = {}) => {
26956
- if (!te.current || !J)
26904
+ if (!te || !J)
26957
26905
  return null;
26958
26906
  const { container: ue = J.body } = ce;
26959
- return te.current.focusable.findNext({
26907
+ return te.focusable.findNext({
26960
26908
  currentElement: fe,
26961
26909
  container: ue
26962
26910
  });
@@ -26964,10 +26912,10 @@ const useFocusFinders = () => {
26964
26912
  te,
26965
26913
  J
26966
26914
  ]), le = React.useCallback((fe, ce = {}) => {
26967
- if (!te.current || !J)
26915
+ if (!te || !J)
26968
26916
  return null;
26969
26917
  const { container: ue = J.body } = ce;
26970
- return te.current.focusable.findPrev({
26918
+ return te.focusable.findPrev({
26971
26919
  currentElement: fe,
26972
26920
  container: ue
26973
26921
  });
@@ -27579,7 +27527,30 @@ function isPointerInGraceArea(te, J) {
27579
27527
  function whenMouse(te) {
27580
27528
  return (J) => J.pointerType === "mouse" ? te(J) : void 0;
27581
27529
  }
27582
- var Root3 = Menu, Anchor2 = MenuAnchor, Portal = MenuPortal, Content2 = MenuContent, Group = MenuGroup, Label$2 = MenuLabel, Item2 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator = MenuItemIndicator, Separator$2 = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, zeroRightClassName = "right-scroll-bar-position", fullWidthClassName = "width-before-scroll-bar", noScrollbarsClassName = "with-scroll-bars-hidden", removedBarSizeVariable = "--removed-body-scroll-bar-size";
27530
+ var Root3 = Menu, Anchor2 = MenuAnchor, Portal = MenuPortal, Content2 = MenuContent, Group = MenuGroup, Label$2 = MenuLabel, Item2 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator = MenuItemIndicator, Separator$2 = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, __assign$2 = function() {
27531
+ return __assign$2 = Object.assign || function(J) {
27532
+ for (var ne, re = 1, ae = arguments.length; re < ae; re++) {
27533
+ ne = arguments[re];
27534
+ for (var oe in ne) Object.prototype.hasOwnProperty.call(ne, oe) && (J[oe] = ne[oe]);
27535
+ }
27536
+ return J;
27537
+ }, __assign$2.apply(this, arguments);
27538
+ };
27539
+ function __rest$2(te, J) {
27540
+ var ne = {};
27541
+ for (var re in te) Object.prototype.hasOwnProperty.call(te, re) && J.indexOf(re) < 0 && (ne[re] = te[re]);
27542
+ if (te != null && typeof Object.getOwnPropertySymbols == "function")
27543
+ for (var ae = 0, re = Object.getOwnPropertySymbols(te); ae < re.length; ae++)
27544
+ J.indexOf(re[ae]) < 0 && Object.prototype.propertyIsEnumerable.call(te, re[ae]) && (ne[re[ae]] = te[re[ae]]);
27545
+ return ne;
27546
+ }
27547
+ function __spreadArray$1(te, J, ne) {
27548
+ if (ne || arguments.length === 2) for (var re = 0, ae = J.length, oe; re < ae; re++)
27549
+ (oe || !(re in J)) && (oe || (oe = Array.prototype.slice.call(J, 0, re)), oe[re] = J[re]);
27550
+ return te.concat(oe || Array.prototype.slice.call(J));
27551
+ }
27552
+ typeof SuppressedError == "function" && SuppressedError;
27553
+ var zeroRightClassName = "right-scroll-bar-position", fullWidthClassName = "width-before-scroll-bar", noScrollbarsClassName = "with-scroll-bars-hidden", removedBarSizeVariable = "--removed-body-scroll-bar-size";
27583
27554
  function assignRef(te, J) {
27584
27555
  return typeof te == "function" ? te(J) : te && (te.current = J), te;
27585
27556
  }
@@ -27672,16 +27643,16 @@ function innerCreateMedium(te, J) {
27672
27643
  function createSidecarMedium(te) {
27673
27644
  te === void 0 && (te = {});
27674
27645
  var J = innerCreateMedium(null);
27675
- return J.options = __assign$2({ async: !0, ssr: !1 }, te), J;
27646
+ return J.options = __assign$3({ async: !0, ssr: !1 }, te), J;
27676
27647
  }
27677
27648
  var SideCar$1 = function(te) {
27678
- var J = te.sideCar, ne = __rest$2(te, ["sideCar"]);
27649
+ var J = te.sideCar, ne = __rest$3(te, ["sideCar"]);
27679
27650
  if (!J)
27680
27651
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
27681
27652
  var re = J.read();
27682
27653
  if (!re)
27683
27654
  throw new Error("Sidecar medium not found");
27684
- return React.createElement(re, __assign$2({}, ne));
27655
+ return React.createElement(re, __assign$3({}, ne));
27685
27656
  };
27686
27657
  SideCar$1.isSideCarExport = !0;
27687
27658
  function exportSidecar(te, J) {
@@ -27923,7 +27894,7 @@ function RemoveScrollSideCar(te) {
27923
27894
  }, [te]), React.useEffect(function() {
27924
27895
  if (te.inert) {
27925
27896
  document.body.classList.add("block-interactivity-".concat(ae));
27926
- var be = __spreadArray$2([te.lockRef.current], (te.shards || []).map(extractRef), !0).filter(Boolean);
27897
+ var be = __spreadArray$1([te.lockRef.current], (te.shards || []).map(extractRef), !0).filter(Boolean);
27927
27898
  return be.forEach(function(_e) {
27928
27899
  return _e.classList.add("allow-interactivity-".concat(ae));
27929
27900
  }), function() {