@lvce-editor/status-bar-worker 3.7.0 → 3.9.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.
@@ -1580,6 +1580,9 @@ const toStatusBarItem = uiStatusBarItem => {
1580
1580
  const elements = [];
1581
1581
  if (uiStatusBarItem.icon) {
1582
1582
  elements.push({
1583
+ ...(uiStatusBarItem.spinning && {
1584
+ spinning: true
1585
+ }),
1583
1586
  type: 'icon',
1584
1587
  value: uiStatusBarItem.icon
1585
1588
  });
@@ -1618,6 +1621,9 @@ const toUiStatusBarItem = extensionHostStatusBarItem => {
1618
1621
  command: extensionHostStatusBarItem.command || '',
1619
1622
  icon: getActualIcon(extensionHostStatusBarItem),
1620
1623
  name: extensionHostStatusBarItem.id || extensionHostStatusBarItem.name || '',
1624
+ ...(extensionHostStatusBarItem.spinning === true && {
1625
+ spinning: true
1626
+ }),
1621
1627
  text: extensionHostStatusBarItem.text || '',
1622
1628
  tooltip: extensionHostStatusBarItem.tooltip || ''
1623
1629
  };
@@ -1845,7 +1851,7 @@ const getTextVirtualDom = (element, name) => {
1845
1851
  const getIconVirtualDom = (element, name) => {
1846
1852
  return [{
1847
1853
  childCount: 0,
1848
- className: mergeClassNames(MaskIcon, element.value),
1854
+ className: mergeClassNames(MaskIcon, element.value, element.spinning ? 'Spinning' : ''),
1849
1855
  name,
1850
1856
  type: Div
1851
1857
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/status-bar-worker",
3
- "version": "3.7.0",
3
+ "version": "3.9.0",
4
4
  "description": "Status Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",