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

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$1 = function(J, ne) {
567
+ var usePrevious$2 = 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$1(Se), Ae = useRef(!0);
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);
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,7 +11054,24 @@ 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
+ }
11057
11071
  let Node$5 = class {
11072
+ get proxyOf() {
11073
+ return this;
11074
+ }
11058
11075
  constructor(J = {}) {
11059
11076
  this.raws = {}, this[isClean$2] = !1, this[my$2] = !0;
11060
11077
  for (let ne in J)
@@ -11143,23 +11160,25 @@ let Node$5 = class {
11143
11160
  let J = this.parent.index(this);
11144
11161
  return this.parent.nodes[J + 1];
11145
11162
  }
11146
- positionBy(J, ne) {
11147
- let re = this.source.start;
11163
+ positionBy(J) {
11164
+ let ne = this.source.start;
11148
11165
  if (J.index)
11149
- re = this.positionInside(J.index, ne);
11166
+ ne = this.positionInside(J.index);
11150
11167
  else if (J.word) {
11151
- ne = this.toString();
11152
- let ae = ne.indexOf(J.word);
11153
- ae !== -1 && (re = this.positionInside(ae, ne));
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));
11154
11173
  }
11155
- return re;
11174
+ return ne;
11156
11175
  }
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 };
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 };
11163
11182
  }
11164
11183
  prev() {
11165
11184
  if (!this.parent) return;
@@ -11178,10 +11197,12 @@ let Node$5 = class {
11178
11197
  line: ne.line
11179
11198
  };
11180
11199
  if (J.word) {
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
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
11185
11206
  ));
11186
11207
  } else
11187
11208
  J.start ? ne = {
@@ -11252,9 +11273,6 @@ let Node$5 = class {
11252
11273
  for (let oe in re) ae[oe] = re[oe];
11253
11274
  return J.warn(ne, ae);
11254
11275
  }
11255
- get proxyOf() {
11256
- return this;
11257
- }
11258
11276
  };
11259
11277
  var node = Node$5;
11260
11278
  Node$5.default = Node$5;
@@ -11266,12 +11284,12 @@ let Node$4 = node, Comment$4 = class extends Node$4 {
11266
11284
  var comment = Comment$4;
11267
11285
  Comment$4.default = Comment$4;
11268
11286
  let Node$3 = node, Declaration$4 = class extends Node$3 {
11269
- constructor(J) {
11270
- J && typeof J.value < "u" && typeof J.value != "string" && (J = { ...J, value: String(J.value) }), super(J), this.type = "decl";
11271
- }
11272
11287
  get variable() {
11273
11288
  return this.prop.startsWith("--") || this.prop[0] === "$";
11274
11289
  }
11290
+ constructor(J) {
11291
+ J && typeof J.value < "u" && typeof J.value != "string" && (J = { ...J, value: String(J.value) }), super(J), this.type = "decl";
11292
+ }
11275
11293
  };
11276
11294
  var declaration = Declaration$4;
11277
11295
  Declaration$4.default = Declaration$4;
@@ -11285,6 +11303,14 @@ function markTreeDirty(te) {
11285
11303
  markTreeDirty(J);
11286
11304
  }
11287
11305
  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
+ }
11288
11314
  append(...J) {
11289
11315
  for (let ne of J) {
11290
11316
  let re = this.normalize(ne, this.last);
@@ -11464,14 +11490,6 @@ let Container$7 = class or extends Node$2 {
11464
11490
  return ne(re, ae);
11465
11491
  }));
11466
11492
  }
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
- }
11475
11493
  };
11476
11494
  Container$7.registerParse = (te) => {
11477
11495
  parse$7 = te;
@@ -11523,12 +11541,12 @@ Document$4.registerProcessor = (te) => {
11523
11541
  var document$1 = Document$4;
11524
11542
  Document$4.default = Document$4;
11525
11543
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", customAlphabet = (te, J = 21) => (ne = J) => {
11526
- let re = "", ae = ne;
11544
+ let re = "", ae = ne | 0;
11527
11545
  for (; ae--; )
11528
11546
  re += te[Math.random() * te.length | 0];
11529
11547
  return re;
11530
11548
  }, nanoid$1 = (te = 21) => {
11531
- let J = "", ne = te;
11549
+ let J = "", ne = te | 0;
11532
11550
  for (; ne--; )
11533
11551
  J += urlAlphabet[Math.random() * 64 | 0];
11534
11552
  return J;
@@ -11619,10 +11637,13 @@ let PreviousMap$2 = class {
11619
11637
  var previousMap = PreviousMap$2;
11620
11638
  PreviousMap$2.default = PreviousMap$2;
11621
11639
  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
+ }
11622
11643
  constructor(J, ne = {}) {
11623
11644
  if (J === null || typeof J > "u" || typeof J == "object" && !J.toString)
11624
11645
  throw new Error(`PostCSS received ${J} instead of CSS string`);
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) {
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) {
11626
11647
  let re = new PreviousMap$1(this.css, ne);
11627
11648
  if (re.text) {
11628
11649
  this.map = re;
@@ -11736,9 +11757,6 @@ let { nanoid } = nonSecure, { isAbsolute, resolve: resolve$1 } = require$$3, { S
11736
11757
  this[ne] != null && (J[ne] = this[ne]);
11737
11758
  return this.map && (J.map = { ...this.map }, J.map.consumerCache && (J.map.consumerCache = void 0)), J;
11738
11759
  }
11739
- get from() {
11740
- return this.file || this.id;
11741
- }
11742
11760
  };
11743
11761
  var input = Input$7;
11744
11762
  Input$7.default = Input$7;
@@ -11794,9 +11812,6 @@ let list$2 = {
11794
11812
  var list_1 = list$2;
11795
11813
  list$2.default = list$2;
11796
11814
  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
- }
11800
11815
  get selectors() {
11801
11816
  return list$1.comma(this.selector);
11802
11817
  }
@@ -11804,6 +11819,9 @@ let Container$3 = container, list$1 = list_1, Rule$3 = class extends Container$3
11804
11819
  let ne = this.selector ? this.selector.match(/,\s*/) : null, re = ne ? ne[0] : "," + this.raw("between", "beforeOpen");
11805
11820
  this.selector = J.join(re);
11806
11821
  }
11822
+ constructor(J) {
11823
+ super(J), this.type = "rule", this.nodes || (this.nodes = []);
11824
+ }
11807
11825
  };
11808
11826
  var rule = Rule$3;
11809
11827
  Rule$3.default = Rule$3;
@@ -12260,7 +12278,7 @@ let Parser$1 = class {
12260
12278
  freeSemicolon(J) {
12261
12279
  if (this.spaces += J[1], this.current.nodes) {
12262
12280
  let ne = this.current.nodes[this.current.nodes.length - 1];
12263
- ne && ne.type === "rule" && !ne.raws.ownSemicolon && (ne.raws.ownSemicolon = this.spaces, this.spaces = "");
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);
12264
12282
  }
12265
12283
  }
12266
12284
  // Helpers
@@ -12400,7 +12418,7 @@ let Parser$1 = class {
12400
12418
  }
12401
12419
  unknownWord(J) {
12402
12420
  throw this.input.error(
12403
- "Unknown word",
12421
+ "Unknown word " + J[0][1],
12404
12422
  { offset: J[0][2] },
12405
12423
  { offset: J[0][2] + J[0][1].length }
12406
12424
  );
@@ -12449,6 +12467,9 @@ let Warning$2 = class {
12449
12467
  var warning = Warning$2;
12450
12468
  Warning$2.default = Warning$2;
12451
12469
  let Warning$1 = warning, Result$3 = class {
12470
+ get content() {
12471
+ return this.css;
12472
+ }
12452
12473
  constructor(J, ne, re) {
12453
12474
  this.processor = J, this.messages = [], this.root = ne, this.opts = re, this.css = void 0, this.map = void 0;
12454
12475
  }
@@ -12463,9 +12484,6 @@ let Warning$1 = warning, Result$3 = class {
12463
12484
  warnings() {
12464
12485
  return this.messages.filter((J) => J.type === "warning");
12465
12486
  }
12466
- get content() {
12467
- return this.css;
12468
- }
12469
12487
  };
12470
12488
  var result = Result$3;
12471
12489
  Result$3.default = Result$3;
@@ -12531,6 +12549,30 @@ function cleanMarks(te) {
12531
12549
  return te[isClean] = !1, te.nodes && te.nodes.forEach((J) => cleanMarks(J)), te;
12532
12550
  }
12533
12551
  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
+ }
12534
12576
  constructor(J, ne, re) {
12535
12577
  this.stringified = !1, this.processed = !1;
12536
12578
  let ae;
@@ -12773,17 +12815,28 @@ let postcss$2 = {}, LazyResult$2 = class sr {
12773
12815
  warnings() {
12774
12816
  return this.sync().warnings();
12775
12817
  }
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 {
12776
12829
  get content() {
12777
- return this.stringify().content;
12830
+ return this.result.css;
12778
12831
  }
12779
12832
  get css() {
12780
- return this.stringify().css;
12833
+ return this.result.css;
12781
12834
  }
12782
12835
  get map() {
12783
- return this.stringify().map;
12836
+ return this.result.map;
12784
12837
  }
12785
12838
  get messages() {
12786
- return this.sync().messages;
12839
+ return [];
12787
12840
  }
12788
12841
  get opts() {
12789
12842
  return this.result.opts;
@@ -12792,22 +12845,21 @@ let postcss$2 = {}, LazyResult$2 = class sr {
12792
12845
  return this.result.processor;
12793
12846
  }
12794
12847
  get root() {
12795
- return this.sync().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;
12796
12859
  }
12797
12860
  get [Symbol.toStringTag]() {
12798
- return "LazyResult";
12861
+ return "NoWorkResult";
12799
12862
  }
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 {
12811
12863
  constructor(J, ne, re) {
12812
12864
  ne = ne.toString(), this.stringified = !1, this._processor = J, this._css = ne, this._opts = re, this._map = void 0;
12813
12865
  let ae, oe = stringify$1;
@@ -12849,46 +12901,12 @@ let stringify$1 = stringify_1, warnOnce = warnOnce$2, NoWorkResult$1 = class {
12849
12901
  warnings() {
12850
12902
  return [];
12851
12903
  }
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
- }
12886
12904
  };
12887
12905
  var noWorkResult = NoWorkResult$1;
12888
12906
  NoWorkResult$1.default = NoWorkResult$1;
12889
12907
  let Document$2 = document$1, LazyResult$1 = lazyResult, NoWorkResult = noWorkResult, Root$c = root$2, Processor$1 = class {
12890
12908
  constructor(J = []) {
12891
- this.version = "8.4.47", this.plugins = this.normalize(J);
12909
+ this.version = "8.5.3", this.plugins = this.normalize(J);
12892
12910
  }
12893
12911
  normalize(J) {
12894
12912
  let ne = [];
@@ -23607,16 +23625,16 @@ function createFocusGuard() {
23607
23625
  const te = document.createElement("span");
23608
23626
  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;
23609
23627
  }
23610
- var __assign$3 = function() {
23611
- return __assign$3 = Object.assign || function(J) {
23628
+ var __assign$2 = function() {
23629
+ return __assign$2 = Object.assign || function(J) {
23612
23630
  for (var ne, re = 1, ae = arguments.length; re < ae; re++) {
23613
23631
  ne = arguments[re];
23614
23632
  for (var oe in ne) Object.prototype.hasOwnProperty.call(ne, oe) && (J[oe] = ne[oe]);
23615
23633
  }
23616
23634
  return J;
23617
- }, __assign$3.apply(this, arguments);
23635
+ }, __assign$2.apply(this, arguments);
23618
23636
  };
23619
- function __rest$3(te, J) {
23637
+ function __rest$2(te, J) {
23620
23638
  var ne = {};
23621
23639
  for (var re in te) Object.prototype.hasOwnProperty.call(te, re) && J.indexOf(re) < 0 && (ne[re] = te[re]);
23622
23640
  if (te != null && typeof Object.getOwnPropertySymbols == "function")
@@ -23624,7 +23642,7 @@ function __rest$3(te, J) {
23624
23642
  J.indexOf(re[ae]) < 0 && Object.prototype.propertyIsEnumerable.call(te, re[ae]) && (ne[re[ae]] = te[re[ae]]);
23625
23643
  return ne;
23626
23644
  }
23627
- function __spreadArray$3(te, J, ne) {
23645
+ function __spreadArray$2(te, J, ne) {
23628
23646
  if (ne || arguments.length === 2) for (var re = 0, ae = J.length, oe; re < ae; re++)
23629
23647
  (oe || !(re in J)) && (oe || (oe = Array.prototype.slice.call(J, 0, re)), oe[re] = J[re]);
23630
23648
  return te.concat(oe || Array.prototype.slice.call(J));
@@ -23736,16 +23754,16 @@ function innerCreateMedium$1(te, J) {
23736
23754
  function createSidecarMedium$1(te) {
23737
23755
  te === void 0 && (te = {});
23738
23756
  var J = innerCreateMedium$1(null);
23739
- return J.options = __assign$3({ async: !0, ssr: !1 }, te), J;
23757
+ return J.options = __assign$2({ async: !0, ssr: !1 }, te), J;
23740
23758
  }
23741
23759
  var SideCar$3 = function(te) {
23742
- var J = te.sideCar, ne = __rest$3(te, ["sideCar"]);
23760
+ var J = te.sideCar, ne = __rest$2(te, ["sideCar"]);
23743
23761
  if (!J)
23744
23762
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
23745
23763
  var re = J.read();
23746
23764
  if (!re)
23747
23765
  throw new Error("Sidecar medium not found");
23748
- return React.createElement(re, __assign$3({}, ne));
23766
+ return React.createElement(re, __assign$2({}, ne));
23749
23767
  };
23750
23768
  SideCar$3.isSideCarExport = !0;
23751
23769
  function exportSidecar$1(te, J) {
@@ -23757,12 +23775,12 @@ var effectCar$1 = createSidecarMedium$1(), nothing$1 = function() {
23757
23775
  onScrollCapture: nothing$1,
23758
23776
  onWheelCapture: nothing$1,
23759
23777
  onTouchMoveCapture: nothing$1
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);
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);
23761
23779
  return React.createElement(
23762
23780
  React.Fragment,
23763
23781
  null,
23764
23782
  de && React.createElement(Ce, { sideCar: effectCar$1, removeScrollBar: ue, shards: pe, noIsolation: me, inert: ge, setCallbacks: oe, allowPinchZoom: !!be, lockRef: ne, gapMode: Ee }),
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)
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)
23766
23784
  );
23767
23785
  });
23768
23786
  RemoveScroll$1.defaultProps = {
@@ -23991,7 +24009,7 @@ function RemoveScrollSideCar$1(te) {
23991
24009
  }, [te]), React.useEffect(function() {
23992
24010
  if (te.inert) {
23993
24011
  document.body.classList.add("block-interactivity-".concat(ae));
23994
- var be = __spreadArray$3([te.lockRef.current], (te.shards || []).map(extractRef$1), !0).filter(Boolean);
24012
+ var be = __spreadArray$2([te.lockRef.current], (te.shards || []).map(extractRef$1), !0).filter(Boolean);
23995
24013
  return be.forEach(function(_e) {
23996
24014
  return _e.classList.add("allow-interactivity-".concat(ae));
23997
24015
  }), function() {
@@ -24073,7 +24091,7 @@ function getOutermostShadowParent$1(te) {
24073
24091
  }
24074
24092
  const SideCar$2 = exportSidecar$1(effectCar$1, RemoveScrollSideCar$1);
24075
24093
  var ReactRemoveScroll$1 = React.forwardRef(function(te, J) {
24076
- return React.createElement(RemoveScroll$1, __assign$3({}, te, { ref: J, sideCar: SideCar$2 }));
24094
+ return React.createElement(RemoveScroll$1, __assign$2({}, te, { ref: J, sideCar: SideCar$2 }));
24077
24095
  });
24078
24096
  ReactRemoveScroll$1.classNames = RemoveScroll$1.classNames;
24079
24097
  var getDefaultParent = function(te) {
@@ -24448,7 +24466,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
24448
24466
  ) || console.warn(J);
24449
24467
  }, [J, te]), null;
24450
24468
  }, Root2 = AlertDialog$1;
24451
- function usePrevious(te) {
24469
+ function usePrevious$1(te) {
24452
24470
  const J = React.useRef({ value: te, previous: te });
24453
24471
  return React.useMemo(() => (J.current.value !== te && (J.current.previous = J.current.value, J.current.value = te), J.current.previous), [te]);
24454
24472
  }
@@ -24534,7 +24552,7 @@ var INDICATOR_NAME$1 = "CheckboxIndicator", CheckboxIndicator = React.forwardRef
24534
24552
  );
24535
24553
  CheckboxIndicator.displayName = INDICATOR_NAME$1;
24536
24554
  var BubbleInput = (te) => {
24537
- const { control: J, checked: ne, bubbles: re = !0, defaultChecked: ae, ...oe } = te, le = React.useRef(null), fe = usePrevious(ne), ce = useSize(J);
24555
+ const { control: J, checked: ne, bubbles: re = !0, defaultChecked: ae, ...oe } = te, le = React.useRef(null), fe = usePrevious$1(ne), ce = useSize(J);
24538
24556
  React.useEffect(() => {
24539
24557
  const de = le.current, pe = window.HTMLInputElement.prototype, me = Object.getOwnPropertyDescriptor(pe, "checked").set;
24540
24558
  if (fe !== ne && me) {
@@ -24584,7 +24602,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24584
24602
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24585
24603
  PERFORMANCE OF THIS SOFTWARE.
24586
24604
  ***************************************************************************** */
24587
- function __spreadArray$2(te, J, ne) {
24605
+ function __spreadArray$1(te, J, ne) {
24588
24606
  if (arguments.length === 2) for (var re = 0, ae = J.length, oe; re < ae; re++)
24589
24607
  (oe || !(re in J)) && (oe || (oe = Array.prototype.slice.call(J, 0, re)), oe[re] = J[re]);
24590
24608
  return te.concat(oe || Array.prototype.slice.call(J));
@@ -24607,7 +24625,7 @@ var transform = function(te) {
24607
24625
  var ce = le.selectionDirection, ue = le.value, de = getSelectionState(le), pe = function(he) {
24608
24626
  eq(he, fe) && (eq(he, ZERO) || eq(he, getSelectionState(le))) || (ne.current = he, re(function(me) {
24609
24627
  return eq(me, he) ? me : he;
24610
- }), le.setSelectionRange.apply(le, __spreadArray$2(__spreadArray$2([], he, !1), [ce || void 0], !1)));
24628
+ }), le.setSelectionRange.apply(le, __spreadArray$1(__spreadArray$1([], he, !1), [ce || void 0], !1)));
24611
24629
  };
24612
24630
  if (oe === "selectionchange" && document.activeElement !== le)
24613
24631
  return pe([ue.length, ue.length]);
@@ -25255,7 +25273,9 @@ const TABSTER_ATTRIBUTE_NAME = "data-tabster", TABSTER_DUMMY_INPUT_ATTRIBUTE_NAM
25255
25273
  Deloser: 3
25256
25274
  }, SysDummyInputsPositions = {
25257
25275
  Auto: 0,
25276
+ // Tabster will place dummy inputs depending on the container tag name and on the default behaviour.
25258
25277
  Inside: 1,
25278
+ // Tabster will always place dummy inputs inside the container.
25259
25279
  Outside: 2
25260
25280
  // Tabster will always place dummy inputs outside of the container.
25261
25281
  };
@@ -25522,7 +25542,6 @@ function createElementTreeWalker(te, J, ne) {
25522
25542
  J,
25523
25543
  NodeFilter.SHOW_ELEMENT,
25524
25544
  re,
25525
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
25526
25545
  // @ts-ignore: We still don't want to completely break IE11, so, entityReferenceExpansion argument is not optional.
25527
25546
  !1
25528
25547
  /* Last argument is not optional for IE11! */
@@ -26388,7 +26407,6 @@ const Keys = {
26388
26407
  Tab: "Tab",
26389
26408
  Enter: "Enter",
26390
26409
  Escape: "Escape",
26391
- Space: " ",
26392
26410
  PageUp: "PageUp",
26393
26411
  PageDown: "PageDown",
26394
26412
  End: "End",
@@ -26750,7 +26768,7 @@ class Tabster {
26750
26768
  class TabsterCore {
26751
26769
  constructor(J, ne) {
26752
26770
  var re, ae;
26753
- this._forgetMemorizedElements = [], this._wrappers = /* @__PURE__ */ new Set(), this._initQueue = [], this._version = "8.5.2", this._noop = !1, this.getWindow = () => {
26771
+ this._forgetMemorizedElements = [], this._wrappers = /* @__PURE__ */ new Set(), this._initQueue = [], this._version = "8.5.5", this._noop = !1, this.getWindow = () => {
26754
26772
  if (!this._win)
26755
26773
  throw new Error("Using disposed Tabster.");
26756
26774
  return this._win;
@@ -26849,7 +26867,14 @@ function canUseDOM() {
26849
26867
  window.document.createElement)
26850
26868
  );
26851
26869
  }
26852
- const useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect;
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
+ };
26853
26878
  function isVirtualElement(te) {
26854
26879
  return te && !!te._virtual;
26855
26880
  }
@@ -26867,44 +26892,71 @@ function getParent(te, J = {}) {
26867
26892
  const ne = te.parentNode;
26868
26893
  return ne && ne.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? ne.host : ne;
26869
26894
  }
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, [
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
+ }, [
26881
26919
  J,
26882
- ne
26883
- ]);
26884
- return useIsomorphicLayoutEffect(() => () => {
26885
- re && disposeTabster(re);
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
+ })) || [];
26886
26939
  }, [
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
- })) || [], [
26894
26940
  te
26895
- ]), re = React.useCallback((fe) => te == null ? void 0 : te.focusable.findFirst({
26896
- container: fe
26897
- }), [
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
+ }, [
26898
26947
  te
26899
- ]), ae = React.useCallback((fe) => te == null ? void 0 : te.focusable.findLast({
26900
- container: fe
26901
- }), [
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
+ }, [
26902
26954
  te
26903
26955
  ]), oe = React.useCallback((fe, ce = {}) => {
26904
- if (!te || !J)
26956
+ if (!te.current || !J)
26905
26957
  return null;
26906
26958
  const { container: ue = J.body } = ce;
26907
- return te.focusable.findNext({
26959
+ return te.current.focusable.findNext({
26908
26960
  currentElement: fe,
26909
26961
  container: ue
26910
26962
  });
@@ -26912,10 +26964,10 @@ const useTabster = () => {
26912
26964
  te,
26913
26965
  J
26914
26966
  ]), le = React.useCallback((fe, ce = {}) => {
26915
- if (!te || !J)
26967
+ if (!te.current || !J)
26916
26968
  return null;
26917
26969
  const { container: ue = J.body } = ce;
26918
- return te.focusable.findPrev({
26970
+ return te.current.focusable.findPrev({
26919
26971
  currentElement: fe,
26920
26972
  container: ue
26921
26973
  });
@@ -27527,30 +27579,7 @@ function isPointerInGraceArea(te, J) {
27527
27579
  function whenMouse(te) {
27528
27580
  return (J) => J.pointerType === "mouse" ? te(J) : void 0;
27529
27581
  }
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";
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";
27554
27583
  function assignRef(te, J) {
27555
27584
  return typeof te == "function" ? te(J) : te && (te.current = J), te;
27556
27585
  }
@@ -27643,16 +27672,16 @@ function innerCreateMedium(te, J) {
27643
27672
  function createSidecarMedium(te) {
27644
27673
  te === void 0 && (te = {});
27645
27674
  var J = innerCreateMedium(null);
27646
- return J.options = __assign$3({ async: !0, ssr: !1 }, te), J;
27675
+ return J.options = __assign$2({ async: !0, ssr: !1 }, te), J;
27647
27676
  }
27648
27677
  var SideCar$1 = function(te) {
27649
- var J = te.sideCar, ne = __rest$3(te, ["sideCar"]);
27678
+ var J = te.sideCar, ne = __rest$2(te, ["sideCar"]);
27650
27679
  if (!J)
27651
27680
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
27652
27681
  var re = J.read();
27653
27682
  if (!re)
27654
27683
  throw new Error("Sidecar medium not found");
27655
- return React.createElement(re, __assign$3({}, ne));
27684
+ return React.createElement(re, __assign$2({}, ne));
27656
27685
  };
27657
27686
  SideCar$1.isSideCarExport = !0;
27658
27687
  function exportSidecar(te, J) {
@@ -27894,7 +27923,7 @@ function RemoveScrollSideCar(te) {
27894
27923
  }, [te]), React.useEffect(function() {
27895
27924
  if (te.inert) {
27896
27925
  document.body.classList.add("block-interactivity-".concat(ae));
27897
- var be = __spreadArray$1([te.lockRef.current], (te.shards || []).map(extractRef), !0).filter(Boolean);
27926
+ var be = __spreadArray$2([te.lockRef.current], (te.shards || []).map(extractRef), !0).filter(Boolean);
27898
27927
  return be.forEach(function(_e) {
27899
27928
  return _e.classList.add("allow-interactivity-".concat(ae));
27900
27929
  }), function() {