pds-dev-kit-web 2.2.240 → 2.2.241

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.
@@ -93,6 +93,13 @@
93
93
  "str_channel_min_price": "ex) {{channelMinPrice}}",
94
94
  "str_friendly_currency_won": "KRW",
95
95
  "str_friendly_currency_jpy": "JPY",
96
- "str_friendly_currency_dollar": "USD"
96
+ "str_friendly_currency_dollar": "USD",
97
+ "str_9064": "If you do not enter text in Korean, it will be shown to the member in English.",
98
+ "str_9065": "If English is not entered, members will see the $t(str_original_text).",
99
+ "str_9066": "If Japanese is not entered, members will see the content in English.",
100
+ "str_9067": "If Simplified Chinese is not entered, members will see the content in English.",
101
+ "str_9068": "If Traditional Chinese is not entered, members will see the content in English.",
102
+ "str_9069": "If French is not entered, members will see the content in English.",
103
+ "str_9070": "If Spanish is not entered, members will see the content in English."
97
104
  }
98
105
  }
@@ -93,6 +93,13 @@
93
93
  "str_channel_min_price": "ex) {{channelMinPrice}}",
94
94
  "str_friendly_currency_won": "ganó",
95
95
  "str_friendly_currency_jpy": "JPY",
96
- "str_friendly_currency_dollar": "dólares"
96
+ "str_friendly_currency_dollar": "dólares",
97
+ "str_9064": "Si no ingresa el idioma coreano, se mostrará como $t(str_original_text) para los miembros.",
98
+ "str_9065": "Si no ingresa el idioma inglés, se mostrará a los miembros como $t(str_original_text).",
99
+ "str_9066": "Si no ingresa en japonés, se mostrará a los miembros en inglés.",
100
+ "str_9067": "Si no ingresa chino simplificado, se mostrará a los miembros en inglés.",
101
+ "str_9068": "Si no ingresa en chino tradicional, se mostrará a los miembros en inglés.",
102
+ "str_9069": "Si no ingresa en francés, se mostrará a los miembros en inglés.",
103
+ "str_9070": "Si no ingresa en español, se mostrará a los miembros en inglés."
97
104
  }
98
105
  }
@@ -96,6 +96,13 @@ declare const locale: {
96
96
  str_friendly_currency_won: string;
97
97
  str_friendly_currency_jpy: string;
98
98
  str_friendly_currency_dollar: string;
99
+ str_9064: string;
100
+ str_9065: string;
101
+ str_9066: string;
102
+ str_9067: string;
103
+ str_9068: string;
104
+ str_9069: string;
105
+ str_9070: string;
99
106
  };
100
107
  };
101
108
  readonly en: {
@@ -194,6 +201,13 @@ declare const locale: {
194
201
  str_friendly_currency_won: string;
195
202
  str_friendly_currency_jpy: string;
196
203
  str_friendly_currency_dollar: string;
204
+ str_9064: string;
205
+ str_9065: string;
206
+ str_9066: string;
207
+ str_9067: string;
208
+ str_9068: string;
209
+ str_9069: string;
210
+ str_9070: string;
197
211
  };
198
212
  };
199
213
  readonly ja: {
@@ -292,6 +306,13 @@ declare const locale: {
292
306
  str_friendly_currency_won: string;
293
307
  str_friendly_currency_jpy: string;
294
308
  str_friendly_currency_dollar: string;
309
+ str_9064: string;
310
+ str_9065: string;
311
+ str_9066: string;
312
+ str_9067: string;
313
+ str_9068: string;
314
+ str_9069: string;
315
+ str_9070: string;
295
316
  };
296
317
  };
297
318
  readonly es: {
@@ -390,6 +411,13 @@ declare const locale: {
390
411
  str_friendly_currency_won: string;
391
412
  str_friendly_currency_jpy: string;
392
413
  str_friendly_currency_dollar: string;
414
+ str_9064: string;
415
+ str_9065: string;
416
+ str_9066: string;
417
+ str_9067: string;
418
+ str_9068: string;
419
+ str_9069: string;
420
+ str_9070: string;
393
421
  };
394
422
  };
395
423
  readonly 'zh-cn': {
@@ -488,6 +516,13 @@ declare const locale: {
488
516
  str_friendly_currency_won: string;
489
517
  str_friendly_currency_jpy: string;
490
518
  str_friendly_currency_dollar: string;
519
+ str_9064: string;
520
+ str_9065: string;
521
+ str_9066: string;
522
+ str_9067: string;
523
+ str_9068: string;
524
+ str_9069: string;
525
+ str_9070: string;
491
526
  };
492
527
  };
493
528
  readonly 'zh-tw': {
@@ -586,6 +621,13 @@ declare const locale: {
586
621
  str_friendly_currency_won: string;
587
622
  str_friendly_currency_jpy: string;
588
623
  str_friendly_currency_dollar: string;
624
+ str_9064: string;
625
+ str_9065: string;
626
+ str_9066: string;
627
+ str_9067: string;
628
+ str_9068: string;
629
+ str_9069: string;
630
+ str_9070: string;
589
631
  };
590
632
  };
591
633
  readonly fil: {
@@ -93,6 +93,13 @@
93
93
  "str_channel_min_price": "ex) {{channelMinPrice}}",
94
94
  "str_friendly_currency_won": "ウォン",
95
95
  "str_friendly_currency_jpy": "JPY",
96
- "str_friendly_currency_dollar": "ドル"
96
+ "str_friendly_currency_dollar": "ドル",
97
+ "str_9064": "韓国語を入力しない場合、メンバーには英語で表示されます。",
98
+ "str_9065": "英語を入力しないと、メンバーに$t(str_original_text)として表示されます。",
99
+ "str_9066": "日本語を入力しないと、会員に英語で表示されます。",
100
+ "str_9067": "簡体字中国語を入力しないと、会員に英語で表示されます。",
101
+ "str_9068": "中国語・繁体字を入力しない場合は、会員に英語で表示されます。",
102
+ "str_9069": "フランス語を入力しないと、メンバーに英語で表示されます。",
103
+ "str_9070": "スペイン語を入力しないと、会員に英語で表示されます。"
97
104
  }
98
105
  }
@@ -94,6 +94,13 @@
94
94
  "str_channel_min_price": "예) {{channelMinPrice}}",
95
95
  "str_friendly_currency_won": "원",
96
96
  "str_friendly_currency_jpy": "엔",
97
- "str_friendly_currency_dollar": "달러"
97
+ "str_friendly_currency_dollar": "달러",
98
+ "str_9064": "한국어를 입력하지 않을 경우, 회원에게 영어로 보여집니다.",
99
+ "str_9065": "영어를 입력하지 않을 경우, 회원에게 $t(str_original_text)으로 보여집니다.",
100
+ "str_9066": "일본어를 입력하지 않을 경우, 회원에게 영어로 보여집니다.",
101
+ "str_9067": "중국어-간체를 입력하지 않을 경우, 회원에게 영어로 보여집니다.",
102
+ "str_9068": "중국어-번체를 입력하지 않을 경우, 회원에게 영어로 보여집니다.",
103
+ "str_9069": "프랑스어를 입력하지 않을 경우, 회원에게 영어로 보여집니다.",
104
+ "str_9070": "스페인어를 입력하지 않을 경우, 회원에게 영어로 보여집니다."
98
105
  }
99
106
  }
@@ -93,6 +93,13 @@
93
93
  "str_channel_min_price": "ex) {{channelMinPrice}}",
94
94
  "str_friendly_currency_won": "韩元",
95
95
  "str_friendly_currency_jpy": "JPY",
96
- "str_friendly_currency_dollar": "美元"
96
+ "str_friendly_currency_dollar": "美元",
97
+ "str_9064": "如果不输入韩文,会员将看到英文内容。",
98
+ "str_9065": "如果不输入英文,则会员会显示为$t(str_original_text)。",
99
+ "str_9066": "如果不输入日语,则会员以英语向会员显示。",
100
+ "str_9067": "如果您不输入简体中文,则会员以英文显示给会员。",
101
+ "str_9068": "如果您不输入繁体中文,则会员以英文显示给会员。",
102
+ "str_9069": "如果您不输入法语,则会员以英文显示给会员。",
103
+ "str_9070": "如果您不输入西班牙语,它将以英文显示给会员。"
97
104
  }
98
105
  }
@@ -93,6 +93,13 @@
93
93
  "str_channel_min_price": "ex) {{channelMinPrice}}",
94
94
  "str_friendly_currency_won": "韓元",
95
95
  "str_friendly_currency_jpy": "JPY",
96
- "str_friendly_currency_dollar": "美元"
96
+ "str_friendly_currency_dollar": "美元",
97
+ "str_9064": "如果不輸入韓文,會員將看到英文內容。",
98
+ "str_9065": "若不輸入英文,則會員顯示為$t(str_original_text)。",
99
+ "str_9066": "如果不輸入日語,則以英語向會員顯示。",
100
+ "str_9067": "如果您不輸入簡體中文,則以英文顯示給會員。",
101
+ "str_9068": "如果您不輸入繁體中文,則以英文顯示給會員。",
102
+ "str_9069": "如果您不輸入法語,則以英文顯示給會員。",
103
+ "str_9070": "如果您不輸入西班牙語,則以英文顯示給會員。"
97
104
  }
98
105
  }
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import type { LanguageCode } from '../../../common/types';
3
3
  import type { RichTextEditorProps } from '../../components/RichTextEditor/RichTextEditor';
4
+ import type { ImageUploadHandler } from '../../../mobile/components/RichTextEditor';
4
5
  export type RichEditorConfig = Omit<RichTextEditorProps, 'toolbar'> & {
5
6
  toolbar?: string[];
7
+ onImageUpload: ImageUploadHandler;
6
8
  };
7
9
  type LocalizedContentModalProps = {
8
10
  isOpen: boolean;
@@ -30,14 +30,23 @@ var styled_components_1 = __importDefault(require("styled-components"));
30
30
  var AnnotationSheet_1 = require("../AnnotationSheet");
31
31
  var DesktopBasicModal_1 = require("../DesktopBasicModal");
32
32
  var LANGUAGE_I18N_KEYS = {
33
- en: 'str_multilingual_en',
34
33
  ko: 'str_multilingual_ko',
34
+ en: 'str_multilingual_en',
35
35
  ja: 'str_multilingual_ja',
36
36
  zh: 'str_multilingual_zh_cn',
37
37
  'zh-Hant': 'str_multilingual_zh_tw',
38
38
  fr: 'str_multilingual_fr',
39
39
  es: 'str_multilingual_es'
40
40
  };
41
+ var LANGUAGE_DESC_TEXT_KEYS = {
42
+ ko: 'str_9064',
43
+ en: 'str_9065',
44
+ ja: 'str_9066',
45
+ zh: 'str_9067',
46
+ 'zh-Hant': 'str_9068',
47
+ fr: 'str_9069',
48
+ es: 'str_9070'
49
+ };
41
50
  function LocalizedContentModal(_a) {
42
51
  var isOpen = _a.isOpen, _b = _a.size, size = _b === void 0 ? 'medium' : _b, textFieldLineType = _a.textFieldLineType, originalText = _a.originalText, initialValues = _a.initialValues, visibleLanguages = _a.visibleLanguages, readonly = _a.readonly, richEditorConfig = _a.richEditorConfig, onClose = _a.onClose, onApply = _a.onApply;
43
52
  var t = (0, react_i18next_1.useTranslation)().t;
@@ -62,7 +71,7 @@ function LocalizedContentModal(_a) {
62
71
  if (!isOpen)
63
72
  return null;
64
73
  return ((0, jsx_runtime_1.jsx)(DesktopBasicModal_1.DesktopBasicModal, __assign({ titleText: t('str_multilingual_settings'), btnMode: readonly ? 'mbtn_amount1' : 'mbtn_amount2', mBtn1Text: readonly ? t('str_confirm') : t('str_apply'), mBtn2Text: t('str_cancel'), size: size, onClickMBtn1: handleApply, onClickMBtn2: handleCancel }, { children: (0, jsx_runtime_1.jsxs)(react_hook_form_1.FormProvider, __assign({}, methods, { children: [originalText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: t('str_original_text'), wordBreak: "keep_all", styleTheme: "subTitleBold", colorTheme: "sysTextPrimary" }), textFieldLineType === 'tinyeditor' ? ((0, jsx_runtime_1.jsx)(S_ReadonlyContent, { children: (0, jsx_runtime_1.jsx)(HTMLReader_1.HTMLReader, { data: originalText }) })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_d" }), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: originalText, wordBreak: "keep_all", styleTheme: "body2Regular", colorTheme: "sysTextPrimary" })] })), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" }), (0, jsx_runtime_1.jsx)(components_2.Divider, {}), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" })] })), visibleLanguages === null || visibleLanguages === void 0 ? void 0 : visibleLanguages.map(function (languageCode, index) {
65
- return ((0, jsx_runtime_1.jsxs)(S_LanguageField, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: "".concat(t(LANGUAGE_I18N_KEYS[languageCode])), styleTheme: "subTitleBold", colorTheme: "sysTextPrimary" }), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_b" }), textFieldLineType === 'tinyeditor' ? (readonly ? ((0, jsx_runtime_1.jsx)(AnnotationSheet_1.AnnotationSheet, __assign({ width: "100%", height: "240px", backgroundColorTheme: "base3", shapeType: "round", radius: 16, paddingTop: "spacing_d", paddingRight: "spacing_d", paddingBottom: "spacing_d", paddingLeft: "spacing_d" }, { children: (0, jsx_runtime_1.jsx)(S_ReadonlyContent, { dangerouslySetInnerHTML: {
74
+ return ((0, jsx_runtime_1.jsxs)(S_LanguageField, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: t(LANGUAGE_I18N_KEYS[languageCode]), styleTheme: "subTitleBold", colorTheme: "sysTextPrimary" }), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: t(LANGUAGE_DESC_TEXT_KEYS[languageCode]), styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" }), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_b" }), textFieldLineType === 'tinyeditor' ? (readonly ? ((0, jsx_runtime_1.jsx)(AnnotationSheet_1.AnnotationSheet, __assign({ width: "100%", height: "240px", backgroundColorTheme: "base3", shapeType: "round", radius: 16, paddingTop: "spacing_d", paddingRight: "spacing_d", paddingBottom: "spacing_d", paddingLeft: "spacing_d" }, { children: (0, jsx_runtime_1.jsx)(S_ReadonlyContent, { dangerouslySetInnerHTML: {
66
75
  __html: (initialValues === null || initialValues === void 0 ? void 0 : initialValues[languageCode]) || ''
67
76
  } }) }))) : ((0, jsx_runtime_1.jsx)(components_1.RichTextEditor, __assign({}, richEditorConfig, { onChange: function (value) { return methods.setValue(languageCode, value); }, defaultText: methods.getValues(languageCode), toolbar: (richEditorConfig === null || richEditorConfig === void 0 ? void 0 : richEditorConfig.toolbar) || [
68
77
  'blocks',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.240",
3
+ "version": "2.2.241",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.240]
2
+ ## [v2.2.241]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [PDS-1353] PDS TextField multi에 스크롤 표시
6
+ * [PDS-1360] 다국어 설정 모달 언어별 입력에 descText 추가