@dotcms/react 0.0.1-alpha.16 → 0.0.1-alpha.18
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 +83 -84
- package/package.json +2 -2
- package/src/lib/components/Column/Column.d.ts +2 -2
- package/src/lib/components/Container/Container.d.ts +2 -2
- package/src/lib/components/DotcmsLayout/DotcmsLayout.d.ts +7 -7
- package/src/lib/components/PageProvider/PageProvider.d.ts +1 -74
- package/src/lib/components/Row/Row.d.ts +3 -3
- package/src/lib/contexts/PageContext.d.ts +2 -2
- package/src/lib/hooks/useDotcmsPageContext.d.ts +3 -3
- package/src/lib/mocks/mockPageContext.d.ts +3 -3
- package/src/lib/models/index.d.ts +75 -0
- package/src/lib/utils/utils.d.ts +3 -3
package/index.esm.js
CHANGED
|
@@ -9,7 +9,7 @@ var check = function (it) {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
12
|
-
var global$
|
|
12
|
+
var global$c =
|
|
13
13
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
14
14
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
15
15
|
check(typeof window == 'object' && window) ||
|
|
@@ -129,17 +129,17 @@ var $TypeError$6 = TypeError;
|
|
|
129
129
|
|
|
130
130
|
// `RequireObjectCoercible` abstract operation
|
|
131
131
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
132
|
-
var requireObjectCoercible$
|
|
132
|
+
var requireObjectCoercible$2 = function (it) {
|
|
133
133
|
if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
|
|
134
134
|
return it;
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
// toObject with fallback for non-array-like ES3 strings
|
|
138
138
|
var IndexedObject$1 = indexedObject;
|
|
139
|
-
var requireObjectCoercible$
|
|
139
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
140
140
|
|
|
141
141
|
var toIndexedObject$5 = function (it) {
|
|
142
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
142
|
+
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -156,11 +156,11 @@ var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
156
156
|
|
|
157
157
|
var isCallable$c = isCallable$d;
|
|
158
158
|
|
|
159
|
-
var isObject$
|
|
159
|
+
var isObject$7 = function (it) {
|
|
160
160
|
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
var global$
|
|
163
|
+
var global$b = global$c;
|
|
164
164
|
var isCallable$b = isCallable$d;
|
|
165
165
|
|
|
166
166
|
var aFunction = function (argument) {
|
|
@@ -168,7 +168,7 @@ var aFunction = function (argument) {
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
var getBuiltIn$3 = function (namespace, method) {
|
|
171
|
-
return arguments.length < 2 ? aFunction(global$
|
|
171
|
+
return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
var uncurryThis$8 = functionUncurryThis;
|
|
@@ -177,11 +177,11 @@ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
|
|
|
177
177
|
|
|
178
178
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
179
179
|
|
|
180
|
-
var global$
|
|
180
|
+
var global$a = global$c;
|
|
181
181
|
var userAgent = engineUserAgent;
|
|
182
182
|
|
|
183
|
-
var process = global$
|
|
184
|
-
var Deno = global$
|
|
183
|
+
var process = global$a.process;
|
|
184
|
+
var Deno = global$a.Deno;
|
|
185
185
|
var versions = process && process.versions || Deno && Deno.version;
|
|
186
186
|
var v8 = versions && versions.v8;
|
|
187
187
|
var match, version;
|
|
@@ -208,9 +208,9 @@ var engineV8Version = version;
|
|
|
208
208
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
209
209
|
var V8_VERSION = engineV8Version;
|
|
210
210
|
var fails$7 = fails$b;
|
|
211
|
-
var global$
|
|
211
|
+
var global$9 = global$c;
|
|
212
212
|
|
|
213
|
-
var $String$4 = global$
|
|
213
|
+
var $String$4 = global$9.String;
|
|
214
214
|
|
|
215
215
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
216
216
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
|
@@ -278,7 +278,7 @@ var getMethod$1 = function (V, P) {
|
|
|
278
278
|
|
|
279
279
|
var call$4 = functionCall;
|
|
280
280
|
var isCallable$8 = isCallable$d;
|
|
281
|
-
var isObject$
|
|
281
|
+
var isObject$6 = isObject$7;
|
|
282
282
|
|
|
283
283
|
var $TypeError$4 = TypeError;
|
|
284
284
|
|
|
@@ -286,55 +286,55 @@ 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$
|
|
290
|
-
if (isCallable$8(fn = input.valueOf) && !isObject$
|
|
291
|
-
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$
|
|
289
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$6(val = call$4(fn, input))) return val;
|
|
290
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$6(val = call$4(fn, input))) return val;
|
|
291
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$6(val = call$4(fn, input))) return val;
|
|
292
292
|
throw new $TypeError$4("Can't convert object to primitive value");
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var shared$3 = {exports: {}};
|
|
296
296
|
|
|
297
|
-
var global$
|
|
297
|
+
var global$8 = global$c;
|
|
298
298
|
|
|
299
299
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
300
300
|
var defineProperty$5 = Object.defineProperty;
|
|
301
301
|
|
|
302
302
|
var defineGlobalProperty$3 = function (key, value) {
|
|
303
303
|
try {
|
|
304
|
-
defineProperty$5(global$
|
|
304
|
+
defineProperty$5(global$8, key, { value: value, configurable: true, writable: true });
|
|
305
305
|
} catch (error) {
|
|
306
|
-
global$
|
|
306
|
+
global$8[key] = value;
|
|
307
307
|
} return value;
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
-
var
|
|
310
|
+
var global$7 = global$c;
|
|
311
311
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
312
312
|
|
|
313
313
|
var SHARED = '__core-js_shared__';
|
|
314
|
-
var store$3 =
|
|
314
|
+
var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
315
315
|
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
var sharedStore = store$3;
|
|
317
|
+
|
|
318
|
+
var store$2 = sharedStore;
|
|
319
|
+
|
|
320
|
+
(shared$3.exports = function (key, value) {
|
|
321
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
322
|
+
})('versions', []).push({
|
|
323
|
+
version: '3.35.1',
|
|
318
324
|
mode: 'global',
|
|
319
325
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
320
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
326
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
|
|
321
327
|
source: 'https://github.com/zloirock/core-js'
|
|
322
328
|
});
|
|
323
329
|
|
|
324
|
-
var
|
|
325
|
-
|
|
326
|
-
var shared$3 = function (key, value) {
|
|
327
|
-
return store$2[key] || (store$2[key] = value || {});
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
330
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
331
331
|
|
|
332
332
|
var $Object$1 = 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
|
|
337
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
338
338
|
};
|
|
339
339
|
|
|
340
340
|
var uncurryThis$7 = functionUncurryThis;
|
|
@@ -359,8 +359,8 @@ var uid$2 = function (key) {
|
|
|
359
359
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
var global$6 = global$
|
|
363
|
-
var shared$2 = shared$3;
|
|
362
|
+
var global$6 = global$c;
|
|
363
|
+
var shared$2 = shared$3.exports;
|
|
364
364
|
var hasOwn$8 = hasOwnProperty_1;
|
|
365
365
|
var uid$1 = uid$2;
|
|
366
366
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
@@ -379,7 +379,7 @@ var wellKnownSymbol$6 = function (name) {
|
|
|
379
379
|
};
|
|
380
380
|
|
|
381
381
|
var call$3 = functionCall;
|
|
382
|
-
var isObject$
|
|
382
|
+
var isObject$5 = isObject$7;
|
|
383
383
|
var isSymbol$1 = isSymbol$2;
|
|
384
384
|
var getMethod = getMethod$1;
|
|
385
385
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -391,13 +391,13 @@ var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
|
391
391
|
// `ToPrimitive` abstract operation
|
|
392
392
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
393
393
|
var toPrimitive$1 = function (input, pref) {
|
|
394
|
-
if (!isObject$
|
|
394
|
+
if (!isObject$5(input) || isSymbol$1(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
399
|
result = call$3(exoticToPrim, input, pref);
|
|
400
|
-
if (!isObject$
|
|
400
|
+
if (!isObject$5(result) || isSymbol$1(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';
|
|
@@ -414,12 +414,12 @@ var toPropertyKey$2 = function (argument) {
|
|
|
414
414
|
return isSymbol(key) ? key : key + '';
|
|
415
415
|
};
|
|
416
416
|
|
|
417
|
-
var global$5 = global$
|
|
418
|
-
var isObject$
|
|
417
|
+
var global$5 = global$c;
|
|
418
|
+
var isObject$4 = isObject$7;
|
|
419
419
|
|
|
420
420
|
var document$1 = global$5.document;
|
|
421
421
|
// typeof document.createElement is 'object' in old IE
|
|
422
|
-
var EXISTS$1 = isObject$
|
|
422
|
+
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
423
423
|
|
|
424
424
|
var documentCreateElement$2 = function (it) {
|
|
425
425
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
@@ -475,21 +475,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
|
|
|
475
475
|
}).prototype !== 42;
|
|
476
476
|
});
|
|
477
477
|
|
|
478
|
-
var isObject$
|
|
478
|
+
var isObject$3 = isObject$7;
|
|
479
479
|
|
|
480
480
|
var $String$2 = String;
|
|
481
481
|
var $TypeError$2 = TypeError;
|
|
482
482
|
|
|
483
483
|
// `Assert: Type(argument) is Object`
|
|
484
|
-
var anObject$
|
|
485
|
-
if (isObject$
|
|
484
|
+
var anObject$5 = function (argument) {
|
|
485
|
+
if (isObject$3(argument)) return argument;
|
|
486
486
|
throw new $TypeError$2($String$2(argument) + ' is not an object');
|
|
487
487
|
};
|
|
488
488
|
|
|
489
489
|
var DESCRIPTORS$6 = descriptors;
|
|
490
490
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
491
491
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
492
|
-
var anObject$
|
|
492
|
+
var anObject$4 = anObject$5;
|
|
493
493
|
var toPropertyKey = toPropertyKey$2;
|
|
494
494
|
|
|
495
495
|
var $TypeError$1 = TypeError;
|
|
@@ -504,9 +504,9 @@ var WRITABLE = 'writable';
|
|
|
504
504
|
// `Object.defineProperty` method
|
|
505
505
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
506
506
|
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
507
|
-
anObject$
|
|
507
|
+
anObject$4(O);
|
|
508
508
|
P = toPropertyKey(P);
|
|
509
|
-
anObject$
|
|
509
|
+
anObject$4(Attributes);
|
|
510
510
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
511
511
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
512
512
|
if (current && current[WRITABLE]) {
|
|
@@ -519,9 +519,9 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
519
519
|
}
|
|
520
520
|
} return $defineProperty(O, P, Attributes);
|
|
521
521
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
522
|
-
anObject$
|
|
522
|
+
anObject$4(O);
|
|
523
523
|
P = toPropertyKey(P);
|
|
524
|
-
anObject$
|
|
524
|
+
anObject$4(Attributes);
|
|
525
525
|
if (IE8_DOM_DEFINE) try {
|
|
526
526
|
return $defineProperty(O, P, Attributes);
|
|
527
527
|
} catch (error) { /* empty */ }
|
|
@@ -563,7 +563,7 @@ var functionName = {
|
|
|
563
563
|
|
|
564
564
|
var uncurryThis$5 = functionUncurryThis;
|
|
565
565
|
var isCallable$7 = isCallable$d;
|
|
566
|
-
var store$1 = sharedStore
|
|
566
|
+
var store$1 = sharedStore;
|
|
567
567
|
|
|
568
568
|
var functionToString = uncurryThis$5(Function.toString);
|
|
569
569
|
|
|
@@ -576,14 +576,14 @@ if (!isCallable$7(store$1.inspectSource)) {
|
|
|
576
576
|
|
|
577
577
|
var inspectSource$1 = store$1.inspectSource;
|
|
578
578
|
|
|
579
|
-
var global$4 = global$
|
|
579
|
+
var global$4 = global$c;
|
|
580
580
|
var isCallable$6 = isCallable$d;
|
|
581
581
|
|
|
582
582
|
var WeakMap$1 = global$4.WeakMap;
|
|
583
583
|
|
|
584
584
|
var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
585
585
|
|
|
586
|
-
var shared$1 = shared$3;
|
|
586
|
+
var shared$1 = shared$3.exports;
|
|
587
587
|
var uid = uid$2;
|
|
588
588
|
|
|
589
589
|
var keys = shared$1('keys');
|
|
@@ -595,11 +595,11 @@ var sharedKey$3 = function (key) {
|
|
|
595
595
|
var hiddenKeys$4 = {};
|
|
596
596
|
|
|
597
597
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
598
|
-
var global$3 = global$
|
|
599
|
-
var isObject$
|
|
598
|
+
var global$3 = global$c;
|
|
599
|
+
var isObject$2 = isObject$7;
|
|
600
600
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
601
601
|
var hasOwn$5 = hasOwnProperty_1;
|
|
602
|
-
var shared = sharedStore
|
|
602
|
+
var shared = sharedStore;
|
|
603
603
|
var sharedKey$2 = sharedKey$3;
|
|
604
604
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
605
605
|
|
|
@@ -615,7 +615,7 @@ var enforce = function (it) {
|
|
|
615
615
|
var getterFor = function (TYPE) {
|
|
616
616
|
return function (it) {
|
|
617
617
|
var state;
|
|
618
|
-
if (!isObject$
|
|
618
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
619
619
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
620
620
|
} return state;
|
|
621
621
|
};
|
|
@@ -812,7 +812,6 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
812
812
|
return function ($this, el, fromIndex) {
|
|
813
813
|
var O = toIndexedObject$3($this);
|
|
814
814
|
var length = lengthOfArrayLike(O);
|
|
815
|
-
if (length === 0) return !IS_INCLUDES && -1;
|
|
816
815
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
817
816
|
var value;
|
|
818
817
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -890,13 +889,13 @@ var getBuiltIn$1 = getBuiltIn$3;
|
|
|
890
889
|
var uncurryThis$2 = functionUncurryThis;
|
|
891
890
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
892
891
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
893
|
-
var anObject$
|
|
892
|
+
var anObject$3 = anObject$5;
|
|
894
893
|
|
|
895
894
|
var concat$1 = uncurryThis$2([].concat);
|
|
896
895
|
|
|
897
896
|
// all object keys, includes non-enumerable and symbols
|
|
898
897
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
899
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
898
|
+
var keys = getOwnPropertyNamesModule.f(anObject$3(it));
|
|
900
899
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
901
900
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
902
901
|
};
|
|
@@ -941,7 +940,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
941
940
|
|
|
942
941
|
var isForced_1 = isForced$1;
|
|
943
942
|
|
|
944
|
-
var global$2 = global$
|
|
943
|
+
var global$2 = global$c;
|
|
945
944
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
946
945
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
947
946
|
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
@@ -1078,7 +1077,7 @@ var objectDefineProperties = {};
|
|
|
1078
1077
|
var DESCRIPTORS$1 = descriptors;
|
|
1079
1078
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1080
1079
|
var definePropertyModule = objectDefineProperty;
|
|
1081
|
-
var anObject$
|
|
1080
|
+
var anObject$2 = anObject$5;
|
|
1082
1081
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1083
1082
|
var objectKeys = objectKeys$2;
|
|
1084
1083
|
|
|
@@ -1086,7 +1085,7 @@ var objectKeys = objectKeys$2;
|
|
|
1086
1085
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1087
1086
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1088
1087
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1089
|
-
anObject$
|
|
1088
|
+
anObject$2(O);
|
|
1090
1089
|
var props = toIndexedObject$1(Properties);
|
|
1091
1090
|
var keys = objectKeys(Properties);
|
|
1092
1091
|
var length = keys.length;
|
|
@@ -1101,7 +1100,7 @@ var getBuiltIn = getBuiltIn$3;
|
|
|
1101
1100
|
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1102
1101
|
|
|
1103
1102
|
/* global ActiveXObject -- old IE, WSH */
|
|
1104
|
-
var anObject = anObject$
|
|
1103
|
+
var anObject$1 = anObject$5;
|
|
1105
1104
|
var definePropertiesModule = objectDefineProperties;
|
|
1106
1105
|
var enumBugKeys = enumBugKeys$3;
|
|
1107
1106
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1175,7 +1174,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1175
1174
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1176
1175
|
var result;
|
|
1177
1176
|
if (O !== null) {
|
|
1178
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1177
|
+
EmptyConstructor[PROTOTYPE] = anObject$1(O);
|
|
1179
1178
|
result = new EmptyConstructor();
|
|
1180
1179
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1181
1180
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1240,7 +1239,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
1240
1239
|
|
|
1241
1240
|
var fails = fails$b;
|
|
1242
1241
|
var isCallable$1 = isCallable$d;
|
|
1243
|
-
var isObject$
|
|
1242
|
+
var isObject$1 = isObject$7;
|
|
1244
1243
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1245
1244
|
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1246
1245
|
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
@@ -1263,7 +1262,7 @@ if ([].keys) {
|
|
|
1263
1262
|
}
|
|
1264
1263
|
}
|
|
1265
1264
|
|
|
1266
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1265
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails(function () {
|
|
1267
1266
|
var test = {};
|
|
1268
1267
|
// FF44- legacy iterators case
|
|
1269
1268
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1323,10 +1322,10 @@ var functionUncurryThisAccessor = function (object, key, method) {
|
|
|
1323
1322
|
} catch (error) { /* empty */ }
|
|
1324
1323
|
};
|
|
1325
1324
|
|
|
1326
|
-
var isObject
|
|
1325
|
+
var isObject = isObject$7;
|
|
1327
1326
|
|
|
1328
1327
|
var isPossiblePrototype$1 = function (argument) {
|
|
1329
|
-
return isObject
|
|
1328
|
+
return isObject(argument) || argument === null;
|
|
1330
1329
|
};
|
|
1331
1330
|
|
|
1332
1331
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
@@ -1341,8 +1340,7 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1341
1340
|
|
|
1342
1341
|
/* eslint-disable no-proto -- safe */
|
|
1343
1342
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1344
|
-
var
|
|
1345
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1343
|
+
var anObject = anObject$5;
|
|
1346
1344
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1347
1345
|
|
|
1348
1346
|
// `Object.setPrototypeOf` method
|
|
@@ -1359,9 +1357,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1359
1357
|
CORRECT_SETTER = test instanceof Array;
|
|
1360
1358
|
} catch (error) { /* empty */ }
|
|
1361
1359
|
return function setPrototypeOf(O, proto) {
|
|
1362
|
-
|
|
1360
|
+
anObject(O);
|
|
1363
1361
|
aPossiblePrototype(proto);
|
|
1364
|
-
if (!isObject(O)) return O;
|
|
1365
1362
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1366
1363
|
else O.__proto__ = proto;
|
|
1367
1364
|
return O;
|
|
@@ -1579,7 +1576,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1579
1576
|
|
|
1580
1577
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1581
1578
|
|
|
1582
|
-
var global$1 = global$
|
|
1579
|
+
var global$1 = global$c;
|
|
1583
1580
|
var DOMIterables = domIterables;
|
|
1584
1581
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1585
1582
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1646,11 +1643,11 @@ const PageContext = /*#__PURE__*/createContext(null);
|
|
|
1646
1643
|
*/
|
|
1647
1644
|
function PageProvider(props) {
|
|
1648
1645
|
const {
|
|
1649
|
-
|
|
1646
|
+
pageContext,
|
|
1650
1647
|
children
|
|
1651
1648
|
} = props;
|
|
1652
1649
|
return jsx(PageContext.Provider, {
|
|
1653
|
-
value:
|
|
1650
|
+
value: pageContext,
|
|
1654
1651
|
children: children
|
|
1655
1652
|
});
|
|
1656
1653
|
}
|
|
@@ -1682,8 +1679,8 @@ function styleInject(css, ref) {
|
|
|
1682
1679
|
}
|
|
1683
1680
|
}
|
|
1684
1681
|
|
|
1685
|
-
var css_248z$1 = ".row-
|
|
1686
|
-
var styles$1 = {"row":"row-
|
|
1682
|
+
var css_248z$1 = ".row-module_row__8V7Eh {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n gap: 1rem;\n}\n";
|
|
1683
|
+
var styles$1 = {"row":"row-module_row__8V7Eh"};
|
|
1687
1684
|
styleInject(css_248z$1);
|
|
1688
1685
|
|
|
1689
1686
|
const endClassMap = {
|
|
@@ -1748,8 +1745,8 @@ const getPositionStyleClasses = (start, end) => {
|
|
|
1748
1745
|
};
|
|
1749
1746
|
};
|
|
1750
1747
|
|
|
1751
|
-
var css_248z = ".column-module_col-start-
|
|
1752
|
-
var styles = {"col-start-1":"column-module_col-start-
|
|
1748
|
+
var css_248z = ".column-module_col-start-1__GK-q- {\n grid-column-start: 1;\n}\n\n.column-module_col-start-2__1DmkY {\n grid-column-start: 2;\n}\n\n.column-module_col-start-3__HNEPh {\n grid-column-start: 3;\n}\n\n.column-module_col-start-4__oCAwh {\n grid-column-start: 4;\n}\n\n.column-module_col-start-5__re1rB {\n grid-column-start: 5;\n}\n\n.column-module_col-start-6__dkB4w {\n grid-column-start: 6;\n}\n\n.column-module_col-start-7__kEfJb {\n grid-column-start: 7;\n}\n\n.column-module_col-start-8__Yx31z {\n grid-column-start: 8;\n}\n\n.column-module_col-start-9__9YiVY {\n grid-column-start: 9;\n}\n\n.column-module_col-start-10__6AFbk {\n grid-column-start: 10;\n}\n\n.column-module_col-start-11__LP24D {\n grid-column-start: 11;\n}\n\n.column-module_col-start-12__8p0QS {\n grid-column-start: 12;\n}\n\n.column-module_col-end-1__G9axv {\n grid-column-end: 1;\n}\n\n.column-module_col-end-2__pYjHG {\n grid-column-end: 2;\n}\n\n.column-module_col-end-3__4woe6 {\n grid-column-end: 3;\n}\n\n.column-module_col-end-4__zlBaT {\n grid-column-end: 4;\n}\n\n.column-module_col-end-5__aC-y8 {\n grid-column-end: 5;\n}\n\n.column-module_col-end-6__YljAP {\n grid-column-end: 6;\n}\n\n.column-module_col-end-7__lpQrW {\n grid-column-end: 7;\n}\n\n.column-module_col-end-8__F6UVd {\n grid-column-end: 8;\n}\n\n.column-module_col-end-9__kvQ3T {\n grid-column-end: 9;\n}\n\n.column-module_col-end-10__XJhrd {\n grid-column-end: 10;\n}\n\n.column-module_col-end-11__nx-lF {\n grid-column-end: 11;\n}\n\n.column-module_col-end-12__LIRnk {\n grid-column-end: 12;\n}\n\n.column-module_col-end-13__0p7YI {\n grid-column-end: 13;\n}\n";
|
|
1749
|
+
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"};
|
|
1753
1750
|
styleInject(css_248z);
|
|
1754
1751
|
|
|
1755
1752
|
function NoContent({
|
|
@@ -1772,7 +1769,9 @@ function Container({
|
|
|
1772
1769
|
} = containerRef;
|
|
1773
1770
|
// Get the containers from the global context
|
|
1774
1771
|
const {
|
|
1775
|
-
|
|
1772
|
+
pageAsset: {
|
|
1773
|
+
containers
|
|
1774
|
+
},
|
|
1776
1775
|
components
|
|
1777
1776
|
} = useContext(PageContext);
|
|
1778
1777
|
const {
|
|
@@ -1891,15 +1890,15 @@ const Row = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1891
1890
|
* @returns {JSX.Element} - A JSX element that represents the layout for a DotCMS page.
|
|
1892
1891
|
*/
|
|
1893
1892
|
function DotcmsLayout({
|
|
1894
|
-
|
|
1893
|
+
pageContext,
|
|
1895
1894
|
config
|
|
1896
1895
|
}) {
|
|
1897
1896
|
const isInsideEditor = useDotcmsEditor(config);
|
|
1898
1897
|
return jsx(PageProvider, {
|
|
1899
|
-
|
|
1898
|
+
pageContext: Object.assign({}, pageContext, {
|
|
1900
1899
|
isInsideEditor
|
|
1901
1900
|
}),
|
|
1902
|
-
children:
|
|
1901
|
+
children: pageContext.pageAsset.layout.body.rows.map((row, index) => jsx(Row, {
|
|
1903
1902
|
row: row
|
|
1904
1903
|
}, index))
|
|
1905
1904
|
});
|
|
@@ -1910,7 +1909,7 @@ function DotcmsLayout({
|
|
|
1910
1909
|
* It takes no parameters and returns the context value or `null` if it's not available.
|
|
1911
1910
|
*
|
|
1912
1911
|
* @category Hooks
|
|
1913
|
-
* @returns {
|
|
1912
|
+
* @returns {DotCMSPageContext | null} - The context value or `null` if it's not available.
|
|
1914
1913
|
*/
|
|
1915
1914
|
function useDotcmsPageContext() {
|
|
1916
1915
|
return useContext(PageContext);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/react",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.18",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=18",
|
|
6
6
|
"react-dom": ">=18",
|
|
7
|
-
"@dotcms/client": "0.0.1-alpha.
|
|
7
|
+
"@dotcms/client": "0.0.1-alpha.18"
|
|
8
8
|
},
|
|
9
9
|
"description": "Official React Components library to render a dotCMS page.",
|
|
10
10
|
"repository": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DotCMSPageContext } from '../../models';
|
|
2
2
|
export interface ColumnProps {
|
|
3
|
-
readonly column:
|
|
3
|
+
readonly column: DotCMSPageContext['pageAsset']['layout']['body']['rows'][0]['columns'][0];
|
|
4
4
|
}
|
|
5
5
|
export declare function Column({ column }: ColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DotCMSPageContext } from '../../models';
|
|
2
2
|
export interface ContainerProps {
|
|
3
|
-
readonly containerRef:
|
|
3
|
+
readonly containerRef: DotCMSPageContext['pageAsset']['layout']['body']['rows'][0]['columns'][0]['containers'][0];
|
|
4
4
|
}
|
|
5
5
|
export declare function Container({ containerRef }: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DotCMSPageEditorConfig } from '@dotcms/client';
|
|
3
|
-
import {
|
|
3
|
+
import { DotCMSPageContext } from '../../models';
|
|
4
4
|
/**
|
|
5
5
|
* `DotcmsPageProps` is a type that defines the properties for the `DotcmsLayout` component.
|
|
6
6
|
* It includes a readonly `entity` property that represents the context for a DotCMS page.
|
|
7
7
|
*
|
|
8
8
|
* @typedef {Object} DotcmsPageProps
|
|
9
9
|
*
|
|
10
|
-
* @property {
|
|
10
|
+
* @property {DotCMSPageContext} entity - The context for a DotCMS page.
|
|
11
11
|
* @readonly
|
|
12
12
|
*/
|
|
13
13
|
export type DotcmsPageProps = {
|
|
14
14
|
/**
|
|
15
|
-
* `
|
|
15
|
+
* `pageContext` is a readonly property of the `DotcmsPageProps` type.
|
|
16
16
|
* It represents the context for a DotCMS page and is of type `PageProviderContext`.
|
|
17
17
|
*
|
|
18
|
-
* @property {PageProviderContext}
|
|
18
|
+
* @property {PageProviderContext} pageContext
|
|
19
19
|
* @memberof DotcmsPageProps
|
|
20
|
-
* @type {
|
|
20
|
+
* @type {DotCMSPageContext}
|
|
21
21
|
* @readonly
|
|
22
22
|
*/
|
|
23
|
-
readonly
|
|
23
|
+
readonly pageContext: DotCMSPageContext;
|
|
24
24
|
readonly config?: DotCMSPageEditorConfig;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
@@ -31,4 +31,4 @@ export type DotcmsPageProps = {
|
|
|
31
31
|
* @param {DotcmsPageProps} props - The properties for the DotCMS page.
|
|
32
32
|
* @returns {JSX.Element} - A JSX element that represents the layout for a DotCMS page.
|
|
33
33
|
*/
|
|
34
|
-
export declare function DotcmsLayout({
|
|
34
|
+
export declare function DotcmsLayout({ pageContext, config }: DotcmsPageProps): JSX.Element;
|
|
@@ -1,81 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface PageProviderProps {
|
|
3
|
-
readonly
|
|
3
|
+
readonly pageContext: any;
|
|
4
4
|
readonly children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export interface ContainerData {
|
|
7
|
-
[key: string]: {
|
|
8
|
-
container: {
|
|
9
|
-
path: string;
|
|
10
|
-
identifier: string;
|
|
11
|
-
maxContentlets: number;
|
|
12
|
-
parentPermissionable: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
containerStructures: {
|
|
15
|
-
contentTypeVar: string;
|
|
16
|
-
}[];
|
|
17
|
-
contentlets: {
|
|
18
|
-
[key: string]: {
|
|
19
|
-
contentType: string;
|
|
20
|
-
identifier: string;
|
|
21
|
-
title: string;
|
|
22
|
-
inode: string;
|
|
23
|
-
onNumberOfPages: number;
|
|
24
|
-
baseType: string;
|
|
25
|
-
widgetTitle?: string;
|
|
26
|
-
}[];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface PageProviderContext {
|
|
31
|
-
/**
|
|
32
|
-
* `components` is a property of the `PageProviderProps` type.
|
|
33
|
-
* It is an object that maps content type variables to their corresponding React components.
|
|
34
|
-
*
|
|
35
|
-
* It will be use to render the contentlets in the page.
|
|
36
|
-
*
|
|
37
|
-
* @property {Object} components
|
|
38
|
-
* @memberof PageProviderProps
|
|
39
|
-
* @type {Object.<string, React.ElementType>}
|
|
40
|
-
*/
|
|
41
|
-
components: {
|
|
42
|
-
[contentTypeVariable: string]: React.ElementType;
|
|
43
|
-
};
|
|
44
|
-
containers: ContainerData;
|
|
45
|
-
layout: {
|
|
46
|
-
header: boolean;
|
|
47
|
-
footer: boolean;
|
|
48
|
-
body: {
|
|
49
|
-
rows: {
|
|
50
|
-
styleClass: string;
|
|
51
|
-
columns: {
|
|
52
|
-
styleClass: string;
|
|
53
|
-
width: number;
|
|
54
|
-
leftOffset: number;
|
|
55
|
-
containers: {
|
|
56
|
-
identifier: string;
|
|
57
|
-
uuid: string;
|
|
58
|
-
}[];
|
|
59
|
-
}[];
|
|
60
|
-
}[];
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
page: {
|
|
64
|
-
title: string;
|
|
65
|
-
identifier: string;
|
|
66
|
-
};
|
|
67
|
-
viewAs: {
|
|
68
|
-
language: {
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
71
|
-
persona: {
|
|
72
|
-
keyTag: string;
|
|
73
|
-
};
|
|
74
|
-
variantId: string;
|
|
75
|
-
};
|
|
76
|
-
isInsideEditor: boolean;
|
|
77
|
-
runningExperimentId?: string;
|
|
78
|
-
}
|
|
79
6
|
/**
|
|
80
7
|
* `PageProvider` is a functional component that provides a context for a DotCMS page.
|
|
81
8
|
* It takes a `PageProviderProps` object as a parameter and returns a JSX element.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { DotCMSPageContext } from '../../models';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the row component
|
|
5
5
|
*
|
|
@@ -10,10 +10,10 @@ export interface RowProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Row data
|
|
12
12
|
*
|
|
13
|
-
* @type {
|
|
13
|
+
* @type {DotCMSPageContext['layout']['body']['rows'][0]}
|
|
14
14
|
* @memberof RowProps
|
|
15
15
|
*/
|
|
16
|
-
row:
|
|
16
|
+
row: DotCMSPageContext['pageAsset']['layout']['body']['rows'][0];
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Renders a row
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const PageContext: import("react").Context<
|
|
2
|
+
import { DotCMSPageContext } from '../models';
|
|
3
|
+
export declare const PageContext: import("react").Context<DotCMSPageContext | null>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DotCMSPageContext } from '../models';
|
|
2
2
|
/**
|
|
3
3
|
* `useDotcmsPageContext` is a custom React hook that provides access to the `PageProviderContext`.
|
|
4
4
|
* It takes no parameters and returns the context value or `null` if it's not available.
|
|
5
5
|
*
|
|
6
6
|
* @category Hooks
|
|
7
|
-
* @returns {
|
|
7
|
+
* @returns {DotCMSPageContext | null} - The context value or `null` if it's not available.
|
|
8
8
|
*/
|
|
9
|
-
export declare function useDotcmsPageContext():
|
|
9
|
+
export declare function useDotcmsPageContext(): DotCMSPageContext | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const mockPageContext:
|
|
2
|
+
import { DotCMSPageContext } from '../models';
|
|
3
|
+
export declare const mockPageContext: DotCMSPageContext;
|
|
4
4
|
export declare const MockContextRender: ({ children, mockContext }: {
|
|
5
5
|
children: JSX.Element;
|
|
6
|
-
mockContext: Partial<
|
|
6
|
+
mockContext: Partial<DotCMSPageContext>;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ContainerData {
|
|
3
|
+
[key: string]: {
|
|
4
|
+
container: {
|
|
5
|
+
path: string;
|
|
6
|
+
identifier: string;
|
|
7
|
+
maxContentlets: number;
|
|
8
|
+
parentPermissionable: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
containerStructures: {
|
|
11
|
+
contentTypeVar: string;
|
|
12
|
+
}[];
|
|
13
|
+
contentlets: {
|
|
14
|
+
[key: string]: {
|
|
15
|
+
contentType: string;
|
|
16
|
+
identifier: string;
|
|
17
|
+
title: string;
|
|
18
|
+
inode: string;
|
|
19
|
+
onNumberOfPages: number;
|
|
20
|
+
widgetTitle?: string;
|
|
21
|
+
baseType: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface DotCMSPageContext {
|
|
27
|
+
/**
|
|
28
|
+
* `components` is a property of the `PageProviderProps` type.
|
|
29
|
+
* It is an object that maps content type variables to their corresponding React components.
|
|
30
|
+
*
|
|
31
|
+
* It will be use to render the contentlets in the page.
|
|
32
|
+
*
|
|
33
|
+
* @property {Object} components
|
|
34
|
+
* @memberof PageProviderProps
|
|
35
|
+
* @type {Object.<string, React.ElementType>}
|
|
36
|
+
*/
|
|
37
|
+
components: {
|
|
38
|
+
[contentTypeVariable: string]: React.ElementType;
|
|
39
|
+
};
|
|
40
|
+
pageAsset: {
|
|
41
|
+
containers: ContainerData;
|
|
42
|
+
layout: {
|
|
43
|
+
header: boolean;
|
|
44
|
+
footer: boolean;
|
|
45
|
+
body: {
|
|
46
|
+
rows: {
|
|
47
|
+
styleClass: string;
|
|
48
|
+
columns: {
|
|
49
|
+
styleClass: string;
|
|
50
|
+
width: number;
|
|
51
|
+
leftOffset: number;
|
|
52
|
+
containers: {
|
|
53
|
+
identifier: string;
|
|
54
|
+
uuid: string;
|
|
55
|
+
}[];
|
|
56
|
+
}[];
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
page: {
|
|
61
|
+
title: string;
|
|
62
|
+
identifier: string;
|
|
63
|
+
};
|
|
64
|
+
viewAs: {
|
|
65
|
+
language: {
|
|
66
|
+
id: string;
|
|
67
|
+
};
|
|
68
|
+
persona: {
|
|
69
|
+
keyTag: string;
|
|
70
|
+
};
|
|
71
|
+
variantId: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
isInsideEditor: boolean;
|
|
75
|
+
}
|
package/src/lib/utils/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContainerData,
|
|
2
|
-
export declare const getContainersData: (containers: ContainerData, containerRef:
|
|
1
|
+
import { ContainerData, DotCMSPageContext } from '../models';
|
|
2
|
+
export declare const getContainersData: (containers: ContainerData, containerRef: DotCMSPageContext['pageAsset']['layout']['body']['rows'][0]['columns'][0]['containers'][0]) => {
|
|
3
3
|
acceptTypes: string;
|
|
4
4
|
contentlets: {
|
|
5
5
|
contentType: string;
|
|
@@ -7,8 +7,8 @@ export declare const getContainersData: (containers: ContainerData, containerRef
|
|
|
7
7
|
title: string;
|
|
8
8
|
inode: string;
|
|
9
9
|
onNumberOfPages: number;
|
|
10
|
-
baseType: string;
|
|
11
10
|
widgetTitle?: string | undefined;
|
|
11
|
+
baseType: string;
|
|
12
12
|
}[];
|
|
13
13
|
variantId: string;
|
|
14
14
|
path: string;
|