@lvce-editor/main-area-worker 9.30.2 → 9.32.0
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/mainAreaWorkerMain.js +13 -8
- package/package.json +1 -1
|
@@ -1546,6 +1546,9 @@ const create$3 = rpcId => {
|
|
|
1546
1546
|
};
|
|
1547
1547
|
|
|
1548
1548
|
const None$1 = 'none';
|
|
1549
|
+
const Tab$1 = 'tab';
|
|
1550
|
+
const TabList = 'tablist';
|
|
1551
|
+
const ToolBar = 'toolbar';
|
|
1549
1552
|
|
|
1550
1553
|
const Audio = 0;
|
|
1551
1554
|
const Button$2 = 1;
|
|
@@ -6064,7 +6067,7 @@ const renderContent = content => {
|
|
|
6064
6067
|
|
|
6065
6068
|
const renderError = errorMessage => {
|
|
6066
6069
|
return [{
|
|
6067
|
-
childCount:
|
|
6070
|
+
childCount: 1,
|
|
6068
6071
|
className: TextEditorError,
|
|
6069
6072
|
type: Div
|
|
6070
6073
|
}, {
|
|
@@ -6099,7 +6102,7 @@ const renderLoading = () => {
|
|
|
6099
6102
|
const renderViewletReference = tab => {
|
|
6100
6103
|
return [{
|
|
6101
6104
|
childCount: 0,
|
|
6102
|
-
type:
|
|
6105
|
+
type: Reference,
|
|
6103
6106
|
// Reference node type - frontend will append the component at this position
|
|
6104
6107
|
uid: tab.editorUid
|
|
6105
6108
|
}];
|
|
@@ -6217,7 +6220,7 @@ const renderTab = (tab, isActive, tabIndex, groupIndex) => {
|
|
|
6217
6220
|
onContextMenu: HandleTabContextMenu,
|
|
6218
6221
|
onDblClick: HandleDoubleClick,
|
|
6219
6222
|
onMouseDown: HandleClickTab,
|
|
6220
|
-
role:
|
|
6223
|
+
role: Tab$1,
|
|
6221
6224
|
title: tab.uriTitle || tab.uri || tab.title,
|
|
6222
6225
|
type: Div
|
|
6223
6226
|
}, ...renderTabIcon(tab), {
|
|
@@ -6231,7 +6234,7 @@ const getTabsVirtualDom = (group, groupIndex, tabsChildCount) => {
|
|
|
6231
6234
|
return [{
|
|
6232
6235
|
childCount: tabsChildCount,
|
|
6233
6236
|
className: MainTabs,
|
|
6234
|
-
role:
|
|
6237
|
+
role: TabList,
|
|
6235
6238
|
type: Div
|
|
6236
6239
|
}, ...group.tabs.flatMap((tab, tabIndex) => renderTab(tab, tab.id === group.activeTabId, tabIndex, groupIndex))];
|
|
6237
6240
|
};
|
|
@@ -6270,7 +6273,7 @@ const renderEditorGroupActions = (group, groupIndex, splitButtonEnabled) => {
|
|
|
6270
6273
|
if (splitButtonEnabled) {
|
|
6271
6274
|
buttons.push({
|
|
6272
6275
|
childCount: 1,
|
|
6273
|
-
className: EditorGroupActionButton
|
|
6276
|
+
className: mergeClassNames(EditorGroupActionButton, SplitEditorGroupButton),
|
|
6274
6277
|
'data-action': SplitRight$1,
|
|
6275
6278
|
'data-groupId': String(group.id),
|
|
6276
6279
|
name: SplitRight$1,
|
|
@@ -6283,7 +6286,7 @@ const renderEditorGroupActions = (group, groupIndex, splitButtonEnabled) => {
|
|
|
6283
6286
|
childCount: buttons.length / 2,
|
|
6284
6287
|
// Each button has 2 nodes (button + text)
|
|
6285
6288
|
className: EditorGroupActions,
|
|
6286
|
-
role:
|
|
6289
|
+
role: ToolBar,
|
|
6287
6290
|
type: Div
|
|
6288
6291
|
}, ...buttons];
|
|
6289
6292
|
};
|
|
@@ -6336,6 +6339,8 @@ const renderWaterMark = groupId => {
|
|
|
6336
6339
|
}];
|
|
6337
6340
|
};
|
|
6338
6341
|
|
|
6342
|
+
const Focusable = 0;
|
|
6343
|
+
|
|
6339
6344
|
const renderEmptyEditorGroup = (group, groupIndex, style, closeButtonEnabled = true) => {
|
|
6340
6345
|
const closeButtonDom = closeButtonEnabled ? renderEmptyGroupCloseButton(group) : [];
|
|
6341
6346
|
return [{
|
|
@@ -6344,7 +6349,7 @@ const renderEmptyEditorGroup = (group, groupIndex, style, closeButtonEnabled = t
|
|
|
6344
6349
|
'data-groupId': String(group.id),
|
|
6345
6350
|
onContextMenu: HandleContextMenu,
|
|
6346
6351
|
style,
|
|
6347
|
-
tabIndex:
|
|
6352
|
+
tabIndex: Focusable,
|
|
6348
6353
|
type: Div
|
|
6349
6354
|
}, ...closeButtonDom, ...renderWaterMark(group.id)];
|
|
6350
6355
|
};
|
|
@@ -6383,7 +6388,7 @@ const renderSash = (direction, sashId) => {
|
|
|
6383
6388
|
className: getSashClassName(direction),
|
|
6384
6389
|
'data-sashId': sashId,
|
|
6385
6390
|
onPointerDown: HandleSashPointerDown,
|
|
6386
|
-
role:
|
|
6391
|
+
role: None$1,
|
|
6387
6392
|
type: Button$2
|
|
6388
6393
|
}, {
|
|
6389
6394
|
childCount: 0,
|