@lax-wp/editor 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -42,20 +42,11 @@ function lg(e) {
42
42
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
43
43
  }
44
44
  var xo = { exports: {} }, ma = {};
45
- /**
46
- * @license React
47
- * react-jsx-runtime.production.min.js
48
- *
49
- * Copyright (c) Facebook, Inc. and its affiliates.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */
54
45
  var __;
55
46
  function eb() {
56
47
  if (__) return ma;
57
48
  __ = 1;
58
- var e = mi, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
49
+ var e = mi, t = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
59
50
  function o(s, l, c) {
60
51
  var u, d = {}, _ = null, m = null;
61
52
  c !== void 0 && (_ = "" + c), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (m = l.ref);
@@ -66,19 +57,10 @@ function eb() {
66
57
  return ma.Fragment = n, ma.jsx = o, ma.jsxs = o, ma;
67
58
  }
68
59
  var ga = {};
69
- /**
70
- * @license React
71
- * react-jsx-runtime.development.js
72
- *
73
- * Copyright (c) Facebook, Inc. and its affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */
78
60
  var p_;
79
61
  function tb() {
80
62
  return p_ || (p_ = 1, process.env.NODE_ENV !== "production" && (function() {
81
- var e = mi, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), f = Symbol.iterator, g = "@@iterator";
63
+ var e = mi, t = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), a = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), s = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), _ = /* @__PURE__ */ Symbol.for("react.lazy"), m = /* @__PURE__ */ Symbol.for("react.offscreen"), f = Symbol.iterator, g = "@@iterator";
82
64
  function E(N) {
83
65
  if (N === null || typeof N != "object")
84
66
  return null;
@@ -104,7 +86,7 @@ function tb() {
104
86
  }
105
87
  }
106
88
  var y = !1, b = !1, v = !1, x = !1, L = !1, D;
107
- D = Symbol.for("react.module.reference");
89
+ D = /* @__PURE__ */ Symbol.for("react.module.reference");
108
90
  function M(N) {
109
91
  return !!(typeof N == "string" || typeof N == "function" || N === r || N === a || L || N === i || N === c || N === u || x || N === m || y || b || v || typeof N == "object" && N !== null && (N.$$typeof === _ || N.$$typeof === d || N.$$typeof === o || N.$$typeof === s || N.$$typeof === l || // This needs to include all possible module reference object
110
92
  // types supported by any Flight configuration anywhere since
@@ -6206,37 +6188,20 @@ class yd {
6206
6188
  * Only call this if you know that this.right is defined
6207
6189
  */
6208
6190
  forward() {
6209
- switch (this.right === null && jt(), this.right.content.constructor) {
6210
- case Ct:
6211
- this.right.deleted || ia(
6212
- this.currentAttributes,
6213
- /** @type {ContentFormat} */
6214
- this.right.content
6215
- );
6216
- break;
6217
- default:
6218
- this.right.deleted || (this.index += this.right.length);
6219
- break;
6220
- }
6221
- this.left = this.right, this.right = this.right.right;
6191
+ this.right === null && jt(), this.right.content.constructor === Ct ? this.right.deleted || ia(
6192
+ this.currentAttributes,
6193
+ /** @type {ContentFormat} */
6194
+ this.right.content
6195
+ ) : this.right.deleted || (this.index += this.right.length), this.left = this.right, this.right = this.right.right;
6222
6196
  }
6223
6197
  }
6224
6198
  const Z_ = (e, t, n) => {
6225
- for (; t.right !== null && n > 0; ) {
6226
- switch (t.right.content.constructor) {
6227
- case Ct:
6228
- t.right.deleted || ia(
6229
- t.currentAttributes,
6230
- /** @type {ContentFormat} */
6231
- t.right.content
6232
- );
6233
- break;
6234
- default:
6235
- t.right.deleted || (n < t.right.length && qt(e, be(t.right.id.client, t.right.id.clock + n)), t.index += t.right.length, n -= t.right.length);
6236
- break;
6237
- }
6238
- t.left = t.right, t.right = t.right.right;
6239
- }
6199
+ for (; t.right !== null && n > 0; )
6200
+ t.right.content.constructor === Ct ? t.right.deleted || ia(
6201
+ t.currentAttributes,
6202
+ /** @type {ContentFormat} */
6203
+ t.right.content
6204
+ ) : t.right.deleted || (n < t.right.length && qt(e, be(t.right.id.client, t.right.id.clock + n)), t.index += t.right.length, n -= t.right.length), t.left = t.right, t.right = t.right.right;
6240
6205
  return t;
6241
6206
  }, Fo = (e, t, n, r) => {
6242
6207
  const i = /* @__PURE__ */ new Map(), a = r ? Il(t, n) : null;
@@ -6359,19 +6324,16 @@ const Z_ = (e, t, n) => {
6359
6324
  for (; t !== a; ) {
6360
6325
  if (n === t && (l = !0), !t.deleted) {
6361
6326
  const c = t.content;
6362
- switch (c.constructor) {
6363
- case Ct: {
6364
- const { key: u, value: d } = (
6365
- /** @type {ContentFormat} */
6366
- c
6367
- ), _ = r.get(u) ?? null;
6368
- (o.get(u) !== c || _ === d) && (t.delete(e), s++, !l && (i.get(u) ?? null) === d && _ !== d && (_ === null ? i.delete(u) : i.set(u, _))), !l && !t.deleted && ia(
6369
- i,
6370
- /** @type {ContentFormat} */
6371
- c
6372
- );
6373
- break;
6374
- }
6327
+ if (c.constructor === Ct) {
6328
+ const { key: u, value: d } = (
6329
+ /** @type {ContentFormat} */
6330
+ c
6331
+ ), _ = r.get(u) ?? null;
6332
+ (o.get(u) !== c || _ === d) && (t.delete(e), s++, !l && (i.get(u) ?? null) === d && _ !== d && (_ === null ? i.delete(u) : i.set(u, _))), !l && !t.deleted && ia(
6333
+ i,
6334
+ /** @type {ContentFormat} */
6335
+ c
6336
+ );
6375
6337
  }
6376
6338
  }
6377
6339
  t = /** @type {Item} */
@@ -6403,22 +6365,12 @@ const Z_ = (e, t, n) => {
6403
6365
  e._start
6404
6366
  ), i = e._start, a = mn();
6405
6367
  const o = _d(a);
6406
- for (; i; ) {
6407
- if (i.deleted === !1)
6408
- switch (i.content.constructor) {
6409
- case Ct:
6410
- ia(
6411
- o,
6412
- /** @type {ContentFormat} */
6413
- i.content
6414
- );
6415
- break;
6416
- default:
6417
- t += Cf(n, r, i, a, o), a = _d(o), r = i;
6418
- break;
6419
- }
6420
- i = i.right;
6421
- }
6368
+ for (; i; )
6369
+ i.deleted === !1 && (i.content.constructor === Ct ? ia(
6370
+ o,
6371
+ /** @type {ContentFormat} */
6372
+ i.content
6373
+ ) : (t += Cf(n, r, i, a, o), a = _d(o), r = i)), i = i.right;
6422
6374
  }
6423
6375
  ), t;
6424
6376
  }, Rv = (e) => {
@@ -59682,7 +59634,7 @@ function bx() {
59682
59634
  super(G), this.name = "HTMLInjectionError", this.html = X;
59683
59635
  }
59684
59636
  }
59685
- const Rr = n, Si = r, Mn = Symbol("nomatch"), bi = 7, qr = function(A) {
59637
+ const Rr = n, Si = r, Mn = /* @__PURE__ */ Symbol("nomatch"), bi = 7, qr = function(A) {
59686
59638
  const G = /* @__PURE__ */ Object.create(null), X = /* @__PURE__ */ Object.create(null), ge = [];
59687
59639
  let qe = !0;
59688
59640
  const Qe = "Could not find the language '{}', did you forget to load/include a language module?", ae = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -60301,19 +60253,11 @@ function pi(e) {
60301
60253
  return e.charAt(0).toUpperCase() + e.slice(1);
60302
60254
  }
60303
60255
  var jo = { exports: {} }, Qo = { exports: {} }, Le = {};
60304
- /** @license React v16.13.1
60305
- * react-is.production.min.js
60306
- *
60307
- * Copyright (c) Facebook, Inc. and its affiliates.
60308
- *
60309
- * This source code is licensed under the MIT license found in the
60310
- * LICENSE file in the root directory of this source tree.
60311
- */
60312
60256
  var Cp;
60313
60257
  function Ox() {
60314
60258
  if (Cp) return Le;
60315
60259
  Cp = 1;
60316
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
60260
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, _ = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, f = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, h = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
60317
60261
  function T(b) {
60318
60262
  if (typeof b == "object" && b !== null) {
60319
60263
  var v = b.$$typeof;
@@ -60376,18 +60320,10 @@ function Ox() {
60376
60320
  }, Le.typeOf = T, Le;
60377
60321
  }
60378
60322
  var Pe = {};
60379
- /** @license React v16.13.1
60380
- * react-is.development.js
60381
- *
60382
- * Copyright (c) Facebook, Inc. and its affiliates.
60383
- *
60384
- * This source code is licensed under the MIT license found in the
60385
- * LICENSE file in the root directory of this source tree.
60386
- */
60387
60323
  var yp;
60388
60324
  function Ax() {
60389
60325
  return yp || (yp = 1, process.env.NODE_ENV !== "production" && (function() {
60390
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
60326
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, _ = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, f = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, h = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, S = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
60391
60327
  function T(j) {
60392
60328
  return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
60393
60329
  j === r || j === c || j === a || j === i || j === d || j === _ || typeof j == "object" && j !== null && (j.$$typeof === f || j.$$typeof === m || j.$$typeof === o || j.$$typeof === s || j.$$typeof === u || j.$$typeof === E || j.$$typeof === h || j.$$typeof === S || j.$$typeof === g);
@@ -60471,11 +60407,6 @@ var vp;
60471
60407
  function sE() {
60472
60408
  return vp || (vp = 1, process.env.NODE_ENV === "production" ? Qo.exports = Ox() : Qo.exports = Ax()), Qo.exports;
60473
60409
  }
60474
- /*
60475
- object-assign
60476
- (c) Sindre Sorhus
60477
- @license MIT
60478
- */
60479
60410
  var kc, Rp;
60480
60411
  function Ix() {
60481
60412
  if (Rp) return kc;
@@ -60990,20 +60921,11 @@ function kx(e, t, n = void 0) {
60990
60921
  return r;
60991
60922
  }
60992
60923
  var Xo = { exports: {} }, He = {};
60993
- /**
60994
- * @license React
60995
- * react-is.production.js
60996
- *
60997
- * Copyright (c) Meta Platforms, Inc. and affiliates.
60998
- *
60999
- * This source code is licensed under the MIT license found in the
61000
- * LICENSE file in the root directory of this source tree.
61001
- */
61002
60924
  var Dp;
61003
60925
  function Lx() {
61004
60926
  if (Dp) return He;
61005
60927
  Dp = 1;
61006
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), o = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), _ = Symbol.for("react.view_transition"), m = Symbol.for("react.client.reference");
60928
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), a = /* @__PURE__ */ Symbol.for("react.consumer"), o = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.forward_ref"), l = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), u = /* @__PURE__ */ Symbol.for("react.memo"), d = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.view_transition"), m = /* @__PURE__ */ Symbol.for("react.client.reference");
61007
60929
  function f(g) {
61008
60930
  if (typeof g == "object" && g !== null) {
61009
60931
  var E = g.$$typeof;
@@ -61064,15 +60986,6 @@ function Lx() {
61064
60986
  }, He.typeOf = f, He;
61065
60987
  }
61066
60988
  var Ye = {};
61067
- /**
61068
- * @license React
61069
- * react-is.development.js
61070
- *
61071
- * Copyright (c) Meta Platforms, Inc. and affiliates.
61072
- *
61073
- * This source code is licensed under the MIT license found in the
61074
- * LICENSE file in the root directory of this source tree.
61075
- */
61076
60989
  var Mp;
61077
60990
  function Px() {
61078
60991
  return Mp || (Mp = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -61107,7 +61020,7 @@ function Px() {
61107
61020
  }
61108
61021
  }
61109
61022
  }
61110
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"), f = Symbol.for("react.client.reference");
61023
+ var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), a = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.consumer"), s = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), _ = /* @__PURE__ */ Symbol.for("react.lazy"), m = /* @__PURE__ */ Symbol.for("react.view_transition"), f = /* @__PURE__ */ Symbol.for("react.client.reference");
61111
61024
  Ye.ContextConsumer = o, Ye.ContextProvider = s, Ye.Element = t, Ye.ForwardRef = l, Ye.Fragment = r, Ye.Lazy = _, Ye.Memo = d, Ye.Portal = n, Ye.Profiler = a, Ye.StrictMode = i, Ye.Suspense = c, Ye.SuspenseList = u, Ye.isContextConsumer = function(g) {
61112
61025
  return e(g) === o;
61113
61026
  }, Ye.isContextProvider = function(g) {
@@ -62993,13 +62906,6 @@ var g1 = function(t) {
62993
62906
  y1.forEach(function(e) {
62994
62907
  Gd[e] = Gd(e);
62995
62908
  });
62996
- /**
62997
- * @mui/styled-engine v7.3.3
62998
- *
62999
- * @license MIT
63000
- * This source code is licensed under the MIT license found in the
63001
- * LICENSE file in the root directory of this source tree.
63002
- */
63003
62909
  function v1(e, t) {
63004
62910
  const n = Gd(e, t);
63005
62911
  return process.env.NODE_ENV !== "production" ? (...r) => {