@elice/material-survey 1.240508.0-globalization.0 → 1.240508.0-globalization.1

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.
@@ -84,11 +84,7 @@ const MaterialSurveyContainer = ({
84
84
  onNext,
85
85
  __intl
86
86
  }) => {
87
- return React.createElement(intl.RawEliceIntlProvider, {
88
- value: {
89
- intl: __intl
90
- }
91
- }, React.createElement(MaterialSurveyContext.MaterialSurveyProvider, {
87
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialSurveyContext.MaterialSurveyProvider, {
92
88
  materialSurveyId: materialSurveyId,
93
89
  userId: userId,
94
90
  onSubmit: onSubmit,
@@ -31,9 +31,7 @@ const MaterialSurveySelectMultiple = () => {
31
31
  refreshOrgMaterialSurvey
32
32
  } = MaterialSurveyContext.useMaterialSurveyDispatch();
33
33
  // state
34
- const {
35
- intl: intl$1
36
- } = intl.useRawEliceIntl();
34
+ const intl$1 = intl.useRawEliceIntl();
37
35
  const [selectedAnswer, setSelectedAnswer] = React.useState([]);
38
36
  const [materialSurveyResponse, setMaterialSurveyResponse] = React.useState();
39
37
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -30,9 +30,7 @@ const MaterialSurveySelectOne = () => {
30
30
  refreshOrgMaterialSurvey
31
31
  } = MaterialSurveyContext.useMaterialSurveyDispatch();
32
32
  // state
33
- const {
34
- intl: intl$1
35
- } = intl.useRawEliceIntl();
33
+ const intl$1 = intl.useRawEliceIntl();
36
34
  const [selectedAnswer, setSelectedAnswer] = React.useState();
37
35
  const [materialSurveyResponse, setMaterialSurveyResponse] = React.useState();
38
36
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -31,9 +31,7 @@ const MaterialSurveyText = () => {
31
31
  refreshOrgMaterialSurvey
32
32
  } = MaterialSurveyContext.useMaterialSurveyDispatch();
33
33
  // state
34
- const {
35
- intl: intl$1
36
- } = intl.useRawEliceIntl();
34
+ const intl$1 = intl.useRawEliceIntl();
37
35
  const [materialSurveyResponse, setMaterialSurveyResponse] = React.useState();
38
36
  const [submitStatus, setSubmitStatus] = React.useState('idle');
39
37
  const [answer, setAnswer] = React.useState('');
@@ -10,9 +10,7 @@ var index = require('../../helpers/index.js');
10
10
  const SurveyResultBadge = ({
11
11
  materialSurveyResponse
12
12
  }) => {
13
- const {
14
- intl: intl$1
15
- } = intl.useRawEliceIntl();
13
+ const intl$1 = intl.useRawEliceIntl();
16
14
  const status = React.useMemo(() => index.getSurveyResultStatus(materialSurveyResponse), [materialSurveyResponse]);
17
15
  switch (status) {
18
16
  case index.SurveyResultStatus.Submitted:
@@ -9,9 +9,7 @@ var intl = require('@elice/intl');
9
9
  const SurveySubmitStatusText = ({
10
10
  status
11
11
  }) => {
12
- const {
13
- intl: intl$1
14
- } = intl.useRawEliceIntl();
12
+ const intl$1 = intl.useRawEliceIntl();
15
13
  switch (status) {
16
14
  case 'resolved':
17
15
  return React.createElement(blocks.StatusText, {
@@ -78,11 +78,7 @@ const MaterialSurveyEdit = React.forwardRef(({
78
78
  //
79
79
  //
80
80
  //
81
- return React.createElement(intl.RawEliceIntlProvider, {
82
- value: {
83
- intl: __intl
84
- }
85
- }, React.createElement("form", {
81
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement("form", {
86
82
  ref: formElRef
87
83
  }, React.createElement(context.default.Provider, {
88
84
  value: {
@@ -19,9 +19,7 @@ const StyledSurveyOptionTypeSelectWrap = styled.div.withConfig({
19
19
  componentId: "sc-r4ms68-0"
20
20
  })(["display:flex;max-width:12rem;"]);
21
21
  const MaterialSurveyEditContent = () => {
22
- const {
23
- intl: intl$1
24
- } = intl.useRawEliceIntl();
22
+ const intl$1 = intl.useRawEliceIntl();
25
23
  const {
26
24
  disabled,
27
25
  onFileUploadRequest
@@ -20,9 +20,7 @@ const StyledInputGroup = styled.div.withConfig({
20
20
  componentId: "sc-1eiyk6z-1"
21
21
  })(["width:100%;.eb-input{margin-bottom:0.5rem;&:last-of-type{margin-bottom:0;}}"]);
22
22
  const OptionSelectOne = () => {
23
- const {
24
- intl: intl$1
25
- } = intl.useRawEliceIntl();
23
+ const intl$1 = intl.useRawEliceIntl();
26
24
  const {
27
25
  disabled
28
26
  } = context.useMaterialSurveyEditContext();
@@ -60,9 +60,7 @@ const SurveyContentBox = _a => {
60
60
  onNext
61
61
  } = _a,
62
62
  props = tslib.__rest(_a, ["children", "footerActions", "title", "submitResult", "submitStatus", "onNext"]);
63
- const {
64
- intl: intl$1
65
- } = intl.useRawEliceIntl();
63
+ const intl$1 = intl.useRawEliceIntl();
66
64
  const {
67
65
  vertical
68
66
  } = MaterialSurveyContext.useMaterialSurveyState();
@@ -80,11 +80,7 @@ const MaterialSurveyContainer = ({
80
80
  onNext,
81
81
  __intl
82
82
  }) => {
83
- return React.createElement(RawEliceIntlProvider, {
84
- value: {
85
- intl: __intl
86
- }
87
- }, React.createElement(MaterialSurveyProvider, {
83
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialSurveyProvider, {
88
84
  materialSurveyId: materialSurveyId,
89
85
  userId: userId,
90
86
  onSubmit: onSubmit,
@@ -27,9 +27,7 @@ const MaterialSurveySelectMultiple = () => {
27
27
  refreshOrgMaterialSurvey
28
28
  } = useMaterialSurveyDispatch();
29
29
  // state
30
- const {
31
- intl
32
- } = useRawEliceIntl();
30
+ const intl = useRawEliceIntl();
33
31
  const [selectedAnswer, setSelectedAnswer] = React.useState([]);
34
32
  const [materialSurveyResponse, setMaterialSurveyResponse] = React.useState();
35
33
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -26,9 +26,7 @@ const MaterialSurveySelectOne = () => {
26
26
  refreshOrgMaterialSurvey
27
27
  } = useMaterialSurveyDispatch();
28
28
  // state
29
- const {
30
- intl
31
- } = useRawEliceIntl();
29
+ const intl = useRawEliceIntl();
32
30
  const [selectedAnswer, setSelectedAnswer] = React.useState();
33
31
  const [materialSurveyResponse, setMaterialSurveyResponse] = React.useState();
34
32
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -27,9 +27,7 @@ const MaterialSurveyText = () => {
27
27
  refreshOrgMaterialSurvey
28
28
  } = useMaterialSurveyDispatch();
29
29
  // state
30
- const {
31
- intl
32
- } = useRawEliceIntl();
30
+ const intl = useRawEliceIntl();
33
31
  const [materialSurveyResponse, setMaterialSurveyResponse] = React.useState();
34
32
  const [submitStatus, setSubmitStatus] = React.useState('idle');
35
33
  const [answer, setAnswer] = React.useState('');
@@ -6,9 +6,7 @@ import { getSurveyResultStatus, SurveyResultStatus } from '../../helpers/index.j
6
6
  const SurveyResultBadge = ({
7
7
  materialSurveyResponse
8
8
  }) => {
9
- const {
10
- intl
11
- } = useRawEliceIntl();
9
+ const intl = useRawEliceIntl();
12
10
  const status = React.useMemo(() => getSurveyResultStatus(materialSurveyResponse), [materialSurveyResponse]);
13
11
  switch (status) {
14
12
  case SurveyResultStatus.Submitted:
@@ -5,9 +5,7 @@ import { useRawEliceIntl } from '@elice/intl';
5
5
  const SurveySubmitStatusText = ({
6
6
  status
7
7
  }) => {
8
- const {
9
- intl
10
- } = useRawEliceIntl();
8
+ const intl = useRawEliceIntl();
11
9
  switch (status) {
12
10
  case 'resolved':
13
11
  return React.createElement(StatusText, {
@@ -74,11 +74,7 @@ const MaterialSurveyEdit = forwardRef(({
74
74
  //
75
75
  //
76
76
  //
77
- return React.createElement(RawEliceIntlProvider, {
78
- value: {
79
- intl: __intl
80
- }
81
- }, React.createElement("form", {
77
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement("form", {
82
78
  ref: formElRef
83
79
  }, React.createElement(MaterialSurveyEditContext.Provider, {
84
80
  value: {
@@ -15,9 +15,7 @@ const StyledSurveyOptionTypeSelectWrap = styled.div.withConfig({
15
15
  componentId: "sc-r4ms68-0"
16
16
  })(["display:flex;max-width:12rem;"]);
17
17
  const MaterialSurveyEditContent = () => {
18
- const {
19
- intl
20
- } = useRawEliceIntl();
18
+ const intl = useRawEliceIntl();
21
19
  const {
22
20
  disabled,
23
21
  onFileUploadRequest
@@ -16,9 +16,7 @@ const StyledInputGroup = styled.div.withConfig({
16
16
  componentId: "sc-1eiyk6z-1"
17
17
  })(["width:100%;.eb-input{margin-bottom:0.5rem;&:last-of-type{margin-bottom:0;}}"]);
18
18
  const OptionSelectOne = () => {
19
- const {
20
- intl
21
- } = useRawEliceIntl();
19
+ const intl = useRawEliceIntl();
22
20
  const {
23
21
  disabled
24
22
  } = useMaterialSurveyEditContext();
@@ -56,9 +56,7 @@ const SurveyContentBox = _a => {
56
56
  onNext
57
57
  } = _a,
58
58
  props = __rest(_a, ["children", "footerActions", "title", "submitResult", "submitStatus", "onNext"]);
59
- const {
60
- intl
61
- } = useRawEliceIntl();
59
+ const intl = useRawEliceIntl();
62
60
  const {
63
61
  vertical
64
62
  } = useMaterialSurveyState();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-survey",
3
- "version": "1.240508.0-globalization.0",
3
+ "version": "1.240508.0-globalization.1",
4
4
  "description": "User view and editing components of Elice material survey",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -50,10 +50,10 @@
50
50
  "@elice/design-tokens": "^1.220803.0",
51
51
  "@elice/icons": "^1.230814.0",
52
52
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
53
- "@elice/intl": "0.240425.0-alpha.7",
53
+ "@elice/intl": "0.240425.0-alpha.9",
54
54
  "@elice/markdown": "^1.220815.0",
55
- "@elice/material-shared-types": "1.240508.0-globalization.0",
56
- "@elice/material-shared-utils": "1.240508.0-globalization.0",
55
+ "@elice/material-shared-types": "1.240508.0-globalization.1",
56
+ "@elice/material-shared-utils": "1.240508.0-globalization.1",
57
57
  "@elice/types": "^1.240208.0",
58
58
  "@types/classnames": "^2.3.1",
59
59
  "@types/react": "~17.0.9",
@@ -63,5 +63,5 @@
63
63
  "react-use": "^17.2.4",
64
64
  "styled-components": "^5.3.0"
65
65
  },
66
- "gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
66
+ "gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
67
67
  }