@lvce-editor/source-control-worker 3.4.0 → 3.5.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.
@@ -1864,7 +1864,7 @@ const GenerateCommitMessage$1 = 'Generate Commit Message';
1864
1864
  const Refresh$2 = 'Refresh';
1865
1865
  const MessageEnterToCommitOnMaster = `Message (Enter) to commit on 'master'`;
1866
1866
  const SourceControlInput$1 = 'Source Control Input';
1867
- const NoSourceControlProvidersAvailableForWeb = 'No source control providers are available for web.';
1867
+ const NoSourceControlProvider = 'No source control provider is enabled or installed.';
1868
1868
 
1869
1869
  const openChanges = () => {
1870
1870
  return i18nString(OpenChanges);
@@ -1908,8 +1908,8 @@ const messageEnterToCommitOnMaster = () => {
1908
1908
  const sourceControlInput = () => {
1909
1909
  return i18nString(SourceControlInput$1);
1910
1910
  };
1911
- const noSourceControlProvidersAvailableForWeb = () => {
1912
- return i18nString(NoSourceControlProvidersAvailableForWeb);
1911
+ const noSourceControlProvider = () => {
1912
+ return i18nString(NoSourceControlProvider);
1913
1913
  };
1914
1914
 
1915
1915
  const loadContent = async (state, savedState) => {
@@ -3344,6 +3344,8 @@ const getSourceControlVirtualDom = (items, buttons, disabled, placeholder, input
3344
3344
  const content = message ? [{
3345
3345
  childCount: 1,
3346
3346
  className: Message,
3347
+ paddingLeft: '20px',
3348
+ paddingRight: '20px',
3347
3349
  type: Div
3348
3350
  }, text(message)] : [...getSourceControlHeaderVirtualDom(placeholder, inputMessage), ...buttons.flatMap(button => getSourceControlButtonVirtualDom(button, disabled)), ...getSourceControlListVirtualDom(items)];
3349
3351
  const dom = [{
@@ -3367,14 +3369,13 @@ const renderItems = (oldState, newState) => {
3367
3369
  inputMessage,
3368
3370
  inputPlaceholder,
3369
3371
  items,
3370
- platform,
3371
3372
  sourceControlButtons,
3372
3373
  visibleItems
3373
3374
  } = newState;
3374
3375
  if (initial) {
3375
3376
  return [SetDom2, id, []];
3376
3377
  }
3377
- const unavailableMessage = platform === Web && enabledProviderIds.length === 0 ? noSourceControlProvidersAvailableForWeb() : '';
3378
+ const unavailableMessage = enabledProviderIds.length === 0 ? noSourceControlProvider() : '';
3378
3379
  const dom = getSourceControlVirtualDom(visibleItems, sourceControlButtons, items.length === 0, inputPlaceholder, inputMessage, unavailableMessage);
3379
3380
  return [SetDom2, id, dom];
3380
3381
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/source-control-worker",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Source Control Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"