@elice/material-survey 1.240715.0 → 1.240716.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.
- package/cjs/components/material-survey/MaterialSurveyInfo.js +6 -1
- package/cjs/components/material-survey-edit/MaterialSurveyEditContent.js +2 -3
- package/es/components/material-survey/MaterialSurveyInfo.js +6 -1
- package/es/components/material-survey-edit/MaterialSurveyEditContent.js +2 -3
- package/package.json +6 -4
|
@@ -6,9 +6,14 @@ var React = require('react');
|
|
|
6
6
|
var blocks = require('@elice/blocks');
|
|
7
7
|
var designTokens = require('@elice/design-tokens');
|
|
8
8
|
var markdown = require('@elice/markdown');
|
|
9
|
+
var wysiwyg = require('@elice/wysiwyg');
|
|
10
|
+
var styled = require('styled-components');
|
|
9
11
|
var SurveyContentBox = require('../shared/SurveyContentBox.js');
|
|
10
12
|
var MaterialSurveyContext = require('./context/MaterialSurveyContext.js');
|
|
11
13
|
|
|
14
|
+
const StyledMarkdownSSR = styled(markdown.MarkdownSSR).withConfig({
|
|
15
|
+
componentId: "sc-1b9l43w-0"
|
|
16
|
+
})(["", ""], wysiwyg.EliceWysiwygEditorTheme.resetMarkdownSSR);
|
|
12
17
|
const MaterialSurveyInfo = () => {
|
|
13
18
|
const {
|
|
14
19
|
materialSurvey
|
|
@@ -34,7 +39,7 @@ const MaterialSurveyInfo = () => {
|
|
|
34
39
|
height: '40px'
|
|
35
40
|
}), React.createElement(blocks.Vspace, {
|
|
36
41
|
height: 1
|
|
37
|
-
}), materialSurvey ? React.createElement(
|
|
42
|
+
}), materialSurvey ? React.createElement(StyledMarkdownSSR, {
|
|
38
43
|
children: materialSurvey.questionInfoList[0].questionDescription,
|
|
39
44
|
dark: true,
|
|
40
45
|
paddingx: 0,
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var reactHookForm = require('react-hook-form');
|
|
7
7
|
var blocks = require('@elice/blocks');
|
|
8
8
|
var intl = require('@elice/intl');
|
|
9
|
-
var markdown = require('@elice/markdown');
|
|
10
9
|
var types = require('@elice/types');
|
|
10
|
+
var wysiwyg = require('@elice/wysiwyg');
|
|
11
11
|
var styled = require('styled-components');
|
|
12
12
|
var randomId = require('./utils/randomId.js');
|
|
13
13
|
var context = require('./context.js');
|
|
@@ -154,8 +154,7 @@ const MaterialSurveyEditContent = () => {
|
|
|
154
154
|
name: "questionInfoList.0.questionDescription",
|
|
155
155
|
render: ({
|
|
156
156
|
field
|
|
157
|
-
}) => React.createElement(
|
|
158
|
-
enableFooter: true,
|
|
157
|
+
}) => React.createElement(wysiwyg.EliceWysiwygEditor, Object.assign({
|
|
159
158
|
placeholder: intl$1.formatMessage({
|
|
160
159
|
id: 'content.description.placeholder'
|
|
161
160
|
}),
|
|
@@ -2,9 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { Flex, Text, Shimmer, Vspace } from '@elice/blocks';
|
|
3
3
|
import { base } from '@elice/design-tokens';
|
|
4
4
|
import { MarkdownSSR } from '@elice/markdown';
|
|
5
|
+
import { EliceWysiwygEditorTheme } from '@elice/wysiwyg';
|
|
6
|
+
import styled from 'styled-components';
|
|
5
7
|
import SurveyContentBox from '../shared/SurveyContentBox.js';
|
|
6
8
|
import { useMaterialSurveyState } from './context/MaterialSurveyContext.js';
|
|
7
9
|
|
|
10
|
+
const StyledMarkdownSSR = styled(MarkdownSSR).withConfig({
|
|
11
|
+
componentId: "sc-1b9l43w-0"
|
|
12
|
+
})(["", ""], EliceWysiwygEditorTheme.resetMarkdownSSR);
|
|
8
13
|
const MaterialSurveyInfo = () => {
|
|
9
14
|
const {
|
|
10
15
|
materialSurvey
|
|
@@ -30,7 +35,7 @@ const MaterialSurveyInfo = () => {
|
|
|
30
35
|
height: '40px'
|
|
31
36
|
}), React.createElement(Vspace, {
|
|
32
37
|
height: 1
|
|
33
|
-
}), materialSurvey ? React.createElement(
|
|
38
|
+
}), materialSurvey ? React.createElement(StyledMarkdownSSR, {
|
|
34
39
|
children: materialSurvey.questionInfoList[0].questionDescription,
|
|
35
40
|
dark: true,
|
|
36
41
|
paddingx: 0,
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
3
3
|
import { FormInputVerticalLayout, Label, Input, Tooltip, Select, Vspace } from '@elice/blocks';
|
|
4
4
|
import { useRawEliceIntl } from '@elice/intl';
|
|
5
|
-
import { MarkdownEditor } from '@elice/markdown';
|
|
6
5
|
import { enums } from '@elice/types';
|
|
6
|
+
import { EliceWysiwygEditor } from '@elice/wysiwyg';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { createRandomId } from './utils/randomId.js';
|
|
9
9
|
import { useMaterialSurveyEditContext } from './context.js';
|
|
@@ -150,8 +150,7 @@ const MaterialSurveyEditContent = () => {
|
|
|
150
150
|
name: "questionInfoList.0.questionDescription",
|
|
151
151
|
render: ({
|
|
152
152
|
field
|
|
153
|
-
}) => React.createElement(
|
|
154
|
-
enableFooter: true,
|
|
153
|
+
}) => React.createElement(EliceWysiwygEditor, Object.assign({
|
|
155
154
|
placeholder: intl.formatMessage({
|
|
156
155
|
id: 'content.description.placeholder'
|
|
157
156
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-survey",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.240716.0",
|
|
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",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@elice/material-shared-types": "*",
|
|
35
35
|
"@elice/material-shared-utils": "*",
|
|
36
36
|
"@elice/types": "^1",
|
|
37
|
+
"@elice/wysiwyg": "^1",
|
|
37
38
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
38
39
|
"react-use": "^17.0.0",
|
|
39
40
|
"styled-components": "^5.2.0"
|
|
@@ -52,9 +53,10 @@
|
|
|
52
53
|
"@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
|
|
53
54
|
"@elice/intl": "0.240425.0-rc.2",
|
|
54
55
|
"@elice/markdown": "^1.220815.0",
|
|
55
|
-
"@elice/material-shared-types": "1.
|
|
56
|
-
"@elice/material-shared-utils": "1.
|
|
56
|
+
"@elice/material-shared-types": "1.240716.0",
|
|
57
|
+
"@elice/material-shared-utils": "1.240716.0",
|
|
57
58
|
"@elice/types": "^1.240619.0",
|
|
59
|
+
"@elice/wysiwyg": "1.240716.1",
|
|
58
60
|
"@types/classnames": "^2.3.1",
|
|
59
61
|
"@types/react": "~17.0.9",
|
|
60
62
|
"@types/react-transition-group": "^4.4.4",
|
|
@@ -63,5 +65,5 @@
|
|
|
63
65
|
"react-use": "^17.2.4",
|
|
64
66
|
"styled-components": "^5.3.0"
|
|
65
67
|
},
|
|
66
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "824db30f6b6377305ae84358cdb33224af59d1f1"
|
|
67
69
|
}
|