@lvce-editor/main-area-worker 8.16.0 → 8.17.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.
@@ -368,6 +368,7 @@ const Div = 4;
368
368
  const Span = 8;
369
369
  const Text = 12;
370
370
  const Img = 17;
371
+ const P = 50;
371
372
  const Pre = 51;
372
373
  const Reference = 100;
373
374
 
@@ -457,7 +458,7 @@ const Object$1 = 1;
457
458
  const Number$1 = 2;
458
459
  const Array$1 = 3;
459
460
  const String$1 = 4;
460
- const Boolean = 5;
461
+ const Boolean$1 = 5;
461
462
  const Function = 6;
462
463
  const Null = 7;
463
464
  const Unknown = 8;
@@ -478,7 +479,7 @@ const getType = value => {
478
479
  }
479
480
  return Object$1;
480
481
  case 'boolean':
481
- return Boolean;
482
+ return Boolean$1;
482
483
  default:
483
484
  return Unknown;
484
485
  }
@@ -3110,8 +3111,8 @@ const MaskIconClose = 'MaskIcon MaskIconClose';
3110
3111
  const TextEditor = 'TextEditor';
3111
3112
  const TextEditorLoading = 'TextEditor TextEditor--loading';
3112
3113
  const EditorContentLoading = 'EditorContent EditorContent--loading';
3113
- const TextEditorError = 'TextEditor TextEditor--error';
3114
- const EditorContentError = 'EditorContent EditorContent--error';
3114
+ const TextEditorError = 'TextEditor TextEditorError';
3115
+ const EditorContentError = 'EditorContent EditorContentError';
3115
3116
  const Main = 'Main';
3116
3117
  const EDITOR_GROUPS_CONTAINER = 'editor-groups-container';
3117
3118
  const TabIcon = 'TabIcon';
@@ -3821,6 +3822,7 @@ const CopyIntoNewWindow = 'Copy into New Window';
3821
3822
  const SplitEditorGroup = 'Split Editor Group';
3822
3823
  const SplitRight = 'Split Right';
3823
3824
  const TogglePreview = 'Toggle Preview';
3825
+ const Retry = 'Retry';
3824
3826
 
3825
3827
  const splitRight$1 = () => {
3826
3828
  return i18nString(SplitRight);
@@ -3888,6 +3890,9 @@ const copyIntoNewWindow = () => {
3888
3890
  const togglePreview = () => {
3889
3891
  return i18nString(TogglePreview);
3890
3892
  };
3893
+ const retry = () => {
3894
+ return i18nString(Retry);
3895
+ };
3891
3896
 
3892
3897
  const menuEntrySeparator = {
3893
3898
  command: '',
@@ -4074,6 +4079,10 @@ const renderCss = (oldState, newState) => {
4074
4079
  return [SetCss, newState.uid, css];
4075
4080
  };
4076
4081
 
4082
+ const mergeClassNames = (...classNames) => {
4083
+ return classNames.filter(Boolean).join(' ');
4084
+ };
4085
+
4077
4086
  const text = data => {
4078
4087
  return {
4079
4088
  childCount: 0,
@@ -4401,14 +4410,17 @@ const renderError = errorMessage => {
4401
4410
  childCount: 2,
4402
4411
  className: EditorContentError,
4403
4412
  type: Div
4413
+ }, {
4414
+ childCount: 1,
4415
+ type: P
4404
4416
  }, text(`Error: ${errorMessage}`), {
4405
4417
  childCount: 1,
4406
- className: `${Button} ${ButtonSecondary}`,
4418
+ className: mergeClassNames(Button, ButtonSecondary),
4407
4419
  'data-action': RetryOpen,
4408
4420
  name: RetryOpen,
4409
4421
  onClick: HandleClickAction,
4410
4422
  type: Button$2
4411
- }, text('Retry')];
4423
+ }, text(retry())];
4412
4424
  };
4413
4425
 
4414
4426
  const renderLoading = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "8.16.0",
3
+ "version": "8.17.0",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",