diy-template-components 0.2.59 → 0.2.61

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/build/index.js CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- function ___$insertStyle(css) {
6
- if (!css || !window) {
7
- return;
8
- }
9
- const style = document.createElement('style');
10
- style.setAttribute('type', 'text/css');
11
- style.innerHTML = css;
12
- document.head.appendChild(style);
13
- return css;
5
+ function ___$insertStyle(css) {
6
+ if (!css || typeof window === 'undefined') {
7
+ return;
8
+ }
9
+ const style = document.createElement('style');
10
+ style.setAttribute('type', 'text/css');
11
+ style.innerHTML = css;
12
+ document.head.appendChild(style);
13
+ return css;
14
14
  }
15
15
 
16
16
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7438,6 +7438,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
7438
7438
  lineHeight: '24px',
7439
7439
  wordBreak: 'break-word',
7440
7440
  color: theme.palette.font.primary,
7441
+ whiteSpace: 'pre-wrap',
7441
7442
  margin: '10px 0 20px'
7442
7443
  },
7443
7444
  courseDetailViewFullDetails: {
@@ -8080,7 +8081,7 @@ const FormPage = ({
8080
8081
  }, /*#__PURE__*/React__default["default"].createElement("input", {
8081
8082
  // value={option.value}
8082
8083
  type: "radio",
8083
- name: "text",
8084
+ name: `text_${item._id}`,
8084
8085
  required: item.isRequired,
8085
8086
  value: option.value,
8086
8087
  checked: formData[item._id]?.solutionArray?.[0] === option.value