@dotcms/react 0.0.1-alpha.27 → 0.0.1-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { useState, useEffect, createContext, useContext, createElement as createElement$1, forwardRef } from 'react';
3
- import { isInsideEditor, initEditor, updateNavigation, destroyEditor } from '@dotcms/client';
3
+ import { isInsideEditor, initEditor, updateNavigation, destroyEditor, DotCmsClient } from '@dotcms/client';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
@@ -22,7 +22,7 @@ var global$b =
22
22
 
23
23
  var objectGetOwnPropertyDescriptor = {};
24
24
 
25
- var fails$b = function (exec) {
25
+ var fails$c = function (exec) {
26
26
  try {
27
27
  return !!exec();
28
28
  } catch (error) {
@@ -30,29 +30,29 @@ var fails$b = function (exec) {
30
30
  }
31
31
  };
32
32
 
33
- var fails$a = fails$b;
33
+ var fails$b = fails$c;
34
34
 
35
35
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$a(function () {
36
+ var descriptors = !fails$b(function () {
37
37
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
38
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
39
  });
40
40
 
41
- var fails$9 = fails$b;
41
+ var fails$a = fails$c;
42
42
 
43
- var functionBindNative = !fails$9(function () {
43
+ var functionBindNative = !fails$a(function () {
44
44
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
45
  var test = (function () { /* empty */ }).bind();
46
46
  // eslint-disable-next-line no-prototype-builtins -- safe
47
47
  return typeof test != 'function' || test.hasOwnProperty('prototype');
48
48
  });
49
49
 
50
- var NATIVE_BIND$1 = functionBindNative;
50
+ var NATIVE_BIND$2 = functionBindNative;
51
51
 
52
- var call$6 = Function.prototype.call;
52
+ var call$8 = Function.prototype.call;
53
53
 
54
- var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
55
- return call$6.apply(call$6, arguments);
54
+ var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
55
+ return call$8.apply(call$8, arguments);
56
56
  };
57
57
 
58
58
  var objectPropertyIsEnumerable = {};
@@ -80,42 +80,42 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
80
80
  };
81
81
  };
82
82
 
83
- var NATIVE_BIND = functionBindNative;
83
+ var NATIVE_BIND$1 = functionBindNative;
84
84
 
85
- var FunctionPrototype$1 = Function.prototype;
86
- var call$5 = FunctionPrototype$1.call;
87
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
85
+ var FunctionPrototype$2 = Function.prototype;
86
+ var call$7 = FunctionPrototype$2.call;
87
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$7, call$7);
88
88
 
89
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
89
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
90
90
  return function () {
91
- return call$5.apply(fn, arguments);
91
+ return call$7.apply(fn, arguments);
92
92
  };
93
93
  };
94
94
 
95
- var uncurryThis$a = functionUncurryThis;
95
+ var uncurryThis$d = functionUncurryThis;
96
96
 
97
- var toString$1 = uncurryThis$a({}.toString);
98
- var stringSlice$1 = uncurryThis$a(''.slice);
97
+ var toString$3 = uncurryThis$d({}.toString);
98
+ var stringSlice$1 = uncurryThis$d(''.slice);
99
99
 
100
- var classofRaw = function (it) {
101
- return stringSlice$1(toString$1(it), 8, -1);
100
+ var classofRaw$1 = function (it) {
101
+ return stringSlice$1(toString$3(it), 8, -1);
102
102
  };
103
103
 
104
- var uncurryThis$9 = functionUncurryThis;
105
- var fails$8 = fails$b;
106
- var classof = classofRaw;
104
+ var uncurryThis$c = functionUncurryThis;
105
+ var fails$9 = fails$c;
106
+ var classof$4 = classofRaw$1;
107
107
 
108
- var $Object$3 = Object;
109
- var split = uncurryThis$9(''.split);
108
+ var $Object$4 = Object;
109
+ var split = uncurryThis$c(''.split);
110
110
 
111
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$8(function () {
112
+ var indexedObject = fails$9(function () {
113
113
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
114
  // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !$Object$3('z').propertyIsEnumerable(0);
115
+ return !$Object$4('z').propertyIsEnumerable(0);
116
116
  }) ? function (it) {
117
- return classof(it) === 'String' ? split(it, '') : $Object$3(it);
118
- } : $Object$3;
117
+ return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
118
+ } : $Object$4;
119
119
 
120
120
  // we can't use just `it == null` since of `document.all` special case
121
121
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -148,32 +148,32 @@ var documentAll = typeof document == 'object' && document.all;
148
148
  // `IsCallable` abstract operation
149
149
  // https://tc39.es/ecma262/#sec-iscallable
150
150
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
151
+ var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
152
  return typeof argument == 'function' || argument === documentAll;
153
153
  } : function (argument) {
154
154
  return typeof argument == 'function';
155
155
  };
156
156
 
157
- var isCallable$c = isCallable$d;
157
+ var isCallable$f = isCallable$g;
158
158
 
159
159
  var isObject$8 = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$c(it);
160
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
161
161
  };
162
162
 
163
163
  var global$a = global$b;
164
- var isCallable$b = isCallable$d;
164
+ var isCallable$e = isCallable$g;
165
165
 
166
166
  var aFunction = function (argument) {
167
- return isCallable$b(argument) ? argument : undefined;
167
+ return isCallable$e(argument) ? argument : undefined;
168
168
  };
169
169
 
170
- var getBuiltIn$3 = function (namespace, method) {
170
+ var getBuiltIn$4 = function (namespace, method) {
171
171
  return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
172
172
  };
173
173
 
174
- var uncurryThis$8 = functionUncurryThis;
174
+ var uncurryThis$b = functionUncurryThis;
175
175
 
176
- var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
176
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
177
177
 
178
178
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
179
179
 
@@ -207,62 +207,62 @@ var engineV8Version = version;
207
207
 
208
208
  /* eslint-disable es/no-symbol -- required for testing */
209
209
  var V8_VERSION = engineV8Version;
210
- var fails$7 = fails$b;
210
+ var fails$8 = fails$c;
211
211
  var global$8 = global$b;
212
212
 
213
- var $String$4 = global$8.String;
213
+ var $String$6 = global$8.String;
214
214
 
215
215
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
216
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
217
217
  var symbol = Symbol('symbol detection');
218
218
  // Chrome 38 Symbol has incorrect toString conversion
219
219
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
220
220
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
221
221
  // of course, fail.
222
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
222
+ return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
223
223
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
224
224
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
225
225
  });
226
226
 
227
227
  /* eslint-disable es/no-symbol -- required for testing */
228
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
228
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
229
229
 
230
- var useSymbolAsUid = NATIVE_SYMBOL$1
230
+ var useSymbolAsUid = NATIVE_SYMBOL$2
231
231
  && !Symbol.sham
232
232
  && typeof Symbol.iterator == 'symbol';
233
233
 
234
- var getBuiltIn$2 = getBuiltIn$3;
235
- var isCallable$a = isCallable$d;
234
+ var getBuiltIn$3 = getBuiltIn$4;
235
+ var isCallable$d = isCallable$g;
236
236
  var isPrototypeOf = objectIsPrototypeOf;
237
237
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
238
238
 
239
- var $Object$2 = Object;
239
+ var $Object$3 = Object;
240
240
 
241
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
241
+ var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
242
242
  return typeof it == 'symbol';
243
243
  } : function (it) {
244
- var $Symbol = getBuiltIn$2('Symbol');
245
- return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
244
+ var $Symbol = getBuiltIn$3('Symbol');
245
+ return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
246
246
  };
247
247
 
248
- var $String$3 = String;
248
+ var $String$5 = String;
249
249
 
250
250
  var tryToString$1 = function (argument) {
251
251
  try {
252
- return $String$3(argument);
252
+ return $String$5(argument);
253
253
  } catch (error) {
254
254
  return 'Object';
255
255
  }
256
256
  };
257
257
 
258
- var isCallable$9 = isCallable$d;
258
+ var isCallable$c = isCallable$g;
259
259
  var tryToString = tryToString$1;
260
260
 
261
261
  var $TypeError$5 = TypeError;
262
262
 
263
263
  // `Assert: IsCallable(argument) is true`
264
264
  var aCallable$2 = function (argument) {
265
- if (isCallable$9(argument)) return argument;
265
+ if (isCallable$c(argument)) return argument;
266
266
  throw new $TypeError$5(tryToString(argument) + ' is not a function');
267
267
  };
268
268
 
@@ -276,8 +276,8 @@ var getMethod$1 = function (V, P) {
276
276
  return isNullOrUndefined(func) ? undefined : aCallable$1(func);
277
277
  };
278
278
 
279
- var call$4 = functionCall;
280
- var isCallable$8 = isCallable$d;
279
+ var call$6 = functionCall;
280
+ var isCallable$b = isCallable$g;
281
281
  var isObject$7 = isObject$8;
282
282
 
283
283
  var $TypeError$4 = TypeError;
@@ -286,9 +286,9 @@ var $TypeError$4 = TypeError;
286
286
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
287
287
  var ordinaryToPrimitive$1 = function (input, pref) {
288
288
  var fn, val;
289
- if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$4(fn, input))) return val;
290
- if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$4(fn, input))) return val;
291
- if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$4(fn, input))) return val;
289
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
290
+ if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$6(fn, input))) return val;
291
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
292
292
  throw new $TypeError$4("Can't convert object to primitive value");
293
293
  };
294
294
 
@@ -314,10 +314,10 @@ var SHARED = '__core-js_shared__';
314
314
  var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
315
315
 
316
316
  (store$3.versions || (store$3.versions = [])).push({
317
- version: '3.37.1',
317
+ version: '3.36.1',
318
318
  mode: 'global',
319
319
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
320
- license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
320
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
321
321
  source: 'https://github.com/zloirock/core-js'
322
322
  });
323
323
 
@@ -329,18 +329,18 @@ var shared$3 = function (key, value) {
329
329
 
330
330
  var requireObjectCoercible$1 = requireObjectCoercible$3;
331
331
 
332
- var $Object$1 = Object;
332
+ var $Object$2 = Object;
333
333
 
334
334
  // `ToObject` abstract operation
335
335
  // https://tc39.es/ecma262/#sec-toobject
336
336
  var toObject$3 = function (argument) {
337
- return $Object$1(requireObjectCoercible$1(argument));
337
+ return $Object$2(requireObjectCoercible$1(argument));
338
338
  };
339
339
 
340
- var uncurryThis$7 = functionUncurryThis;
340
+ var uncurryThis$a = functionUncurryThis;
341
341
  var toObject$2 = toObject$3;
342
342
 
343
- var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
343
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
344
344
 
345
345
  // `HasOwnProperty` abstract operation
346
346
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -349,55 +349,55 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
349
349
  return hasOwnProperty(toObject$2(it), key);
350
350
  };
351
351
 
352
- var uncurryThis$6 = functionUncurryThis;
352
+ var uncurryThis$9 = functionUncurryThis;
353
353
 
354
354
  var id = 0;
355
355
  var postfix = Math.random();
356
- var toString = uncurryThis$6(1.0.toString);
356
+ var toString$2 = uncurryThis$9(1.0.toString);
357
357
 
358
358
  var uid$2 = function (key) {
359
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
359
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
360
360
  };
361
361
 
362
362
  var global$6 = global$b;
363
363
  var shared$2 = shared$3;
364
364
  var hasOwn$8 = hasOwnProperty_1;
365
365
  var uid$1 = uid$2;
366
- var NATIVE_SYMBOL = symbolConstructorDetection;
366
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
367
367
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
368
368
 
369
369
  var Symbol$1 = global$6.Symbol;
370
370
  var WellKnownSymbolsStore = shared$2('wks');
371
371
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
372
372
 
373
- var wellKnownSymbol$6 = function (name) {
373
+ var wellKnownSymbol$8 = function (name) {
374
374
  if (!hasOwn$8(WellKnownSymbolsStore, name)) {
375
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
375
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$8(Symbol$1, name)
376
376
  ? Symbol$1[name]
377
377
  : createWellKnownSymbol('Symbol.' + name);
378
378
  } return WellKnownSymbolsStore[name];
379
379
  };
380
380
 
381
- var call$3 = functionCall;
381
+ var call$5 = functionCall;
382
382
  var isObject$6 = isObject$8;
383
- var isSymbol$1 = isSymbol$2;
383
+ var isSymbol$2 = isSymbol$3;
384
384
  var getMethod = getMethod$1;
385
385
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
386
- var wellKnownSymbol$5 = wellKnownSymbol$6;
386
+ var wellKnownSymbol$7 = wellKnownSymbol$8;
387
387
 
388
388
  var $TypeError$3 = TypeError;
389
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
389
+ var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
390
390
 
391
391
  // `ToPrimitive` abstract operation
392
392
  // https://tc39.es/ecma262/#sec-toprimitive
393
393
  var toPrimitive$1 = function (input, pref) {
394
- if (!isObject$6(input) || isSymbol$1(input)) return input;
394
+ if (!isObject$6(input) || isSymbol$2(input)) return input;
395
395
  var exoticToPrim = getMethod(input, TO_PRIMITIVE);
396
396
  var result;
397
397
  if (exoticToPrim) {
398
398
  if (pref === undefined) pref = 'default';
399
- result = call$3(exoticToPrim, input, pref);
400
- if (!isObject$6(result) || isSymbol$1(result)) return result;
399
+ result = call$5(exoticToPrim, input, pref);
400
+ if (!isObject$6(result) || isSymbol$2(result)) return result;
401
401
  throw new $TypeError$3("Can't convert object to primitive value");
402
402
  }
403
403
  if (pref === undefined) pref = 'number';
@@ -405,13 +405,13 @@ var toPrimitive$1 = function (input, pref) {
405
405
  };
406
406
 
407
407
  var toPrimitive = toPrimitive$1;
408
- var isSymbol = isSymbol$2;
408
+ var isSymbol$1 = isSymbol$3;
409
409
 
410
410
  // `ToPropertyKey` abstract operation
411
411
  // https://tc39.es/ecma262/#sec-topropertykey
412
412
  var toPropertyKey$2 = function (argument) {
413
413
  var key = toPrimitive(argument, 'string');
414
- return isSymbol(key) ? key : key + '';
414
+ return isSymbol$1(key) ? key : key + '';
415
415
  };
416
416
 
417
417
  var global$5 = global$b;
@@ -426,11 +426,11 @@ var documentCreateElement$2 = function (it) {
426
426
  };
427
427
 
428
428
  var DESCRIPTORS$9 = descriptors;
429
- var fails$6 = fails$b;
429
+ var fails$7 = fails$c;
430
430
  var createElement = documentCreateElement$2;
431
431
 
432
432
  // Thanks to IE8 for its funny defineProperty
433
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
433
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
434
434
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
435
435
  return Object.defineProperty(createElement('div'), 'a', {
436
436
  get: function () { return 7; }
@@ -438,7 +438,7 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
438
438
  });
439
439
 
440
440
  var DESCRIPTORS$8 = descriptors;
441
- var call$2 = functionCall;
441
+ var call$4 = functionCall;
442
442
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
443
443
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
444
444
  var toIndexedObject$4 = toIndexedObject$5;
@@ -457,17 +457,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
457
457
  if (IE8_DOM_DEFINE$1) try {
458
458
  return $getOwnPropertyDescriptor$1(O, P);
459
459
  } catch (error) { /* empty */ }
460
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
460
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
461
461
  };
462
462
 
463
463
  var objectDefineProperty = {};
464
464
 
465
465
  var DESCRIPTORS$7 = descriptors;
466
- var fails$5 = fails$b;
466
+ var fails$6 = fails$c;
467
467
 
468
468
  // V8 ~ Chrome 36-
469
469
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
470
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
470
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
471
471
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
472
472
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
473
473
  value: 42,
@@ -477,13 +477,13 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
477
477
 
478
478
  var isObject$4 = isObject$8;
479
479
 
480
- var $String$2 = String;
480
+ var $String$4 = String;
481
481
  var $TypeError$2 = TypeError;
482
482
 
483
483
  // `Assert: Type(argument) is Object`
484
484
  var anObject$4 = function (argument) {
485
485
  if (isObject$4(argument)) return argument;
486
- throw new $TypeError$2($String$2(argument) + ' is not an object');
486
+ throw new $TypeError$2($String$4(argument) + ' is not an object');
487
487
  };
488
488
 
489
489
  var DESCRIPTORS$6 = descriptors;
@@ -546,14 +546,14 @@ var makeBuiltIn$2 = {exports: {}};
546
546
  var DESCRIPTORS$4 = descriptors;
547
547
  var hasOwn$6 = hasOwnProperty_1;
548
548
 
549
- var FunctionPrototype = Function.prototype;
549
+ var FunctionPrototype$1 = Function.prototype;
550
550
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
551
551
  var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
552
552
 
553
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
553
+ var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
554
554
  // additional protection from minified / mangled / dropped function names
555
555
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
556
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
556
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
557
557
 
558
558
  var functionName = {
559
559
  EXISTS: EXISTS,
@@ -561,14 +561,14 @@ var functionName = {
561
561
  CONFIGURABLE: CONFIGURABLE
562
562
  };
563
563
 
564
- var uncurryThis$5 = functionUncurryThis;
565
- var isCallable$7 = isCallable$d;
564
+ var uncurryThis$8 = functionUncurryThis;
565
+ var isCallable$a = isCallable$g;
566
566
  var store$1 = sharedStore.exports;
567
567
 
568
- var functionToString = uncurryThis$5(Function.toString);
568
+ var functionToString = uncurryThis$8(Function.toString);
569
569
 
570
570
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
571
- if (!isCallable$7(store$1.inspectSource)) {
571
+ if (!isCallable$a(store$1.inspectSource)) {
572
572
  store$1.inspectSource = function (it) {
573
573
  return functionToString(it);
574
574
  };
@@ -577,11 +577,11 @@ if (!isCallable$7(store$1.inspectSource)) {
577
577
  var inspectSource$1 = store$1.inspectSource;
578
578
 
579
579
  var global$4 = global$b;
580
- var isCallable$6 = isCallable$d;
580
+ var isCallable$9 = isCallable$g;
581
581
 
582
582
  var WeakMap$1 = global$4.WeakMap;
583
583
 
584
- var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
584
+ var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
585
585
 
586
586
  var shared$1 = shared$3;
587
587
  var uid = uid$2;
@@ -665,9 +665,9 @@ var internalState = {
665
665
  getterFor: getterFor
666
666
  };
667
667
 
668
- var uncurryThis$4 = functionUncurryThis;
669
- var fails$4 = fails$b;
670
- var isCallable$5 = isCallable$d;
668
+ var uncurryThis$7 = functionUncurryThis;
669
+ var fails$5 = fails$c;
670
+ var isCallable$8 = isCallable$g;
671
671
  var hasOwn$4 = hasOwnProperty_1;
672
672
  var DESCRIPTORS$3 = descriptors;
673
673
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
@@ -676,22 +676,22 @@ var InternalStateModule$1 = internalState;
676
676
 
677
677
  var enforceInternalState = InternalStateModule$1.enforce;
678
678
  var getInternalState$1 = InternalStateModule$1.get;
679
- var $String$1 = String;
679
+ var $String$3 = String;
680
680
  // eslint-disable-next-line es/no-object-defineproperty -- safe
681
681
  var defineProperty$4 = Object.defineProperty;
682
- var stringSlice = uncurryThis$4(''.slice);
683
- var replace = uncurryThis$4(''.replace);
684
- var join = uncurryThis$4([].join);
682
+ var stringSlice = uncurryThis$7(''.slice);
683
+ var replace$1 = uncurryThis$7(''.replace);
684
+ var join = uncurryThis$7([].join);
685
685
 
686
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$4(function () {
686
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
687
687
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
688
688
  });
689
689
 
690
690
  var TEMPLATE = String(String).split('String');
691
691
 
692
692
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
693
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
694
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
693
+ if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
694
+ name = '[' + replace$1($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
695
695
  }
696
696
  if (options && options.getter) name = 'get ' + name;
697
697
  if (options && options.setter) name = 'set ' + name;
@@ -717,10 +717,10 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
717
717
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
718
718
  // eslint-disable-next-line no-extend-native -- required
719
719
  Function.prototype.toString = makeBuiltIn$1(function toString() {
720
- return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
720
+ return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
721
721
  }, 'toString');
722
722
 
723
- var isCallable$4 = isCallable$d;
723
+ var isCallable$7 = isCallable$g;
724
724
  var definePropertyModule$2 = objectDefineProperty;
725
725
  var makeBuiltIn = makeBuiltIn$2.exports;
726
726
  var defineGlobalProperty$1 = defineGlobalProperty$3;
@@ -729,7 +729,7 @@ var defineBuiltIn$3 = function (O, key, value, options) {
729
729
  if (!options) options = {};
730
730
  var simple = options.enumerable;
731
731
  var name = options.name !== undefined ? options.name : key;
732
- if (isCallable$4(value)) makeBuiltIn(value, name, options);
732
+ if (isCallable$7(value)) makeBuiltIn(value, name, options);
733
733
  if (options.global) {
734
734
  if (simple) O[key] = value;
735
735
  else defineGlobalProperty$1(key, value);
@@ -837,23 +837,23 @@ var arrayIncludes = {
837
837
  indexOf: createMethod(false)
838
838
  };
839
839
 
840
- var uncurryThis$3 = functionUncurryThis;
840
+ var uncurryThis$6 = functionUncurryThis;
841
841
  var hasOwn$3 = hasOwnProperty_1;
842
842
  var toIndexedObject$2 = toIndexedObject$5;
843
843
  var indexOf = arrayIncludes.indexOf;
844
844
  var hiddenKeys$2 = hiddenKeys$4;
845
845
 
846
- var push = uncurryThis$3([].push);
846
+ var push$1 = uncurryThis$6([].push);
847
847
 
848
848
  var objectKeysInternal = function (object, names) {
849
849
  var O = toIndexedObject$2(object);
850
850
  var i = 0;
851
851
  var result = [];
852
852
  var key;
853
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
853
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
854
854
  // Don't enum bug & hidden keys
855
855
  while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
856
- ~indexOf(result, key) || push(result, key);
856
+ ~indexOf(result, key) || push$1(result, key);
857
857
  }
858
858
  return result;
859
859
  };
@@ -886,16 +886,16 @@ var objectGetOwnPropertySymbols = {};
886
886
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
887
887
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
888
888
 
889
- var getBuiltIn$1 = getBuiltIn$3;
890
- var uncurryThis$2 = functionUncurryThis;
889
+ var getBuiltIn$2 = getBuiltIn$4;
890
+ var uncurryThis$5 = functionUncurryThis;
891
891
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
892
892
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
893
893
  var anObject$2 = anObject$4;
894
894
 
895
- var concat$1 = uncurryThis$2([].concat);
895
+ var concat$1 = uncurryThis$5([].concat);
896
896
 
897
897
  // all object keys, includes non-enumerable and symbols
898
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
898
+ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
899
899
  var keys = getOwnPropertyNamesModule.f(anObject$2(it));
900
900
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
901
901
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
@@ -918,8 +918,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
918
918
  }
919
919
  };
920
920
 
921
- var fails$3 = fails$b;
922
- var isCallable$3 = isCallable$d;
921
+ var fails$4 = fails$c;
922
+ var isCallable$6 = isCallable$g;
923
923
 
924
924
  var replacement = /#|\.prototype\./;
925
925
 
@@ -927,7 +927,7 @@ var isForced$1 = function (feature, detection) {
927
927
  var value = data[normalize(feature)];
928
928
  return value === POLYFILL ? true
929
929
  : value === NATIVE ? false
930
- : isCallable$3(detection) ? fails$3(detection)
930
+ : isCallable$6(detection) ? fails$4(detection)
931
931
  : !!detection;
932
932
  };
933
933
 
@@ -1007,9 +1007,9 @@ var objectKeys$2 = Object.keys || function keys(O) {
1007
1007
  };
1008
1008
 
1009
1009
  var DESCRIPTORS$2 = descriptors;
1010
- var uncurryThis$1 = functionUncurryThis;
1011
- var call$1 = functionCall;
1012
- var fails$2 = fails$b;
1010
+ var uncurryThis$4 = functionUncurryThis;
1011
+ var call$3 = functionCall;
1012
+ var fails$3 = fails$c;
1013
1013
  var objectKeys$1 = objectKeys$2;
1014
1014
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1015
1015
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1020,11 +1020,11 @@ var IndexedObject = indexedObject;
1020
1020
  var $assign = Object.assign;
1021
1021
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1022
1022
  var defineProperty$3 = Object.defineProperty;
1023
- var concat = uncurryThis$1([].concat);
1023
+ var concat = uncurryThis$4([].concat);
1024
1024
 
1025
1025
  // `Object.assign` method
1026
1026
  // https://tc39.es/ecma262/#sec-object.assign
1027
- var objectAssign = !$assign || fails$2(function () {
1027
+ var objectAssign = !$assign || fails$3(function () {
1028
1028
  // should have correct order of operations (Edge bug)
1029
1029
  if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1030
1030
  enumerable: true,
@@ -1058,18 +1058,18 @@ var objectAssign = !$assign || fails$2(function () {
1058
1058
  var key;
1059
1059
  while (length > j) {
1060
1060
  key = keys[j++];
1061
- if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1061
+ if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1062
1062
  }
1063
1063
  } return T;
1064
1064
  } : $assign;
1065
1065
 
1066
- var $$1 = _export;
1066
+ var $$2 = _export;
1067
1067
  var assign = objectAssign;
1068
1068
 
1069
1069
  // `Object.assign` method
1070
1070
  // https://tc39.es/ecma262/#sec-object.assign
1071
1071
  // eslint-disable-next-line es/no-object-assign -- required for testing
1072
- $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1072
+ $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1073
1073
  assign: assign
1074
1074
  });
1075
1075
 
@@ -1096,9 +1096,9 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1096
1096
  return O;
1097
1097
  };
1098
1098
 
1099
- var getBuiltIn = getBuiltIn$3;
1099
+ var getBuiltIn$1 = getBuiltIn$4;
1100
1100
 
1101
- var html$1 = getBuiltIn('document', 'documentElement');
1101
+ var html$1 = getBuiltIn$1('document', 'documentElement');
1102
1102
 
1103
1103
  /* global ActiveXObject -- old IE, WSH */
1104
1104
  var anObject = anObject$4;
@@ -1184,11 +1184,11 @@ var objectCreate = Object.create || function create(O, Properties) {
1184
1184
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1185
1185
  };
1186
1186
 
1187
- var wellKnownSymbol$4 = wellKnownSymbol$6;
1187
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
1188
1188
  var create$1 = objectCreate;
1189
1189
  var defineProperty$2 = objectDefineProperty.f;
1190
1190
 
1191
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1191
+ var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1192
1192
  var ArrayPrototype = Array.prototype;
1193
1193
 
1194
1194
  // Array.prototype[@@unscopables]
@@ -1207,9 +1207,9 @@ var addToUnscopables$1 = function (key) {
1207
1207
 
1208
1208
  var iterators = {};
1209
1209
 
1210
- var fails$1 = fails$b;
1210
+ var fails$2 = fails$c;
1211
1211
 
1212
- var correctPrototypeGetter = !fails$1(function () {
1212
+ var correctPrototypeGetter = !fails$2(function () {
1213
1213
  function F() { /* empty */ }
1214
1214
  F.prototype.constructor = null;
1215
1215
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1217,35 +1217,35 @@ var correctPrototypeGetter = !fails$1(function () {
1217
1217
  });
1218
1218
 
1219
1219
  var hasOwn$1 = hasOwnProperty_1;
1220
- var isCallable$2 = isCallable$d;
1220
+ var isCallable$5 = isCallable$g;
1221
1221
  var toObject = toObject$3;
1222
1222
  var sharedKey = sharedKey$3;
1223
1223
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1224
1224
 
1225
1225
  var IE_PROTO = sharedKey('IE_PROTO');
1226
- var $Object = Object;
1227
- var ObjectPrototype = $Object.prototype;
1226
+ var $Object$1 = Object;
1227
+ var ObjectPrototype = $Object$1.prototype;
1228
1228
 
1229
1229
  // `Object.getPrototypeOf` method
1230
1230
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1231
1231
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1232
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1232
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1233
1233
  var object = toObject(O);
1234
1234
  if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1235
1235
  var constructor = object.constructor;
1236
- if (isCallable$2(constructor) && object instanceof constructor) {
1236
+ if (isCallable$5(constructor) && object instanceof constructor) {
1237
1237
  return constructor.prototype;
1238
- } return object instanceof $Object ? ObjectPrototype : null;
1238
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1239
1239
  };
1240
1240
 
1241
- var fails = fails$b;
1242
- var isCallable$1 = isCallable$d;
1241
+ var fails$1 = fails$c;
1242
+ var isCallable$4 = isCallable$g;
1243
1243
  var isObject$2 = isObject$8;
1244
1244
  var getPrototypeOf$1 = objectGetPrototypeOf;
1245
1245
  var defineBuiltIn$1 = defineBuiltIn$3;
1246
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1246
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
1247
1247
 
1248
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1248
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
1249
1249
  var BUGGY_SAFARI_ITERATORS$1 = false;
1250
1250
 
1251
1251
  // `%IteratorPrototype%` object
@@ -1263,7 +1263,7 @@ if ([].keys) {
1263
1263
  }
1264
1264
  }
1265
1265
 
1266
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails(function () {
1266
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$1(function () {
1267
1267
  var test = {};
1268
1268
  // FF44- legacy iterators case
1269
1269
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1273,7 +1273,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1273
1273
 
1274
1274
  // `%IteratorPrototype%[@@iterator]()` method
1275
1275
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1276
- if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
1276
+ if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1277
1277
  defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1278
1278
  return this;
1279
1279
  });
@@ -1286,14 +1286,14 @@ var iteratorsCore = {
1286
1286
 
1287
1287
  var defineProperty$1 = objectDefineProperty.f;
1288
1288
  var hasOwn = hasOwnProperty_1;
1289
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1289
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
1290
1290
 
1291
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1291
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1292
1292
 
1293
1293
  var setToStringTag$3 = function (target, TAG, STATIC) {
1294
1294
  if (target && !STATIC) target = target.prototype;
1295
- if (target && !hasOwn(target, TO_STRING_TAG)) {
1296
- defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
1295
+ if (target && !hasOwn(target, TO_STRING_TAG$2)) {
1296
+ defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1297
1297
  }
1298
1298
  };
1299
1299
 
@@ -1313,13 +1313,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1313
1313
  return IteratorConstructor;
1314
1314
  };
1315
1315
 
1316
- var uncurryThis = functionUncurryThis;
1316
+ var uncurryThis$3 = functionUncurryThis;
1317
1317
  var aCallable = aCallable$2;
1318
1318
 
1319
1319
  var functionUncurryThisAccessor = function (object, key, method) {
1320
1320
  try {
1321
1321
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1322
- return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1322
+ return uncurryThis$3(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1323
1323
  } catch (error) { /* empty */ }
1324
1324
  };
1325
1325
 
@@ -1331,12 +1331,12 @@ var isPossiblePrototype$1 = function (argument) {
1331
1331
 
1332
1332
  var isPossiblePrototype = isPossiblePrototype$1;
1333
1333
 
1334
- var $String = String;
1334
+ var $String$2 = String;
1335
1335
  var $TypeError = TypeError;
1336
1336
 
1337
1337
  var aPossiblePrototype$1 = function (argument) {
1338
1338
  if (isPossiblePrototype(argument)) return argument;
1339
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1339
+ throw new $TypeError("Can't set " + $String$2(argument) + ' as a prototype');
1340
1340
  };
1341
1341
 
1342
1342
  /* eslint-disable no-proto -- safe */
@@ -1368,17 +1368,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1368
1368
  };
1369
1369
  }() : undefined);
1370
1370
 
1371
- var $ = _export;
1372
- var call = functionCall;
1371
+ var $$1 = _export;
1372
+ var call$2 = functionCall;
1373
1373
  var FunctionName = functionName;
1374
- var isCallable = isCallable$d;
1374
+ var isCallable$3 = isCallable$g;
1375
1375
  var createIteratorConstructor = iteratorCreateConstructor;
1376
1376
  var getPrototypeOf = objectGetPrototypeOf;
1377
1377
  var setPrototypeOf = objectSetPrototypeOf;
1378
1378
  var setToStringTag$1 = setToStringTag$3;
1379
1379
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1380
1380
  var defineBuiltIn = defineBuiltIn$3;
1381
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1381
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
1382
1382
  var Iterators$1 = iterators;
1383
1383
  var IteratorsCore = iteratorsCore;
1384
1384
 
@@ -1386,7 +1386,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1386
1386
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1387
1387
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1388
1388
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1389
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1389
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
1390
1390
  var KEYS = 'keys';
1391
1391
  var VALUES = 'values';
1392
1392
  var ENTRIES = 'entries';
@@ -1426,7 +1426,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1426
1426
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1427
1427
  if (setPrototypeOf) {
1428
1428
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1429
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1429
+ } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1430
1430
  defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1431
1431
  }
1432
1432
  }
@@ -1441,7 +1441,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1441
1441
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1442
1442
  } else {
1443
1443
  INCORRECT_VALUES_NAME = true;
1444
- defaultIterator = function values() { return call(nativeIterator, this); };
1444
+ defaultIterator = function values() { return call$2(nativeIterator, this); };
1445
1445
  }
1446
1446
  }
1447
1447
 
@@ -1456,7 +1456,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1456
1456
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1457
1457
  defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1458
1458
  }
1459
- } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1459
+ } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1460
1460
  }
1461
1461
 
1462
1462
  // define iterator
@@ -1585,9 +1585,9 @@ var DOMTokenListPrototype = domTokenListPrototype;
1585
1585
  var ArrayIteratorMethods = es_array_iterator;
1586
1586
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1587
1587
  var setToStringTag = setToStringTag$3;
1588
- var wellKnownSymbol = wellKnownSymbol$6;
1588
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
1589
1589
 
1590
- var ITERATOR = wellKnownSymbol('iterator');
1590
+ var ITERATOR = wellKnownSymbol$2('iterator');
1591
1591
  var ArrayValues = ArrayIteratorMethods.values;
1592
1592
 
1593
1593
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -1617,24 +1617,31 @@ for (var COLLECTION_NAME in DOMIterables) {
1617
1617
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1618
1618
 
1619
1619
  const useDotcmsEditor = ({
1620
- pathname
1620
+ pathname,
1621
+ onReload
1621
1622
  }) => {
1622
1623
  const [isInsideEditor$1, setIsInsideEditor] = useState(false);
1623
1624
  useEffect(() => {
1624
1625
  const insideEditor = isInsideEditor();
1625
- if (insideEditor) {
1626
- initEditor({
1627
- pathname
1628
- });
1629
- updateNavigation(pathname || '/');
1630
- setIsInsideEditor(insideEditor);
1626
+ if (!insideEditor) {
1627
+ return;
1631
1628
  }
1632
- return () => {
1633
- if (insideEditor) {
1634
- destroyEditor();
1635
- }
1636
- };
1629
+ initEditor({
1630
+ pathname
1631
+ });
1632
+ updateNavigation(pathname || '/');
1633
+ setIsInsideEditor(insideEditor);
1634
+ return () => destroyEditor();
1637
1635
  }, [pathname]);
1636
+ useEffect(() => {
1637
+ const insideEditor = isInsideEditor();
1638
+ const client = DotCmsClient.instance;
1639
+ if (!insideEditor || !onReload) {
1640
+ return;
1641
+ }
1642
+ client.editor.on('changes', () => onReload == null ? void 0 : onReload());
1643
+ return () => client.editor.off('changes');
1644
+ }, [onReload]);
1638
1645
  return {
1639
1646
  isInsideEditor: isInsideEditor$1
1640
1647
  };
@@ -1758,6 +1765,181 @@ var css_248z = ".column-module_col-start-1__GK-q- {\n grid-column-start: 1;\n
1758
1765
  var styles = {"col-start-1":"column-module_col-start-1__GK-q-","col-start-2":"column-module_col-start-2__1DmkY","col-start-3":"column-module_col-start-3__HNEPh","col-start-4":"column-module_col-start-4__oCAwh","col-start-5":"column-module_col-start-5__re1rB","col-start-6":"column-module_col-start-6__dkB4w","col-start-7":"column-module_col-start-7__kEfJb","col-start-8":"column-module_col-start-8__Yx31z","col-start-9":"column-module_col-start-9__9YiVY","col-start-10":"column-module_col-start-10__6AFbk","col-start-11":"column-module_col-start-11__LP24D","col-start-12":"column-module_col-start-12__8p0QS","col-end-1":"column-module_col-end-1__G9axv","col-end-2":"column-module_col-end-2__pYjHG","col-end-3":"column-module_col-end-3__4woe6","col-end-4":"column-module_col-end-4__zlBaT","col-end-5":"column-module_col-end-5__aC-y8","col-end-6":"column-module_col-end-6__YljAP","col-end-7":"column-module_col-end-7__lpQrW","col-end-8":"column-module_col-end-8__F6UVd","col-end-9":"column-module_col-end-9__kvQ3T","col-end-10":"column-module_col-end-10__XJhrd","col-end-11":"column-module_col-end-11__nx-lF","col-end-12":"column-module_col-end-12__LIRnk","col-end-13":"column-module_col-end-13__0p7YI"};
1759
1766
  styleInject(css_248z);
1760
1767
 
1768
+ var NATIVE_BIND = functionBindNative;
1769
+
1770
+ var FunctionPrototype = Function.prototype;
1771
+ var apply$1 = FunctionPrototype.apply;
1772
+ var call$1 = FunctionPrototype.call;
1773
+
1774
+ // eslint-disable-next-line es/no-reflect -- safe
1775
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
1776
+ return call$1.apply(apply$1, arguments);
1777
+ });
1778
+
1779
+ var uncurryThis$2 = functionUncurryThis;
1780
+
1781
+ var arraySlice$1 = uncurryThis$2([].slice);
1782
+
1783
+ var classof$3 = classofRaw$1;
1784
+
1785
+ // `IsArray` abstract operation
1786
+ // https://tc39.es/ecma262/#sec-isarray
1787
+ // eslint-disable-next-line es/no-array-isarray -- safe
1788
+ var isArray$1 = Array.isArray || function isArray(argument) {
1789
+ return classof$3(argument) === 'Array';
1790
+ };
1791
+
1792
+ var wellKnownSymbol$1 = wellKnownSymbol$8;
1793
+
1794
+ var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
1795
+ var test = {};
1796
+
1797
+ test[TO_STRING_TAG$1] = 'z';
1798
+
1799
+ var toStringTagSupport = String(test) === '[object z]';
1800
+
1801
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1802
+ var isCallable$2 = isCallable$g;
1803
+ var classofRaw = classofRaw$1;
1804
+ var wellKnownSymbol = wellKnownSymbol$8;
1805
+
1806
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1807
+ var $Object = Object;
1808
+
1809
+ // ES3 wrong here
1810
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1811
+
1812
+ // fallback for IE11 Script Access Denied error
1813
+ var tryGet = function (it, key) {
1814
+ try {
1815
+ return it[key];
1816
+ } catch (error) { /* empty */ }
1817
+ };
1818
+
1819
+ // getting tag from ES6+ `Object.prototype.toString`
1820
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1821
+ var O, tag, result;
1822
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1823
+ // @@toStringTag case
1824
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1825
+ // builtinTag case
1826
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1827
+ // ES3 arguments fallback
1828
+ : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1829
+ };
1830
+
1831
+ var classof$1 = classof$2;
1832
+
1833
+ var $String$1 = String;
1834
+
1835
+ var toString$1 = function (argument) {
1836
+ if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1837
+ return $String$1(argument);
1838
+ };
1839
+
1840
+ var uncurryThis$1 = functionUncurryThis;
1841
+ var isArray = isArray$1;
1842
+ var isCallable$1 = isCallable$g;
1843
+ var classof = classofRaw$1;
1844
+ var toString = toString$1;
1845
+
1846
+ var push = uncurryThis$1([].push);
1847
+
1848
+ var getJsonReplacerFunction = function (replacer) {
1849
+ if (isCallable$1(replacer)) return replacer;
1850
+ if (!isArray(replacer)) return;
1851
+ var rawLength = replacer.length;
1852
+ var keys = [];
1853
+ for (var i = 0; i < rawLength; i++) {
1854
+ var element = replacer[i];
1855
+ if (typeof element == 'string') push(keys, element);
1856
+ else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
1857
+ }
1858
+ var keysLength = keys.length;
1859
+ var root = true;
1860
+ return function (key, value) {
1861
+ if (root) {
1862
+ root = false;
1863
+ return value;
1864
+ }
1865
+ if (isArray(this)) return value;
1866
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1867
+ };
1868
+ };
1869
+
1870
+ var $ = _export;
1871
+ var getBuiltIn = getBuiltIn$4;
1872
+ var apply = functionApply;
1873
+ var call = functionCall;
1874
+ var uncurryThis = functionUncurryThis;
1875
+ var fails = fails$c;
1876
+ var isCallable = isCallable$g;
1877
+ var isSymbol = isSymbol$3;
1878
+ var arraySlice = arraySlice$1;
1879
+ var getReplacerFunction = getJsonReplacerFunction;
1880
+ var NATIVE_SYMBOL = symbolConstructorDetection;
1881
+
1882
+ var $String = String;
1883
+ var $stringify = getBuiltIn('JSON', 'stringify');
1884
+ var exec = uncurryThis(/./.exec);
1885
+ var charAt = uncurryThis(''.charAt);
1886
+ var charCodeAt = uncurryThis(''.charCodeAt);
1887
+ var replace = uncurryThis(''.replace);
1888
+ var numberToString = uncurryThis(1.0.toString);
1889
+
1890
+ var tester = /[\uD800-\uDFFF]/g;
1891
+ var low = /^[\uD800-\uDBFF]$/;
1892
+ var hi = /^[\uDC00-\uDFFF]$/;
1893
+
1894
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
1895
+ var symbol = getBuiltIn('Symbol')('stringify detection');
1896
+ // MS Edge converts symbol values to JSON as {}
1897
+ return $stringify([symbol]) !== '[null]'
1898
+ // WebKit converts symbol values to JSON as null
1899
+ || $stringify({ a: symbol }) !== '{}'
1900
+ // V8 throws on boxed symbols
1901
+ || $stringify(Object(symbol)) !== '{}';
1902
+ });
1903
+
1904
+ // https://github.com/tc39/proposal-well-formed-stringify
1905
+ var ILL_FORMED_UNICODE = fails(function () {
1906
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1907
+ || $stringify('\uDEAD') !== '"\\udead"';
1908
+ });
1909
+
1910
+ var stringifyWithSymbolsFix = function (it, replacer) {
1911
+ var args = arraySlice(arguments);
1912
+ var $replacer = getReplacerFunction(replacer);
1913
+ if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
1914
+ args[1] = function (key, value) {
1915
+ // some old implementations (like WebKit) could pass numbers as keys
1916
+ if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
1917
+ if (!isSymbol(value)) return value;
1918
+ };
1919
+ return apply($stringify, null, args);
1920
+ };
1921
+
1922
+ var fixIllFormed = function (match, offset, string) {
1923
+ var prev = charAt(string, offset - 1);
1924
+ var next = charAt(string, offset + 1);
1925
+ if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
1926
+ return '\\u' + numberToString(charCodeAt(match, 0), 16);
1927
+ } return match;
1928
+ };
1929
+
1930
+ if ($stringify) {
1931
+ // `JSON.stringify` method
1932
+ // https://tc39.es/ecma262/#sec-json.stringify
1933
+ $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
1934
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1935
+ stringify: function stringify(it, replacer, space) {
1936
+ var args = arraySlice(arguments);
1937
+ var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
1938
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;
1939
+ }
1940
+ });
1941
+ }
1942
+
1761
1943
  function NoComponent({
1762
1944
  contentType
1763
1945
  }) {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dotcms/react",
3
- "version": "0.0.1-alpha.27",
3
+ "version": "0.0.1-alpha.29",
4
4
  "peerDependencies": {
5
5
  "react": ">=18",
6
6
  "react-dom": ">=18",
7
- "@dotcms/client": "0.0.1-alpha.27"
7
+ "@dotcms/client": "0.0.1-alpha.29"
8
8
  },
9
9
  "description": "Official React Components library to render a dotCMS page.",
10
10
  "repository": {
@@ -1,4 +1,4 @@
1
1
  import { DotCMSPageEditorConfig } from '@dotcms/client';
2
- export declare const useDotcmsEditor: ({ pathname }: DotCMSPageEditorConfig) => {
2
+ export declare const useDotcmsEditor: ({ pathname, onReload }: DotCMSPageEditorConfig) => {
3
3
  isInsideEditor: boolean;
4
4
  };