@daeryun/dr_components 1.2.29 → 1.2.31
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/dist/components/page/FieldNew/FieldNew.jsx +1 -1
- package/dist/components/page/FieldNew/FieldNew.tsx +1 -1
- package/dist/components/page/FieldNew/FieldNewView.jsx +1 -1
- package/dist/components/page/FieldNew/FieldNewView.tsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.jsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNewView.jsx +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNew.jsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNew.tsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNewView.jsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNewView.tsx +1 -1
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +18 -0
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +23 -1
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +18 -1
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +23 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -153,7 +153,7 @@ const FieldNew = ({ data, tel }) => {
|
|
|
153
153
|
refer_content_length > 0) ||
|
|
154
154
|
(news_is_use &&
|
|
155
155
|
news_length > 0 &&
|
|
156
|
-
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
156
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
157
157
|
//520px
|
|
158
158
|
'max-2sm:gap-[16px]'}>
|
|
159
159
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
@@ -240,7 +240,7 @@ const FieldNew = ({ data, tel }: IFieldNewPageTypes) => {
|
|
|
240
240
|
news_content_length > 0) ? (
|
|
241
241
|
<span
|
|
242
242
|
className={
|
|
243
|
-
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
243
|
+
'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
244
244
|
//520px
|
|
245
245
|
'max-2sm:gap-[16px]'
|
|
246
246
|
}
|
|
@@ -159,7 +159,7 @@ const FieldNewView = ({ data, tel }) => {
|
|
|
159
159
|
{(refer_is_use &&
|
|
160
160
|
refer_length > 0 &&
|
|
161
161
|
refer_content_length > 0) ||
|
|
162
|
-
(news_is_use && news_length > 0 && news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
162
|
+
(news_is_use && news_length > 0 && news_content_length > 0) ? (<span className={'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
163
163
|
//520px
|
|
164
164
|
'max-2sm:gap-[16px]'}>
|
|
165
165
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
@@ -246,7 +246,7 @@ const FieldNewView = ({ data, tel }: IFieldNewPageTypes) => {
|
|
|
246
246
|
(news_is_use && news_length > 0 && news_content_length > 0) ? (
|
|
247
247
|
<span
|
|
248
248
|
className={
|
|
249
|
-
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
249
|
+
'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
250
250
|
//520px
|
|
251
251
|
'max-2sm:gap-[16px]'
|
|
252
252
|
}
|
|
@@ -155,7 +155,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
155
155
|
refer_content_length > 0) ||
|
|
156
156
|
(news_is_use &&
|
|
157
157
|
news_length > 0 &&
|
|
158
|
-
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
158
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
159
159
|
//520px
|
|
160
160
|
'max-2sm:gap-[16px]'}>
|
|
161
161
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
@@ -248,7 +248,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
248
248
|
news_content_length > 0) ? (
|
|
249
249
|
<span
|
|
250
250
|
className={
|
|
251
|
-
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
251
|
+
'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
252
252
|
//520px
|
|
253
253
|
'max-2sm:gap-[16px]'
|
|
254
254
|
}
|
|
@@ -140,7 +140,7 @@ const LawInfoNewView = ({ data, tel }) => {
|
|
|
140
140
|
refer_content_length > 0) ||
|
|
141
141
|
(news_is_use &&
|
|
142
142
|
news_length > 0 &&
|
|
143
|
-
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
143
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
144
144
|
//520px
|
|
145
145
|
'max-2sm:gap-[16px]'}>
|
|
146
146
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
@@ -227,7 +227,7 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
227
227
|
news_content_length > 0) ? (
|
|
228
228
|
<span
|
|
229
229
|
className={
|
|
230
|
-
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
230
|
+
'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
231
231
|
//520px
|
|
232
232
|
'max-2sm:gap-[16px]'
|
|
233
233
|
}
|
|
@@ -167,7 +167,7 @@ const SuccessNew = ({ data, tel }) => {
|
|
|
167
167
|
refer_content_length > 0) ||
|
|
168
168
|
(news_is_use &&
|
|
169
169
|
news_length > 0 &&
|
|
170
|
-
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
170
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
171
171
|
//520px
|
|
172
172
|
'max-2sm:gap-[16px]'}>
|
|
173
173
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
@@ -265,7 +265,7 @@ const SuccessNew = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
265
265
|
news_content_length > 0) ? (
|
|
266
266
|
<span
|
|
267
267
|
className={
|
|
268
|
-
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
268
|
+
'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
269
269
|
//520px
|
|
270
270
|
'max-2sm:gap-[16px]'
|
|
271
271
|
}
|
|
@@ -159,7 +159,7 @@ const SuccessNewView = ({ data, tel }) => {
|
|
|
159
159
|
return (<>
|
|
160
160
|
<H3Contents h3Template={convertFaqItemType(h3Template)} key={'h3영역' + h3Template.idx} faqCount={h3Template === null || h3Template === void 0 ? void 0 : h3Template.faqCount}/>
|
|
161
161
|
{(refer_is_use && refer_length > 0 && refer_content_length > 0) ||
|
|
162
|
-
(news_is_use && news_length > 0 && news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
162
|
+
(news_is_use && news_length > 0 && news_content_length > 0) ? (<span className={'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
163
163
|
//520px
|
|
164
164
|
'max-2sm:gap-[16px]'}>
|
|
165
165
|
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
@@ -249,7 +249,7 @@ const SuccessNewView = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
249
249
|
(news_is_use && news_length > 0 && news_content_length > 0) ? (
|
|
250
250
|
<span
|
|
251
251
|
className={
|
|
252
|
-
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
252
|
+
'mb-[44px] flex w-full flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
253
253
|
//520px
|
|
254
254
|
'max-2sm:gap-[16px]'
|
|
255
255
|
}
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { htmlUrlDecode } from '../../../../lib';
|
|
3
|
+
import parse from 'html-react-parser';
|
|
4
|
+
import Image from 'next/image';
|
|
3
5
|
const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
4
6
|
const { active_faq } = h2Template;
|
|
7
|
+
let H2_HTML_REACT_NODE = null;
|
|
8
|
+
if (h2Template) {
|
|
9
|
+
console.log('h2Template.description : ', h2Template.description);
|
|
10
|
+
H2_HTML_REACT_NODE = parse(htmlUrlDecode(h2Template.description.replace('../../UploadFile', '/SE2/upload')), {
|
|
11
|
+
replace: domNode => {
|
|
12
|
+
console.log('domNode : ', domNode);
|
|
13
|
+
if (domNode.name === 'img') {
|
|
14
|
+
const { src, alt } = domNode.attribs;
|
|
15
|
+
console.log('src : ', src);
|
|
16
|
+
console.log('alt : ', alt);
|
|
17
|
+
return <Image src={src} width={800} height={400} alt={alt} loading="lazy"/>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
console.log('H2_HTML_REACT_NODE : ', H2_HTML_REACT_NODE);
|
|
22
|
+
}
|
|
5
23
|
const getItemScope = () => {
|
|
6
24
|
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
7
25
|
if (negativeActiveFaqValue && (faqCount === 0 || faqCount === undefined)) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ISeoTemplateTypes } from '../SuccessNewType';
|
|
3
3
|
import { htmlUrlDecode } from '../../../../lib';
|
|
4
|
+
import parse, { Element } from 'html-react-parser';
|
|
5
|
+
import Image from 'next/image';
|
|
4
6
|
|
|
5
7
|
type ItemPropTypes = 'mainEntity' | 'acceptedAnswer' | 'name' | 'text';
|
|
6
8
|
type ItemTypes = 'question' | 'answer';
|
|
@@ -16,6 +18,26 @@ const H2Contents = ({
|
|
|
16
18
|
}) => {
|
|
17
19
|
const { active_faq } = h2Template;
|
|
18
20
|
|
|
21
|
+
let H2_HTML_REACT_NODE: null | ReactNode = null;
|
|
22
|
+
|
|
23
|
+
if (h2Template) {
|
|
24
|
+
console.log('h2Template.description : ', h2Template.description);
|
|
25
|
+
|
|
26
|
+
H2_HTML_REACT_NODE = parse(htmlUrlDecode(h2Template.description.replace('../../UploadFile', '/SE2/upload')), {
|
|
27
|
+
replace: domNode => {
|
|
28
|
+
console.log('domNode : ', domNode);
|
|
29
|
+
if ((domNode as Element).name === 'img') {
|
|
30
|
+
const { src, alt } = (domNode as Element).attribs;
|
|
31
|
+
console.log('src : ', src);
|
|
32
|
+
console.log('alt : ', alt);
|
|
33
|
+
return <Image src={src} width={800} height={400} alt={alt} loading="lazy" />;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
console.log('H2_HTML_REACT_NODE : ', H2_HTML_REACT_NODE);
|
|
39
|
+
}
|
|
40
|
+
|
|
19
41
|
const getItemScope = (): boolean | undefined => {
|
|
20
42
|
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
21
43
|
|
|
@@ -2,8 +2,25 @@ import React from 'react';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import { htmlUrlDecode } from '../../../../lib';
|
|
4
4
|
import FieldIcon from '../../../../asset/images/success_new/field_icon.webp';
|
|
5
|
+
import parse from 'html-react-parser';
|
|
5
6
|
const H3Contents = ({ h3Template, faqCount }) => {
|
|
6
7
|
const { active_faq } = h3Template;
|
|
8
|
+
let H3_HTML_REACT_NODE = null;
|
|
9
|
+
if (h3Template) {
|
|
10
|
+
console.log('h3Template.description : ', h3Template.description);
|
|
11
|
+
H3_HTML_REACT_NODE = parse(htmlUrlDecode(h3Template.description.replace('../../UploadFile', '/SE2/upload')), {
|
|
12
|
+
replace: domNode => {
|
|
13
|
+
console.log('domNode : ', domNode);
|
|
14
|
+
if (domNode.name === 'img') {
|
|
15
|
+
const { src, alt } = domNode.attribs;
|
|
16
|
+
console.log('src : ', src);
|
|
17
|
+
console.log('alt : ', alt);
|
|
18
|
+
return <Image src={src} width={800} height={400} alt={alt} loading="lazy"/>;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
console.log('H3_HTML_REACT_NODE : ', H3_HTML_REACT_NODE);
|
|
23
|
+
}
|
|
7
24
|
const getItemScope = () => {
|
|
8
25
|
const negativeActiveFaqValue = active_faq === false || active_faq === null || active_faq === undefined;
|
|
9
26
|
if (negativeActiveFaqValue) {
|
|
@@ -44,7 +61,7 @@ const H3Contents = ({ h3Template, faqCount }) => {
|
|
|
44
61
|
return undefined;
|
|
45
62
|
};
|
|
46
63
|
return (<>
|
|
47
|
-
<div className={'px-[10px] sm:px-[18px]'} key={'h3영역' + h3Template.idx} itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
64
|
+
<div className={'overflow-hidden px-[10px] sm:px-[18px]'} key={'h3영역' + h3Template.idx} itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
48
65
|
{/*h3*/}
|
|
49
66
|
<h3 className={'mb-[16px] flex items-center break-keep text-[18px] font-bold tracking-[-0.96px] text-[#285FA7] sm:mb-[18px] sm:text-[22px] lg:mb-[22.5px] lg:text-[24px]'} id={h3Template.idx.toString()} itemProp={getItemProp('name')}>
|
|
50
67
|
{/*모든 seo 체크로 변경*/}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import { ISeoTemplateTypes } from '../SuccessNewType';
|
|
4
4
|
import { htmlUrlDecode } from '../../../../lib';
|
|
5
5
|
import FieldIcon from '../../../../asset/images/success_new/field_icon.webp';
|
|
6
|
+
import parse, { Element } from 'html-react-parser';
|
|
6
7
|
|
|
7
8
|
type ItemPropTypes = 'mainEntity' | 'acceptedAnswer' | 'name' | 'text';
|
|
8
9
|
type ItemTypes = 'question' | 'answer';
|
|
@@ -10,6 +11,26 @@ type ItemTypes = 'question' | 'answer';
|
|
|
10
11
|
const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; faqCount?: number }) => {
|
|
11
12
|
const { active_faq } = h3Template;
|
|
12
13
|
|
|
14
|
+
let H3_HTML_REACT_NODE: null | ReactNode = null;
|
|
15
|
+
|
|
16
|
+
if (h3Template) {
|
|
17
|
+
console.log('h3Template.description : ', h3Template.description);
|
|
18
|
+
|
|
19
|
+
H3_HTML_REACT_NODE = parse(htmlUrlDecode(h3Template.description.replace('../../UploadFile', '/SE2/upload')), {
|
|
20
|
+
replace: domNode => {
|
|
21
|
+
console.log('domNode : ', domNode);
|
|
22
|
+
if ((domNode as Element).name === 'img') {
|
|
23
|
+
const { src, alt } = (domNode as Element).attribs;
|
|
24
|
+
console.log('src : ', src);
|
|
25
|
+
console.log('alt : ', alt);
|
|
26
|
+
return <Image src={src} width={800} height={400} alt={alt} loading="lazy" />;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
console.log('H3_HTML_REACT_NODE : ', H3_HTML_REACT_NODE);
|
|
32
|
+
}
|
|
33
|
+
|
|
13
34
|
const getItemScope = (): boolean | undefined => {
|
|
14
35
|
const negativeActiveFaqValue: boolean = active_faq === false || active_faq === null || active_faq === undefined;
|
|
15
36
|
|
|
@@ -61,7 +82,7 @@ const H3Contents = ({ h3Template, faqCount }: { h3Template: ISeoTemplateTypes; f
|
|
|
61
82
|
return (
|
|
62
83
|
<>
|
|
63
84
|
<div
|
|
64
|
-
className={'px-[10px] sm:px-[18px]'}
|
|
85
|
+
className={'overflow-hidden px-[10px] sm:px-[18px]'}
|
|
65
86
|
key={'h3영역' + h3Template.idx}
|
|
66
87
|
itemScope={getItemScope()}
|
|
67
88
|
itemProp={getItemProp('mainEntity')}
|