@elice/material-external 1.250225.0-community.2 → 1.250306.0-external.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.
@@ -38,10 +38,7 @@ var MaterialExternalContent = function MaterialExternalContent(_ref) {
38
38
  }, [materialExternalId]), apiClient.config.init),
39
39
  materialExternal = _useMaterialFetch.materialExternal,
40
40
  externalGetStatus = _useMaterialFetch.status;
41
- if (externalGetStatus === 'pending') {
42
- return jsxRuntime.jsx(blocks.Spinner, {});
43
- }
44
- if (externalGetStatus === 'rejected' || !materialExternal) {
41
+ if (externalGetStatus === 'rejected') {
45
42
  return jsxRuntime.jsx(blocks.Text, {
46
43
  role: "white",
47
44
  children: intl$1.formatMessage({
@@ -49,6 +46,9 @@ var MaterialExternalContent = function MaterialExternalContent(_ref) {
49
46
  })
50
47
  });
51
48
  }
49
+ if (externalGetStatus === 'pending' || !materialExternal) {
50
+ return jsxRuntime.jsx(blocks.Spinner, {});
51
+ }
52
52
  /**
53
53
  *
54
54
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment } from 'react/jsx-runtime';
2
2
  import React from 'react';
3
3
  import { getOrgMaterialExternalGet, config } from '@elice/api-client';
4
- import { Spinner, Text } from '@elice/blocks';
4
+ import { Text, Spinner } from '@elice/blocks';
5
5
  import { useRawEliceIntl } from '@elice/intl';
6
6
  import { useMaterialFetch } from '@elice/material-shared-utils';
7
7
  import { enums } from '@elice/types';
@@ -30,10 +30,7 @@ var MaterialExternalContent = function MaterialExternalContent(_ref) {
30
30
  }, [materialExternalId]), config.init),
31
31
  materialExternal = _useMaterialFetch.materialExternal,
32
32
  externalGetStatus = _useMaterialFetch.status;
33
- if (externalGetStatus === 'pending') {
34
- return jsx(Spinner, {});
35
- }
36
- if (externalGetStatus === 'rejected' || !materialExternal) {
33
+ if (externalGetStatus === 'rejected') {
37
34
  return jsx(Text, {
38
35
  role: "white",
39
36
  children: intl.formatMessage({
@@ -41,6 +38,9 @@ var MaterialExternalContent = function MaterialExternalContent(_ref) {
41
38
  })
42
39
  });
43
40
  }
41
+ if (externalGetStatus === 'pending' || !materialExternal) {
42
+ return jsx(Spinner, {});
43
+ }
44
44
  /**
45
45
  *
46
46
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-external",
3
- "version": "1.250225.0-community.2",
3
+ "version": "1.250306.0-external.0",
4
4
  "description": "User view and editing components of Elice material external",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -48,8 +48,8 @@
48
48
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
49
49
  "@elice/intl": "0.241127.0",
50
50
  "@elice/markdown": "1.241015.0",
51
- "@elice/material-shared-types": "1.250225.0-community.2",
52
- "@elice/material-shared-utils": "1.250225.0-community.2",
51
+ "@elice/material-shared-types": "1.250306.0-external.0",
52
+ "@elice/material-shared-utils": "1.250306.0-external.0",
53
53
  "@elice/types": "1.241220.0",
54
54
  "@types/classnames": "^2.3.1",
55
55
  "@types/react": "~17.0.9",