@lax-wp/editor 0.3.1 → 0.3.2

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.
@@ -62,8 +62,6 @@ export interface EditorConfig {
62
62
  ydoc?: unknown | null;
63
63
  provider?: unknown | null;
64
64
  };
65
- /** Editor sidebar id */
66
- editorSidebarId?: string;
67
65
  /** Callback when share is clicked */
68
66
  onShare?: () => void;
69
67
  /** Callback when content changes */
package/dist/index.es.js CHANGED
@@ -80,8 +80,8 @@ function kb() {
80
80
  }
81
81
  function y(O, V, te) {
82
82
  {
83
- var me = h.ReactDebugCurrentFrame, Oe = me.getStackAddendum();
84
- Oe !== "" && (V += "%s", te = te.concat([Oe]));
83
+ var me = h.ReactDebugCurrentFrame, Ne = me.getStackAddendum();
84
+ Ne !== "" && (V += "%s", te = te.concat([Ne]));
85
85
  var Le = te.map(function(Ce) {
86
86
  return String(Ce);
87
87
  });
@@ -101,8 +101,8 @@ function kb() {
101
101
  var me = O.displayName;
102
102
  if (me)
103
103
  return me;
104
- var Oe = V.displayName || V.name || "";
105
- return Oe !== "" ? te + "(" + Oe + ")" : te;
104
+ var Ne = V.displayName || V.name || "";
105
+ return Ne !== "" ? te + "(" + Ne + ")" : te;
106
106
  }
107
107
  function T(O) {
108
108
  return O.displayName || "Context";
@@ -142,7 +142,7 @@ function kb() {
142
142
  var me = O.displayName || null;
143
143
  return me !== null ? me : w(O.type) || "Memo";
144
144
  case p: {
145
- var Oe = O, Le = Oe._payload, Ce = Oe._init;
145
+ var Ne = O, Le = Ne._payload, Ce = Ne._init;
146
146
  try {
147
147
  return w(Ce(Le));
148
148
  } catch {
@@ -220,8 +220,8 @@ function kb() {
220
220
  if (ne === void 0)
221
221
  try {
222
222
  throw Error();
223
- } catch (Oe) {
224
- var me = Oe.stack.trim().match(/\n( *(at )?)/);
223
+ } catch (Ne) {
224
+ var me = Ne.stack.trim().match(/\n( *(at )?)/);
225
225
  ne = me && me[1] || "";
226
226
  }
227
227
  return `
@@ -230,8 +230,8 @@ function kb() {
230
230
  }
231
231
  var ue = !1, de;
232
232
  {
233
- var Ne = typeof WeakMap == "function" ? WeakMap : Map;
234
- de = new Ne();
233
+ var Ae = typeof WeakMap == "function" ? WeakMap : Map;
234
+ de = new Ae();
235
235
  }
236
236
  function q(O, V) {
237
237
  if (!O || ue)
@@ -243,7 +243,7 @@ function kb() {
243
243
  }
244
244
  var me;
245
245
  ue = !0;
246
- var Oe = Error.prepareStackTrace;
246
+ var Ne = Error.prepareStackTrace;
247
247
  Error.prepareStackTrace = void 0;
248
248
  var Le;
249
249
  Le = Q.current, Q.current = null, ee();
@@ -299,7 +299,7 @@ function kb() {
299
299
  }
300
300
  }
301
301
  } finally {
302
- ue = !1, Q.current = Le, ae(), Error.prepareStackTrace = Oe;
302
+ ue = !1, Q.current = Le, ae(), Error.prepareStackTrace = Ne;
303
303
  }
304
304
  var kn = O ? O.displayName || O.name : "", gn = kn ? ie(kn) : "";
305
305
  return typeof O == "function" && de.set(O, gn), gn;
@@ -331,9 +331,9 @@ function kb() {
331
331
  case d:
332
332
  return _t(O.type, V, te);
333
333
  case p: {
334
- var me = O, Oe = me._payload, Le = me._init;
334
+ var me = O, Ne = me._payload, Le = me._init;
335
335
  try {
336
- return _t(Le(Oe), V, te);
336
+ return _t(Le(Ne), V, te);
337
337
  } catch {
338
338
  }
339
339
  }
@@ -348,7 +348,7 @@ function kb() {
348
348
  } else
349
349
  bt.setExtraStackFrame(null);
350
350
  }
351
- function Ee(O, V, te, me, Oe) {
351
+ function Ee(O, V, te, me, Ne) {
352
352
  {
353
353
  var Le = Function.call.bind(z);
354
354
  for (var Ce in O)
@@ -363,7 +363,7 @@ function kb() {
363
363
  } catch (et) {
364
364
  he = et;
365
365
  }
366
- he && !(he instanceof Error) && (mt(Oe), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", te, Ce, typeof he), mt(null)), he instanceof Error && !(he.message in we) && (we[he.message] = !0, mt(Oe), S("Failed %s type: %s", te, he.message), mt(null));
366
+ he && !(he instanceof Error) && (mt(Ne), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", te, Ce, typeof he), mt(null)), he instanceof Error && !(he.message in we) && (we[he.message] = !0, mt(Ne), S("Failed %s type: %s", te, he.message), mt(null));
367
367
  }
368
368
  }
369
369
  }
@@ -438,7 +438,7 @@ function kb() {
438
438
  });
439
439
  }
440
440
  }
441
- var To = function(O, V, te, me, Oe, Le, Ce) {
441
+ var To = function(O, V, te, me, Ne, Le, Ce) {
442
442
  var he = {
443
443
  // This tag allows us to uniquely identify this as a React Element
444
444
  $$typeof: t,
@@ -464,13 +464,13 @@ function kb() {
464
464
  configurable: !1,
465
465
  enumerable: !1,
466
466
  writable: !1,
467
- value: Oe
467
+ value: Ne
468
468
  }), Object.freeze && (Object.freeze(he.props), Object.freeze(he)), he;
469
469
  };
470
- function yo(O, V, te, me, Oe) {
470
+ function yo(O, V, te, me, Ne) {
471
471
  {
472
472
  var Le, Ce = {}, he = null, Nt = null;
473
- te !== void 0 && (wn(te), he = "" + te), ho(V) && (wn(V.key), he = "" + V.key), Eo(V) && (Nt = V.ref, So(V, Oe));
473
+ te !== void 0 && (wn(te), he = "" + te), ho(V) && (wn(V.key), he = "" + V.key), Eo(V) && (Nt = V.ref, So(V, Ne));
474
474
  for (Le in V)
475
475
  z.call(V, Le) && !na.hasOwnProperty(Le) && (Ce[Le] = V[Le]);
476
476
  if (O && O.defaultProps) {
@@ -482,7 +482,7 @@ function kb() {
482
482
  var it = typeof O == "function" ? O.displayName || O.name || "Unknown" : O;
483
483
  he && aa(Ce, it), Nt && bo(Ce, it);
484
484
  }
485
- return To(O, he, Nt, Oe, me, Tr.current, Ce);
485
+ return To(O, he, Nt, Ne, me, Tr.current, Ce);
486
486
  }
487
487
  }
488
488
  var yr = h.ReactCurrentOwner, pi = h.ReactDebugCurrentFrame;
@@ -551,9 +551,9 @@ Check the top-level render call using <` + te + ">.");
551
551
  else if (Gr(O))
552
552
  O._store && (O._store.validated = !0);
553
553
  else if (O) {
554
- var Oe = E(O);
555
- if (typeof Oe == "function" && Oe !== O.entries)
556
- for (var Le = Oe.call(O), Ce; !(Ce = Le.next()).done; )
554
+ var Ne = E(O);
555
+ if (typeof Ne == "function" && Ne !== O.entries)
556
+ for (var Le = Ne.call(O), Ce; !(Ce = Le.next()).done; )
557
557
  Gr(Ce.value) && ge(Ce.value, V);
558
558
  }
559
559
  }
@@ -577,8 +577,8 @@ Check the top-level render call using <` + te + ">.");
577
577
  Ee(te, O.props, "prop", me, O);
578
578
  } else if (V.PropTypes !== void 0 && !_i) {
579
579
  _i = !0;
580
- var Oe = w(V);
581
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Oe || "Unknown");
580
+ var Ne = w(V);
581
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ne || "Unknown");
582
582
  }
583
583
  typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
584
584
  }
@@ -596,7 +596,7 @@ Check the top-level render call using <` + te + ">.");
596
596
  }
597
597
  }
598
598
  var re = {};
599
- function _e(O, V, te, me, Oe, Le) {
599
+ function _e(O, V, te, me, Ne, Le) {
600
600
  {
601
601
  var Ce = L(O);
602
602
  if (!Ce) {
@@ -607,7 +607,7 @@ Check the top-level render call using <` + te + ">.");
607
607
  var et;
608
608
  O === null ? et = "null" : br(O) ? et = "array" : O !== void 0 && O.$$typeof === t ? (et = "<" + (w(O.type) || "Unknown") + " />", he = " Did you accidentally export a JSX literal instead of a component?") : et = typeof O, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", et, he);
609
609
  }
610
- var it = yo(O, V, te, Oe, Le);
610
+ var it = yo(O, V, te, Ne, Le);
611
611
  if (it == null)
612
612
  return it;
613
613
  if (Ce) {
@@ -3098,7 +3098,7 @@ const co = () => new lo(), _C = (e) => {
3098
3098
  }, Ot = (e, t) => {
3099
3099
  const n = e.cbuf.length;
3100
3100
  e.cpos === n && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(n * 2), e.cpos = 0), e.cbuf[e.cpos++] = t;
3101
- }, ud = Ot, Ae = (e, t) => {
3101
+ }, ud = Ot, Oe = (e, t) => {
3102
3102
  for (; t > Jr; )
3103
3103
  Ot(e, Ft | Jr & t), t = mr(t / 128);
3104
3104
  Ot(e, Jr & t);
@@ -3109,14 +3109,14 @@ const co = () => new lo(), _C = (e) => {
3109
3109
  }, pd = new Uint8Array(3e4), fC = pd.length / 3, EC = (e, t) => {
3110
3110
  if (t.length < fC) {
3111
3111
  const n = Va.encodeInto(t, pd).written || 0;
3112
- Ae(e, n);
3112
+ Oe(e, n);
3113
3113
  for (let r = 0; r < n; r++)
3114
3114
  Ot(e, pd[r]);
3115
3115
  } else
3116
3116
  jt(e, pC(t));
3117
3117
  }, hC = (e, t) => {
3118
3118
  const n = unescape(encodeURIComponent(t)), r = n.length;
3119
- Ae(e, r);
3119
+ Oe(e, r);
3120
3120
  for (let i = 0; i < r; i++)
3121
3121
  Ot(
3122
3122
  e,
@@ -3128,7 +3128,7 @@ Va.encodeInto ? EC : hC, bl = (e, t) => {
3128
3128
  const n = e.cbuf.length, r = e.cpos, i = dr(n - r, t.length), a = t.length - i;
3129
3129
  e.cbuf.set(t.subarray(0, i), r), e.cpos += i, a > 0 && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(jn(n * 2, a)), e.cbuf.set(t.subarray(i)), e.cpos = a);
3130
3130
  }, jt = (e, t) => {
3131
- Ae(e, t.byteLength), bl(e, t);
3131
+ Oe(e, t.byteLength), bl(e, t);
3132
3132
  }, du = (e, t) => {
3133
3133
  gC(e, t);
3134
3134
  const n = new DataView(e.cbuf.buffer, e.cpos, t);
@@ -3151,7 +3151,7 @@ Va.encodeInto ? EC : hC, bl = (e, t) => {
3151
3151
  if (t === null)
3152
3152
  Ot(e, 126);
3153
3153
  else if (cd(t)) {
3154
- Ot(e, 117), Ae(e, t.length);
3154
+ Ot(e, 117), Oe(e, t.length);
3155
3155
  for (let n = 0; n < t.length; n++)
3156
3156
  Yi(e, t[n]);
3157
3157
  } else if (t instanceof Uint8Array)
@@ -3159,7 +3159,7 @@ Va.encodeInto ? EC : hC, bl = (e, t) => {
3159
3159
  else {
3160
3160
  Ot(e, 118);
3161
3161
  const n = Object.keys(t);
3162
- Ae(e, n.length);
3162
+ Oe(e, n.length);
3163
3163
  for (let r = 0; r < n.length; r++) {
3164
3164
  const i = n[r];
3165
3165
  Di(e, i), Yi(e, t[i]);
@@ -3184,11 +3184,11 @@ class kp extends lo {
3184
3184
  * @param {T} v
3185
3185
  */
3186
3186
  write(t) {
3187
- this.s === t ? this.count++ : (this.count > 0 && Ae(this, this.count - 1), this.count = 1, this.w(this, t), this.s = t);
3187
+ this.s === t ? this.count++ : (this.count > 0 && Oe(this, this.count - 1), this.count = 1, this.w(this, t), this.s = t);
3188
3188
  }
3189
3189
  }
3190
3190
  const Lp = (e) => {
3191
- e.count > 0 && (cu(e.encoder, e.count === 1 ? e.s : -e.s), e.count > 1 && Ae(e.encoder, e.count - 2));
3191
+ e.count > 0 && (cu(e.encoder, e.count === 1 ? e.s : -e.s), e.count > 1 && Oe(e.encoder, e.count - 2));
3192
3192
  };
3193
3193
  class os {
3194
3194
  constructor() {
@@ -3212,7 +3212,7 @@ class os {
3212
3212
  const Pp = (e) => {
3213
3213
  if (e.count > 0) {
3214
3214
  const t = e.diff * 2 + (e.count === 1 ? 0 : 1);
3215
- cu(e.encoder, t), e.count > 1 && Ae(e.encoder, e.count - 2);
3215
+ cu(e.encoder, t), e.count > 1 && Oe(e.encoder, e.count - 2);
3216
3216
  }
3217
3217
  };
3218
3218
  class _c {
@@ -3692,10 +3692,10 @@ const Dr = (e, t, n) => t.clients.forEach((r, i) => {
3692
3692
  i.length > 0 && t.clients.set(r, i);
3693
3693
  }), t;
3694
3694
  }, Su = (e, t) => {
3695
- Ae(e.restEncoder, t.clients.size), ii(t.clients.entries()).sort((n, r) => r[0] - n[0]).forEach(([n, r]) => {
3696
- e.resetDsCurVal(), Ae(e.restEncoder, n);
3695
+ Oe(e.restEncoder, t.clients.size), ii(t.clients.entries()).sort((n, r) => r[0] - n[0]).forEach(([n, r]) => {
3696
+ e.resetDsCurVal(), Oe(e.restEncoder, n);
3697
3697
  const i = r.length;
3698
- Ae(e.restEncoder, i);
3698
+ Oe(e.restEncoder, i);
3699
3699
  for (let a = 0; a < i; a++) {
3700
3700
  const o = r[a];
3701
3701
  e.writeDsClock(o.clock), e.writeDsLen(o.len);
@@ -3734,7 +3734,7 @@ const Dr = (e, t, n) => t.clients.forEach((r, i) => {
3734
3734
  }
3735
3735
  if (r.clients.size > 0) {
3736
3736
  const a = new yl();
3737
- return Ae(a.restEncoder, 0), Su(a, r), a.toUint8Array();
3737
+ return Oe(a.restEncoder, 0), Su(a, r), a.toUint8Array();
3738
3738
  }
3739
3739
  return null;
3740
3740
  }, nf = Hg;
@@ -4084,13 +4084,13 @@ class Tv {
4084
4084
  * @param {number} clock
4085
4085
  */
4086
4086
  writeDsClock(t) {
4087
- Ae(this.restEncoder, t);
4087
+ Oe(this.restEncoder, t);
4088
4088
  }
4089
4089
  /**
4090
4090
  * @param {number} len
4091
4091
  */
4092
4092
  writeDsLen(t) {
4093
- Ae(this.restEncoder, t);
4093
+ Oe(this.restEncoder, t);
4094
4094
  }
4095
4095
  }
4096
4096
  class yv extends Tv {
@@ -4098,20 +4098,20 @@ class yv extends Tv {
4098
4098
  * @param {ID} id
4099
4099
  */
4100
4100
  writeLeftID(t) {
4101
- Ae(this.restEncoder, t.client), Ae(this.restEncoder, t.clock);
4101
+ Oe(this.restEncoder, t.client), Oe(this.restEncoder, t.clock);
4102
4102
  }
4103
4103
  /**
4104
4104
  * @param {ID} id
4105
4105
  */
4106
4106
  writeRightID(t) {
4107
- Ae(this.restEncoder, t.client), Ae(this.restEncoder, t.clock);
4107
+ Oe(this.restEncoder, t.client), Oe(this.restEncoder, t.clock);
4108
4108
  }
4109
4109
  /**
4110
4110
  * Use writeClient and writeClock instead of writeID if possible.
4111
4111
  * @param {number} client
4112
4112
  */
4113
4113
  writeClient(t) {
4114
- Ae(this.restEncoder, t);
4114
+ Oe(this.restEncoder, t);
4115
4115
  }
4116
4116
  /**
4117
4117
  * @param {number} info An unsigned 8-bit integer
@@ -4129,13 +4129,13 @@ class yv extends Tv {
4129
4129
  * @param {boolean} isYKey
4130
4130
  */
4131
4131
  writeParentInfo(t) {
4132
- Ae(this.restEncoder, t ? 1 : 0);
4132
+ Oe(this.restEncoder, t ? 1 : 0);
4133
4133
  }
4134
4134
  /**
4135
4135
  * @param {number} info An unsigned 8-bit integer
4136
4136
  */
4137
4137
  writeTypeRef(t) {
4138
- Ae(this.restEncoder, t);
4138
+ Oe(this.restEncoder, t);
4139
4139
  }
4140
4140
  /**
4141
4141
  * Write len of a struct - well suited for Opt RLE encoder.
@@ -4143,7 +4143,7 @@ class yv extends Tv {
4143
4143
  * @param {number} len
4144
4144
  */
4145
4145
  writeLen(t) {
4146
- Ae(this.restEncoder, t);
4146
+ Oe(this.restEncoder, t);
4147
4147
  }
4148
4148
  /**
4149
4149
  * @param {any} any
@@ -4185,13 +4185,13 @@ class Cv {
4185
4185
  */
4186
4186
  writeDsClock(t) {
4187
4187
  const n = t - this.dsCurrVal;
4188
- this.dsCurrVal = t, Ae(this.restEncoder, n);
4188
+ this.dsCurrVal = t, Oe(this.restEncoder, n);
4189
4189
  }
4190
4190
  /**
4191
4191
  * @param {number} len
4192
4192
  */
4193
4193
  writeDsLen(t) {
4194
- t === 0 && Wt(), Ae(this.restEncoder, t - 1), this.dsCurrVal += t;
4194
+ t === 0 && Wt(), Oe(this.restEncoder, t - 1), this.dsCurrVal += t;
4195
4195
  }
4196
4196
  }
4197
4197
  class yl extends Cv {
@@ -4200,7 +4200,7 @@ class yl extends Cv {
4200
4200
  }
4201
4201
  toUint8Array() {
4202
4202
  const t = co();
4203
- return Ae(t, 0), jt(t, this.keyClockEncoder.toUint8Array()), jt(t, this.clientEncoder.toUint8Array()), jt(t, this.leftClockEncoder.toUint8Array()), jt(t, this.rightClockEncoder.toUint8Array()), jt(t, yn(this.infoEncoder)), jt(t, this.stringEncoder.toUint8Array()), jt(t, yn(this.parentInfoEncoder)), jt(t, this.typeRefEncoder.toUint8Array()), jt(t, this.lenEncoder.toUint8Array()), bl(t, yn(this.restEncoder)), yn(t);
4203
+ return Oe(t, 0), jt(t, this.keyClockEncoder.toUint8Array()), jt(t, this.clientEncoder.toUint8Array()), jt(t, this.leftClockEncoder.toUint8Array()), jt(t, this.rightClockEncoder.toUint8Array()), jt(t, yn(this.infoEncoder)), jt(t, this.stringEncoder.toUint8Array()), jt(t, yn(this.parentInfoEncoder)), jt(t, this.typeRefEncoder.toUint8Array()), jt(t, this.lenEncoder.toUint8Array()), bl(t, yn(this.restEncoder)), yn(t);
4204
4204
  }
4205
4205
  /**
4206
4206
  * @param {ID} id
@@ -4290,7 +4290,7 @@ class yl extends Cv {
4290
4290
  const vv = (e, t, n, r) => {
4291
4291
  r = jn(r, t[0].id.clock);
4292
4292
  const i = Nn(t, r);
4293
- Ae(e.restEncoder, t.length - i), e.writeClient(n), Ae(e.restEncoder, r);
4293
+ Oe(e.restEncoder, t.length - i), e.writeClient(n), Oe(e.restEncoder, r);
4294
4294
  const a = t[i];
4295
4295
  a.write(e, r - a.id.clock);
4296
4296
  for (let o = i + 1; o < t.length; o++)
@@ -4301,7 +4301,7 @@ const vv = (e, t, n, r) => {
4301
4301
  ft(t, a) > i && r.set(a, i);
4302
4302
  }), Cl(t).forEach((i, a) => {
4303
4303
  n.has(a) || r.set(a, 0);
4304
- }), Ae(e.restEncoder, r.size), ii(r.entries()).sort((i, a) => a[0] - i[0]).forEach(([i, a]) => {
4304
+ }), Oe(e.restEncoder, r.size), ii(r.entries()).sort((i, a) => a[0] - i[0]).forEach(([i, a]) => {
4305
4305
  vv(
4306
4306
  e,
4307
4307
  /** @type {Array<GC|Item>} */
@@ -4435,7 +4435,7 @@ const vv = (e, t, n, r) => {
4435
4435
  }
4436
4436
  if (s.clients.size > 0) {
4437
4437
  const _ = new yl();
4438
- return rf(_, s, /* @__PURE__ */ new Map()), Ae(_.restEncoder, 0), { missing: l, update: _.toUint8Array() };
4438
+ return rf(_, s, /* @__PURE__ */ new Map()), Oe(_.restEncoder, 0), { missing: l, update: _.toUint8Array() };
4439
4439
  }
4440
4440
  return null;
4441
4441
  }, Ov = (e, t) => rf(e, t.doc.store, t.beforeState), Av = (e, t, n, r = new Rs(e)) => We(t, (i) => {
@@ -5174,14 +5174,14 @@ const zv = (e, t) => {
5174
5174
  }, pf = (e) => {
5175
5175
  e.written > 0 && (e.clientStructs.push({ written: e.written, restEncoder: yn(e.encoder.restEncoder) }), e.encoder.restEncoder = co(), e.written = 0);
5176
5176
  }, ma = (e, t, n) => {
5177
- e.written > 0 && e.currClient !== t.id.client && pf(e), e.written === 0 && (e.currClient = t.id.client, e.encoder.writeClient(t.id.client), Ae(e.encoder.restEncoder, t.id.clock + n)), t.write(e.encoder, n), e.written++;
5177
+ e.written > 0 && e.currClient !== t.id.client && pf(e), e.written === 0 && (e.currClient = t.id.client, e.encoder.writeClient(t.id.client), Oe(e.encoder.restEncoder, t.id.clock + n)), t.write(e.encoder, n), e.written++;
5178
5178
  }, Vv = (e) => {
5179
5179
  pf(e);
5180
5180
  const t = e.encoder.restEncoder;
5181
- Ae(t, e.clientStructs.length);
5181
+ Oe(t, e.clientStructs.length);
5182
5182
  for (let n = 0; n < e.clientStructs.length; n++) {
5183
5183
  const r = e.clientStructs[n];
5184
- Ae(t, r.written), bl(t, r.restEncoder);
5184
+ Oe(t, r.written), bl(t, r.restEncoder);
5185
5185
  }
5186
5186
  }, Zp = "You must not compute changes after the event-handler fired.";
5187
5187
  class vl {
@@ -8716,7 +8716,7 @@ class bn extends vu {
8716
8716
  * @param {number} offset
8717
8717
  */
8718
8718
  write(t, n) {
8719
- t.writeInfo(D0), Ae(t.restEncoder, this.length - n);
8719
+ t.writeInfo(D0), Oe(t.restEncoder, this.length - n);
8720
8720
  }
8721
8721
  /**
8722
8722
  * @param {Transaction} transaction
@@ -11867,7 +11867,7 @@ function fN(e) {
11867
11867
  begin: "~",
11868
11868
  end: ";|:",
11869
11869
  excludeEnd: !0
11870
- }, Ne = {
11870
+ }, Ae = {
11871
11871
  className: "function",
11872
11872
  variants: [
11873
11873
  {
@@ -11922,7 +11922,7 @@ function fN(e) {
11922
11922
  },
11923
11923
  contains: [
11924
11924
  ue,
11925
- Ne,
11925
+ Ae,
11926
11926
  ie,
11927
11927
  de,
11928
11928
  ee,
@@ -57268,7 +57268,7 @@ function $1(e) {
57268
57268
  t
57269
57269
  ],
57270
57270
  illegal: /\[|%/
57271
- }, Ne = {
57271
+ }, Ae = {
57272
57272
  match: [
57273
57273
  /operator/,
57274
57274
  /\s+/,
@@ -57380,7 +57380,7 @@ function $1(e) {
57380
57380
  ke,
57381
57381
  pt,
57382
57382
  _t,
57383
- Ne,
57383
+ Ae,
57384
57384
  q,
57385
57385
  {
57386
57386
  beginKeywords: "import",
@@ -59391,14 +59391,14 @@ function J1() {
59391
59391
  UNDERSCORE_IDENT_RE: M,
59392
59392
  UNDERSCORE_TITLE_MODE: ne
59393
59393
  });
59394
- function Ne(A, Y) {
59394
+ function Ae(A, Y) {
59395
59395
  A.input[A.index - 1] === "." && Y.ignoreMatch();
59396
59396
  }
59397
59397
  function q(A, Y) {
59398
59398
  A.className !== void 0 && (A.scope = A.className, delete A.className);
59399
59399
  }
59400
59400
  function ke(A, Y) {
59401
- Y && A.beginKeywords && (A.begin = "\\b(" + A.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", A.__beforeBegin = Ne, A.keywords = A.keywords || A.beginKeywords, delete A.beginKeywords, A.relevance === void 0 && (A.relevance = 0));
59401
+ Y && A.beginKeywords && (A.begin = "\\b(" + A.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", A.__beforeBegin = Ae, A.keywords = A.keywords || A.beginKeywords, delete A.beginKeywords, A.relevance === void 0 && (A.relevance = 0));
59402
59402
  }
59403
59403
  function pt(A, Y) {
59404
59404
  Array.isArray(A.illegal) && (A.illegal = h(...A.illegal));
@@ -59920,7 +59920,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Tt = K, $e = pe), Re
59920
59920
  function me(K) {
59921
59921
  re = pi(re, K);
59922
59922
  }
59923
- const Oe = () => {
59923
+ const Ne = () => {
59924
59924
  he(), wn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
59925
59925
  };
59926
59926
  function Le() {
@@ -60005,7 +60005,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Tt = K, $e = pe), Re
60005
60005
  // TODO: Remove with v12 API
60006
60006
  highlightBlock: tp,
60007
60007
  configure: me,
60008
- initHighlighting: Oe,
60008
+ initHighlighting: Ne,
60009
60009
  initHighlightingOnLoad: Le,
60010
60010
  registerLanguage: Nt,
60011
60011
  unregisterLanguage: et,
@@ -60384,10 +60384,10 @@ function sx() {
60384
60384
  function de(q) {
60385
60385
  return C(q) === i;
60386
60386
  }
60387
- function Ne(q) {
60387
+ function Ae(q) {
60388
60388
  return C(q) === d;
60389
60389
  }
60390
- Ue.AsyncMode = b, Ue.ConcurrentMode = R, Ue.ContextConsumer = D, Ue.ContextProvider = M, Ue.Element = k, Ue.ForwardRef = L, Ue.Fragment = B, Ue.Lazy = T, Ue.Memo = w, Ue.Portal = N, Ue.Profiler = v, Ue.StrictMode = I, Ue.Suspense = P, Ue.isAsyncMode = x, Ue.isConcurrentMode = U, Ue.isContextConsumer = H, Ue.isContextProvider = $, Ue.isElement = X, Ue.isForwardRef = ee, Ue.isFragment = ae, Ue.isLazy = Q, Ue.isMemo = ne, Ue.isPortal = ie, Ue.isProfiler = ue, Ue.isStrictMode = de, Ue.isSuspense = Ne, Ue.isValidElementType = y, Ue.typeOf = C;
60390
+ Ue.AsyncMode = b, Ue.ConcurrentMode = R, Ue.ContextConsumer = D, Ue.ContextProvider = M, Ue.Element = k, Ue.ForwardRef = L, Ue.Fragment = B, Ue.Lazy = T, Ue.Memo = w, Ue.Portal = N, Ue.Profiler = v, Ue.StrictMode = I, Ue.Suspense = P, Ue.isAsyncMode = x, Ue.isConcurrentMode = U, Ue.isContextConsumer = H, Ue.isContextProvider = $, Ue.isElement = X, Ue.isForwardRef = ee, Ue.isFragment = ae, Ue.isLazy = Q, Ue.isMemo = ne, Ue.isPortal = ie, Ue.isProfiler = ue, Ue.isStrictMode = de, Ue.isSuspense = Ae, Ue.isValidElementType = y, Ue.typeOf = C;
60391
60391
  })()), Ue;
60392
60392
  }
60393
60393
  var R_;
@@ -60555,8 +60555,8 @@ function dx() {
60555
60555
  function E(U) {
60556
60556
  if (process.env.NODE_ENV !== "production")
60557
60557
  var H = {}, $ = 0;
60558
- function X(ae, Q, ne, ie, ue, de, Ne) {
60559
- if (ie = ie || p, de = de || ne, Ne !== n) {
60558
+ function X(ae, Q, ne, ie, ue, de, Ae) {
60559
+ if (ie = ie || p, de = de || ne, Ae !== n) {
60560
60560
  if (l) {
60561
60561
  var q = new Error(
60562
60562
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -60651,7 +60651,7 @@ function dx() {
60651
60651
  for (var ne = $[X], ie = 0; ie < U.length; ie++)
60652
60652
  if (f(ne, U[ie]))
60653
60653
  return null;
60654
- var ue = JSON.stringify(U, function(Ne, q) {
60654
+ var ue = JSON.stringify(U, function(Ae, q) {
60655
60655
  var ke = P(q);
60656
60656
  return ke === "symbol" ? String(q) : q;
60657
60657
  });
@@ -60688,7 +60688,7 @@ function dx() {
60688
60688
  }
60689
60689
  function X(ee, ae, Q, ne, ie) {
60690
60690
  for (var ue = [], de = 0; de < U.length; de++) {
60691
- var Ne = U[de], q = Ne(ee, ae, Q, ne, ie, n);
60691
+ var Ae = U[de], q = Ae(ee, ae, Q, ne, ie, n);
60692
60692
  if (q == null)
60693
60693
  return null;
60694
60694
  q.data && r(q.data, "expectedType") && ue.push(q.data.expectedType);
@@ -60718,9 +60718,9 @@ function dx() {
60718
60718
  var de = U[ue];
60719
60719
  if (typeof de != "function")
60720
60720
  return B(ee, ae, Q, ue, P(de));
60721
- var Ne = de(ne, ue, ee, ae, Q + "." + ue, n);
60722
- if (Ne)
60723
- return Ne;
60721
+ var Ae = de(ne, ue, ee, ae, Q + "." + ue, n);
60722
+ if (Ae)
60723
+ return Ae;
60724
60724
  }
60725
60725
  return null;
60726
60726
  }
@@ -60733,15 +60733,15 @@ function dx() {
60733
60733
  return new g("Invalid " + ae + " `" + Q + "` of type `" + ie + "` " + ("supplied to `" + ee + "`, expected `object`."));
60734
60734
  var ue = t({}, $[X], U);
60735
60735
  for (var de in ue) {
60736
- var Ne = U[de];
60737
- if (r(U, de) && typeof Ne != "function")
60738
- return B(ee, ae, Q, de, P(Ne));
60739
- if (!Ne)
60736
+ var Ae = U[de];
60737
+ if (r(U, de) && typeof Ae != "function")
60738
+ return B(ee, ae, Q, de, P(Ae));
60739
+ if (!Ae)
60740
60740
  return new g(
60741
60741
  "Invalid " + ae + " `" + Q + "` key `" + de + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify($[X], null, " ") + `
60742
60742
  Valid keys: ` + JSON.stringify(Object.keys(U), null, " ")
60743
60743
  );
60744
- var q = Ne(ne, de, ee, ae, Q + "." + de, n);
60744
+ var q = Ae(ne, de, ee, ae, Q + "." + de, n);
60745
60745
  if (q)
60746
60746
  return q;
60747
60747
  }
@@ -72283,8 +72283,8 @@ function N2() {
72283
72283
  var U = x.scrollLeft, H = x.clientWidth, $ = x.scrollWidth, X = (0, h.default)(this.trackHorizontal), ee = this.getThumbHorizontalWidth(), ae = U / ($ - H) * (X - ee), Q = {
72284
72284
  width: ee,
72285
72285
  transform: "translateX(" + ae + "px)"
72286
- }, ne = x.scrollTop, ie = x.clientHeight, ue = x.scrollHeight, de = (0, y.default)(this.trackVertical), Ne = this.getThumbVerticalHeight(), q = ne / (ue - ie) * (de - Ne), ke = {
72287
- height: Ne,
72286
+ }, ne = x.scrollTop, ie = x.clientHeight, ue = x.scrollHeight, de = (0, y.default)(this.trackVertical), Ae = this.getThumbVerticalHeight(), q = ne / (ue - ie) * (de - Ae), ke = {
72287
+ height: Ae,
72288
72288
  transform: "translateY(" + q + "px)"
72289
72289
  };
72290
72290
  if (F) {
@@ -72310,7 +72310,7 @@ function N2() {
72310
72310
  P.autoHideTimeout;
72311
72311
  var ae = P.autoHideDuration;
72312
72312
  P.thumbSize, P.thumbMinSize;
72313
- var Q = P.universal, ne = P.autoHeight, ie = P.autoHeightMin, ue = P.autoHeightMax, de = P.style, Ne = P.children, q = D(P, ["onScroll", "onScrollFrame", "onScrollStart", "onScrollStop", "onUpdate", "renderView", "renderTrackHorizontal", "renderTrackVertical", "renderThumbHorizontal", "renderThumbVertical", "tagName", "hideTracksWhenNotNeeded", "autoHide", "autoHideTimeout", "autoHideDuration", "thumbSize", "thumbMinSize", "universal", "autoHeight", "autoHeightMin", "autoHeightMax", "style", "children"]), ke = this.state.didMountUniversal, pt = t({}, C.containerStyleDefault, ne && t({}, C.containerStyleAutoHeight, {
72313
+ var Q = P.universal, ne = P.autoHeight, ie = P.autoHeightMin, ue = P.autoHeightMax, de = P.style, Ae = P.children, q = D(P, ["onScroll", "onScrollFrame", "onScrollStart", "onScrollStop", "onUpdate", "renderView", "renderTrackHorizontal", "renderTrackVertical", "renderThumbHorizontal", "renderThumbVertical", "tagName", "hideTracksWhenNotNeeded", "autoHide", "autoHideTimeout", "autoHideDuration", "thumbSize", "thumbMinSize", "universal", "autoHeight", "autoHeightMin", "autoHeightMax", "style", "children"]), ke = this.state.didMountUniversal, pt = t({}, C.containerStyleDefault, ne && t({}, C.containerStyleAutoHeight, {
72314
72314
  minHeight: ie,
72315
72315
  maxHeight: ue
72316
72316
  }), de), _t = t({}, C.viewStyleDefault, {
@@ -72336,7 +72336,7 @@ function N2() {
72336
72336
  v.container = Ee;
72337
72337
  } }), [(0, s.cloneElement)(F({ style: _t }), { key: "view", ref: function(Ee) {
72338
72338
  v.view = Ee;
72339
- } }, Ne), (0, s.cloneElement)(x({ style: we }), { key: "trackHorizontal", ref: function(Ee) {
72339
+ } }, Ae), (0, s.cloneElement)(x({ style: we }), { key: "trackHorizontal", ref: function(Ee) {
72340
72340
  v.trackHorizontal = Ee;
72341
72341
  } }, (0, s.cloneElement)(H({ style: C.thumbHorizontalStyleDefault }), { ref: function(Ee) {
72342
72342
  v.thumbHorizontal = Ee;
@@ -72562,7 +72562,7 @@ const Wm = ({ profilePic: e, name: t, size: n = "md" }) => {
72562
72562
  const bt = new Set(we);
72563
72563
  return bt.has(z) ? bt.delete(z) : bt.add(z), bt;
72564
72564
  });
72565
- }, ue = (z) => z.length > F, de = (z, we) => !ue(we) || B.has(z) ? we : we.substring(0, F) + "...", Ne = (z) => {
72565
+ }, ue = (z) => z.length > F, de = (z, we) => !ue(we) || B.has(z) ? we : we.substring(0, F) + "...", Ae = (z) => {
72566
72566
  z.stopPropagation(), r(e.position, e.timestamp, e.userId), c?.();
72567
72567
  }, q = (z) => z.stopPropagation();
72568
72568
  ye(() => {
@@ -72577,7 +72577,7 @@ const Wm = ({ profilePic: e, name: t, size: n = "md" }) => {
72577
72577
  {
72578
72578
  ref: p,
72579
72579
  className: `bg-white rounded-lg border p-4 mt-1 cursor-pointer transition-all duration-200 hover:shadow-[0_4px_12px_rgba(0,0,0,0.1)] hover:-translate-y-0.5 ${l ? "border-[#2196F3] border-2" : "border-gray-300 border-2"}`,
72580
- onClick: Ne,
72580
+ onClick: Ae,
72581
72581
  children: [
72582
72582
  /* @__PURE__ */ m.jsxs("div", { className: "flex items-start gap-2", children: [
72583
72583
  /* @__PURE__ */ m.jsx(
@@ -73047,15 +73047,14 @@ const es = (e, t, n, r) => {
73047
73047
  if (!w || !N) return T;
73048
73048
  const v = w.getBoundingClientRect(), I = N.getBoundingClientRect(), P = t.sidebarConfig?.sidebarId || "editor-sidebar-qwCfsxssdsfsd", F = document.querySelector(`#${P}`);
73049
73049
  let x = v.right, U = null;
73050
- F && (U = F.getBoundingClientRect(), U.width > 56 && (x = U.left)), console.log("sidebarRect ====>", U, U?.left, U?.right, x);
73050
+ F && (U = F.getBoundingClientRect(), U.width > 56 && (x = U.left));
73051
73051
  const H = 20, X = x - I.right < 420, ee = 4, ae = [];
73052
73052
  return n.forEach((Q) => {
73053
73053
  const ne = document.querySelector(
73054
73054
  `[data-timestamp="${Q.timestamp}"][data-user-id="${Q.userId}"]`
73055
73055
  );
73056
73056
  if (ne) {
73057
- const ie = ne.getBoundingClientRect(), ue = S.current.get(Q.id), de = ue ? ue.getBoundingClientRect().height : X ? 35 : 120, Ne = I.right + H;
73058
- console.log("sidebarRect ====>2", I.right, H, Ne);
73057
+ const ie = ne.getBoundingClientRect(), ue = S.current.get(Q.id), de = ue ? ue.getBoundingClientRect().height : X ? 35 : 120, Ae = I.right - (U?.left || 0) + H;
73059
73058
  let q = ie.top, ke = !0, pt = 0;
73060
73059
  const _t = 20;
73061
73060
  for (; ke && pt < _t; ) {
@@ -73072,7 +73071,7 @@ const es = (e, t, n, r) => {
73072
73071
  }), T.set(Q.id, {
73073
73072
  changeId: Q.id,
73074
73073
  top: q,
73075
- left: Ne,
73074
+ left: Ae,
73076
73075
  showCompact: X
73077
73076
  });
73078
73077
  }