@lvce-editor/renderer-process 30.60.0 → 30.60.1
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/rendererProcessMain.js +14 -3
- package/dist/sessionReplayPlayer.js +243 -443
- package/dist/sessionReplayWorkerMain.js +11962 -94
- package/package.json +1 -1
|
@@ -3324,6 +3324,10 @@ const removeProp = ($Element, key) => {
|
|
|
3324
3324
|
$Element.style[key] = '';
|
|
3325
3325
|
return;
|
|
3326
3326
|
}
|
|
3327
|
+
if (key === 'playsInline') {
|
|
3328
|
+
// Firefox does not reflect playsInline as an HTMLVideoElement property.
|
|
3329
|
+
$Element[key] = false;
|
|
3330
|
+
}
|
|
3327
3331
|
const attributeName = removedAttributeProps.get(key) || key;
|
|
3328
3332
|
$Element.removeAttribute(attributeName);
|
|
3329
3333
|
};
|
|
@@ -3372,6 +3376,10 @@ const setHtmlProp = ($Element, key, value) => {
|
|
|
3372
3376
|
}
|
|
3373
3377
|
return;
|
|
3374
3378
|
}
|
|
3379
|
+
if (key === 'autocorrect' || key === 'autocapitalize') {
|
|
3380
|
+
$Element.setAttribute(key, String(value));
|
|
3381
|
+
return;
|
|
3382
|
+
}
|
|
3375
3383
|
if (key === 'inputType') {
|
|
3376
3384
|
// @ts-ignore
|
|
3377
3385
|
$Element.type = value;
|
|
@@ -3468,12 +3476,12 @@ const render$1 = (element, eventMap, newEventMap) => {
|
|
|
3468
3476
|
}
|
|
3469
3477
|
};
|
|
3470
3478
|
|
|
3471
|
-
const renderInternal = ($Parent, elements, eventMap, newEventMap) => {
|
|
3479
|
+
const renderInternal = ($Parent, elements, eventMap, newEventMap, renderElement = render$1) => {
|
|
3472
3480
|
const max = elements.length - 1;
|
|
3473
3481
|
let stack = [];
|
|
3474
3482
|
for (let i = max; i >= 0; i--) {
|
|
3475
3483
|
const element = elements[i];
|
|
3476
|
-
const $Element =
|
|
3484
|
+
const $Element = renderElement(element, eventMap, newEventMap);
|
|
3477
3485
|
if (element.childCount > 0) {
|
|
3478
3486
|
// @ts-expect-error
|
|
3479
3487
|
$Element.append(...stack.slice(0, element.childCount));
|
|
@@ -3775,7 +3783,10 @@ const restoreFocusedElement = ($Hidden, $New, focused) => {
|
|
|
3775
3783
|
const renderWithUid = ($Viewlet, dom, eventMap, uid, inputMap, focused, activeElement) => {
|
|
3776
3784
|
const newEventMap = getEventListenerMap(uid);
|
|
3777
3785
|
const $New = render(dom, eventMap, newEventMap).firstChild;
|
|
3778
|
-
|
|
3786
|
+
// A referenced pane can be temporarily absent from the new layout. Leave its
|
|
3787
|
+
// focused input in that pane unless there is a replacement to transfer it to.
|
|
3788
|
+
const hasReplacement = focused && $New.querySelector(`[name="${CSS.escape(focused)}"]`);
|
|
3789
|
+
const $Hidden = createHiddenContainer(hasReplacement && !$New.contains(activeElement || null) ? activeElement : undefined, focused);
|
|
3779
3790
|
setComponentUid($New, uid);
|
|
3780
3791
|
const $$NewInputs = queryInputs($New);
|
|
3781
3792
|
for (const $Input of $$NewInputs) {
|