@team-monolith/cds 1.129.2-alpha.2 → 1.129.3-alpha

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.
Files changed (128) hide show
  1. package/dist/CdsProvider.js +180 -180
  2. package/dist/components/AlertDialog/AlertDialogTitle.js +15 -15
  3. package/dist/components/Banner.js +28 -28
  4. package/dist/components/FileTypeAlertDialog.js +16 -16
  5. package/dist/components/Pagination.js +22 -22
  6. package/dist/emotion.d.ts +185 -0
  7. package/dist/i18n/i18n.js +14 -14
  8. package/dist/index.d.ts +8 -1
  9. package/dist/node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +78 -0
  10. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/I18nextProvider.js +12 -0
  11. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/Trans.js +26 -0
  12. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js +174 -0
  13. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js +20 -0
  14. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js +24 -0
  15. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js +6 -0
  16. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js +11 -0
  17. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js +25 -0
  18. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js +69 -0
  19. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/utils.js +35 -0
  20. package/dist/patterns/LexicalEditor/Plugins.js +64 -64
  21. package/dist/patterns/LexicalEditor/components/FileSelectInput.js +19 -19
  22. package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +6 -6
  23. package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +34 -34
  24. package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +14 -14
  25. package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +17 -17
  26. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +62 -62
  27. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +25 -25
  28. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormPlaceholder.js +7 -7
  29. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +24 -23
  30. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +48 -47
  31. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +11 -11
  32. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
  33. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
  34. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +30 -30
  35. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +35 -35
  36. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +21 -21
  37. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +15 -15
  38. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +17 -17
  39. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +30 -30
  40. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +20 -20
  41. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +24 -24
  42. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +28 -28
  43. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +11 -11
  44. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +26 -26
  45. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormAllowMultipleAnswers.js +8 -8
  46. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +27 -27
  47. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +33 -33
  48. package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +21 -21
  49. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +99 -99
  50. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +50 -50
  51. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +85 -85
  52. package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +13 -13
  53. package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +48 -48
  54. package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/useImageNodeTransform.js +16 -16
  55. package/dist/patterns/ToggleButtonGroup/ToggleButton.js +17 -17
  56. package/package.json +15 -18
  57. package/@types/emotion.d.ts +0 -197
  58. package/node_modules/react-i18next/.eslintrc.json +0 -74
  59. package/node_modules/react-i18next/.husky/pre-commit +0 -1
  60. package/node_modules/react-i18next/.prettierignore +0 -4
  61. package/node_modules/react-i18next/CHANGELOG.md +0 -1433
  62. package/node_modules/react-i18next/LICENSE +0 -22
  63. package/node_modules/react-i18next/README.md +0 -181
  64. package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
  65. package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
  66. package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
  67. package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
  68. package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
  69. package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
  70. package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
  71. package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
  72. package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
  73. package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
  74. package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
  75. package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
  76. package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
  77. package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
  78. package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
  79. package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
  80. package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
  81. package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
  82. package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
  83. package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
  84. package/node_modules/react-i18next/dist/es/Trans.js +0 -43
  85. package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
  86. package/node_modules/react-i18next/dist/es/Translation.js +0 -12
  87. package/node_modules/react-i18next/dist/es/context.js +0 -42
  88. package/node_modules/react-i18next/dist/es/defaults.js +0 -18
  89. package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
  90. package/node_modules/react-i18next/dist/es/index.js +0 -18
  91. package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
  92. package/node_modules/react-i18next/dist/es/package.json +0 -1
  93. package/node_modules/react-i18next/dist/es/unescape.js +0 -25
  94. package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
  95. package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
  96. package/node_modules/react-i18next/dist/es/utils.js +0 -62
  97. package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
  98. package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
  99. package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
  100. package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
  101. package/node_modules/react-i18next/helpers.d.ts +0 -3
  102. package/node_modules/react-i18next/icu.macro.d.mts +0 -1
  103. package/node_modules/react-i18next/icu.macro.d.ts +0 -103
  104. package/node_modules/react-i18next/icu.macro.js +0 -729
  105. package/node_modules/react-i18next/index.d.mts +0 -1
  106. package/node_modules/react-i18next/index.d.ts +0 -209
  107. package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
  108. package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
  109. package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
  110. package/node_modules/react-i18next/package.json +0 -167
  111. package/node_modules/react-i18next/react-i18next.js +0 -871
  112. package/node_modules/react-i18next/react-i18next.min.js +0 -1
  113. package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
  114. package/node_modules/react-i18next/src/Trans.js +0 -45
  115. package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
  116. package/node_modules/react-i18next/src/Translation.js +0 -14
  117. package/node_modules/react-i18next/src/context.js +0 -54
  118. package/node_modules/react-i18next/src/defaults.js +0 -20
  119. package/node_modules/react-i18next/src/i18nInstance.js +0 -7
  120. package/node_modules/react-i18next/src/index.js +0 -22
  121. package/node_modules/react-i18next/src/initReactI18next.js +0 -11
  122. package/node_modules/react-i18next/src/unescape.js +0 -31
  123. package/node_modules/react-i18next/src/useSSR.js +0 -33
  124. package/node_modules/react-i18next/src/useTranslation.js +0 -171
  125. package/node_modules/react-i18next/src/utils.js +0 -93
  126. package/node_modules/react-i18next/src/withSSR.js +0 -21
  127. package/node_modules/react-i18next/src/withTranslation.js +0 -35
  128. package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
@@ -1,23 +1,23 @@
1
1
  import { ZINDEX as e } from "../../../../utils/zIndex.js";
2
- import { getTexts as t } from "../../../../texts.js";
3
- import { InsertImageDialog as n } from "../../components/InsertImageDialog/InsertImageDialog.js";
4
- import { ComponentPickerMenuList as r } from "./ComponentPickerMenuList.js";
5
- import { INSERT_PROBLEM_INPUT_COMMAND as i } from "../ProblemInputPlugin/index.js";
6
- import { INSERT_PROBLEM_SELECT_COMMAND as a } from "../ProblemSelectPlugin/index.js";
7
- import { INSERT_LAYOUT_COMMAND as o } from "../LayoutPlugin/index.js";
8
- import { INSERT_SHEET_SELECT_COMMAND as s } from "../SheetSelectPlugin/index.js";
9
- import { INSERT_SHEET_INPUT_COMMAND as c } from "../SheetInputPlugin/index.js";
10
- import { INSERT_SELF_EVALUATION_COMMAND as l } from "../SelfEvaluationPlugin/index.js";
11
- import { INSERT_IMAGE_COMMAND as u } from "../ImagesPlugin/index.js";
12
- import { InsertVideoDialog as d } from "../../components/InsertVideoDialog/InsertVideoDialog.js";
13
- import { INSERT_VIDEO_COMMAND as f } from "../VideosPlugin/index.js";
14
- import { UploadFileDialog as p } from "../../components/UploadFileDialog/UploadFileDialog.js";
15
- import { UPLOAD_FILE_COMMAND as m } from "../FilePlugin/index.js";
16
- import { getComponentPickerOptions as h, getTableComponentPickerOption as g, getThemedComponentPickerOptions as _ } from "./componentPickerOptionUtils.js";
17
- import { css as v, useTheme as y } from "@emotion/react";
18
- import { useCallback as b, useMemo as x, useState as S } from "react";
19
- import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
20
- import { useTranslation as E } from "react-i18next";
2
+ import { useTranslation as t } from "../../../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
3
+ import { getTexts as n } from "../../../../texts.js";
4
+ import { InsertImageDialog as r } from "../../components/InsertImageDialog/InsertImageDialog.js";
5
+ import { ComponentPickerMenuList as i } from "./ComponentPickerMenuList.js";
6
+ import { INSERT_PROBLEM_INPUT_COMMAND as a } from "../ProblemInputPlugin/index.js";
7
+ import { INSERT_PROBLEM_SELECT_COMMAND as o } from "../ProblemSelectPlugin/index.js";
8
+ import { INSERT_LAYOUT_COMMAND as s } from "../LayoutPlugin/index.js";
9
+ import { INSERT_SHEET_SELECT_COMMAND as c } from "../SheetSelectPlugin/index.js";
10
+ import { INSERT_SHEET_INPUT_COMMAND as l } from "../SheetInputPlugin/index.js";
11
+ import { INSERT_SELF_EVALUATION_COMMAND as u } from "../SelfEvaluationPlugin/index.js";
12
+ import { INSERT_IMAGE_COMMAND as d } from "../ImagesPlugin/index.js";
13
+ import { InsertVideoDialog as f } from "../../components/InsertVideoDialog/InsertVideoDialog.js";
14
+ import { INSERT_VIDEO_COMMAND as p } from "../VideosPlugin/index.js";
15
+ import { UploadFileDialog as m } from "../../components/UploadFileDialog/UploadFileDialog.js";
16
+ import { UPLOAD_FILE_COMMAND as h } from "../FilePlugin/index.js";
17
+ import { getComponentPickerOptions as g, getTableComponentPickerOption as _, getThemedComponentPickerOptions as v } from "./componentPickerOptionUtils.js";
18
+ import { css as y, useTheme as b } from "@emotion/react";
19
+ import { useCallback as x, useMemo as S, useState as C } from "react";
20
+ import { Fragment as w, jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
21
21
  import { css as D } from "@emotion/css";
22
22
  import { INSERT_HORIZONTAL_RULE_COMMAND as O } from "@lexical/react/LexicalHorizontalRuleNode";
23
23
  import { $createParagraphNode as k, $getSelection as A, $isRangeSelection as j } from "lexical";
@@ -55,7 +55,7 @@ function G(e, t) {
55
55
  9,
56
56
  10
57
57
  ].map(String);
58
- n.push(...i.map((n) => g({
58
+ n.push(...i.map((n) => _({
59
59
  editor: e,
60
60
  rows: t,
61
61
  columns: n
@@ -63,11 +63,11 @@ function G(e, t) {
63
63
  }
64
64
  return n;
65
65
  }
66
- function K(e, n, r) {
66
+ function K(e, t, r) {
67
67
  return [
68
- _({
68
+ v({
69
69
  key: "sheet_select",
70
- onSelect: () => e.dispatchCommand(s, {
70
+ onSelect: () => e.dispatchCommand(c, {
71
71
  selections: [{
72
72
  show: {
73
73
  image: null,
@@ -78,10 +78,10 @@ function K(e, n, r) {
78
78
  selected: [],
79
79
  allowMultipleAnswers: !1
80
80
  })
81
- }, r, n),
82
- _({
81
+ }, r, t),
82
+ v({
83
83
  key: "self_evaluation",
84
- onSelect: () => e.dispatchCommand(l, {
84
+ onSelect: () => e.dispatchCommand(u, {
85
85
  iconType: "emoji",
86
86
  labels: [
87
87
  r("아주 잘했어요!"),
@@ -89,40 +89,40 @@ function K(e, n, r) {
89
89
  r("잘 모르겠어요.")
90
90
  ],
91
91
  evaluations: [{
92
- question: { text: t(r, "placeholderEvaluationItem") },
92
+ question: { text: n(r, "placeholderEvaluationItem") },
93
93
  selectedLabelIndex: null
94
94
  }]
95
95
  })
96
- }, r, n),
97
- _({
96
+ }, r, t),
97
+ v({
98
98
  key: "sheet_input",
99
- onSelect: () => e.dispatchCommand(c, {
99
+ onSelect: () => e.dispatchCommand(l, {
100
100
  multiline: !1,
101
101
  value: "",
102
102
  placeholder: ""
103
103
  })
104
- }, r, n),
105
- _({
104
+ }, r, t),
105
+ v({
106
106
  key: "sheet_long_input",
107
- onSelect: () => e.dispatchCommand(c, {
107
+ onSelect: () => e.dispatchCommand(l, {
108
108
  multiline: !0,
109
109
  value: "",
110
110
  placeholder: ""
111
111
  })
112
- }, r, n),
113
- new U(r("활동지 메뉴구분선"), /* @__PURE__ */ w("div", { css: v`
112
+ }, r, t),
113
+ new U(r("활동지 메뉴구분선"), /* @__PURE__ */ T("div", { css: y`
114
114
  width: 100%;
115
115
  height: 1px;
116
- background: ${n.color.background.neutralAltActive};
116
+ background: ${t.color.background.neutralAltActive};
117
117
  margin: 4px 0;
118
118
  ` }))
119
119
  ];
120
120
  }
121
121
  function q(e, t, n) {
122
122
  return [
123
- _({
123
+ v({
124
124
  key: "problem_input",
125
- onSelect: () => e.dispatchCommand(i, {
125
+ onSelect: () => e.dispatchCommand(a, {
126
126
  solutions: [{
127
127
  textType: "normal",
128
128
  value: ""
@@ -134,10 +134,10 @@ function q(e, t, n) {
134
134
  ignoreWhitespace: !0
135
135
  })
136
136
  }, n, t),
137
- _({
137
+ v({
138
138
  key: "problem_select",
139
139
  onSelect: () => {
140
- e.dispatchCommand(a, {
140
+ e.dispatchCommand(o, {
141
141
  selections: [{
142
142
  isAnswer: !1,
143
143
  show: {
@@ -150,7 +150,7 @@ function q(e, t, n) {
150
150
  });
151
151
  }
152
152
  }, n, t),
153
- new U(n("퀴즈 메뉴구분선"), /* @__PURE__ */ w("div", { css: v`
153
+ new U(n("퀴즈 메뉴구분선"), /* @__PURE__ */ T("div", { css: y`
154
154
  width: 100%;
155
155
  height: 1px;
156
156
  background: ${t.color.background.neutralAltActive};
@@ -159,8 +159,8 @@ function q(e, t, n) {
159
159
  ];
160
160
  }
161
161
  function J(e) {
162
- let { editor: t, theme: n, t: r, setImageOpen: i, setVideoOpen: a, setFileOpen: s, isSheetEnabled: c, isQuizEnabled: l, showFileUpload: u } = e, d = [
163
- h({
162
+ let { editor: t, theme: n, t: r, setImageOpen: i, setVideoOpen: a, setFileOpen: o, isSheetEnabled: c, isQuizEnabled: l, showFileUpload: u } = e, d = [
163
+ g({
164
164
  key: "p",
165
165
  onSelect: () => t.update(() => {
166
166
  let e = A();
@@ -173,7 +173,7 @@ function J(e) {
173
173
  3
174
174
  ].map((e) => {
175
175
  let n = `h${e}`;
176
- return h({
176
+ return g({
177
177
  key: n,
178
178
  onSelect: () => t.update(() => {
179
179
  let e = A();
@@ -181,22 +181,22 @@ function J(e) {
181
181
  })
182
182
  }, r);
183
183
  }),
184
- h({
184
+ g({
185
185
  key: "ul",
186
186
  onSelect: () => t.dispatchCommand(I, void 0)
187
187
  }, r),
188
- h({
188
+ g({
189
189
  key: "ol",
190
190
  onSelect: () => t.dispatchCommand(F, void 0)
191
191
  }, r),
192
- h({
192
+ g({
193
193
  key: "quote",
194
194
  onSelect: () => t.update(() => {
195
195
  let e = A();
196
196
  j(e) && H(e, () => N());
197
197
  })
198
198
  }, r),
199
- h({
199
+ g({
200
200
  key: "code",
201
201
  onSelect: () => t.update(() => {
202
202
  let e = A();
@@ -207,87 +207,87 @@ function J(e) {
207
207
  }
208
208
  })
209
209
  }, r),
210
- h({
210
+ g({
211
211
  key: "divider",
212
212
  onSelect: () => t.dispatchCommand(O, void 0)
213
213
  }, r),
214
- h({
214
+ g({
215
215
  key: "image",
216
216
  onSelect: () => i(!0)
217
217
  }, r),
218
- h({
218
+ g({
219
219
  key: "video",
220
220
  onSelect: () => a(!0)
221
221
  }, r)
222
222
  ], f = localStorage.getItem("devMode") === "true", p = localStorage.getItem("labMode") === "true";
223
- return (l || f) && d.unshift(...q(t, n, r)), (c || f) && d.unshift(...K(t, n, r)), (f || p) && d.push(h({
223
+ return (l || f) && d.unshift(...q(t, n, r)), (c || f) && d.unshift(...K(t, n, r)), (f || p) && d.push(g({
224
224
  key: "column",
225
- onSelect: () => t.dispatchCommand(o, "1fr 1fr")
226
- }, r)), (u || f) && d.push(h({
225
+ onSelect: () => t.dispatchCommand(s, "1fr 1fr")
226
+ }, r)), (u || f) && d.push(g({
227
227
  key: "file",
228
- onSelect: () => s(!0)
228
+ onSelect: () => o(!0)
229
229
  }, r)), d;
230
230
  }
231
- function Y(t) {
232
- let { isSheetEnabled: i, isQuizEnabled: a, showFileUpload: o } = t, { t: s } = E(), [c] = P(), l = y(), [h, g] = S(null), [_, v] = S(!1), [O, k] = S(!1), [A, j] = S(!1), M = V("/", { minLength: 0 }), N = x(() => {
231
+ function Y(n) {
232
+ let { isSheetEnabled: a, isQuizEnabled: o, showFileUpload: s } = n, { t: c } = t(), [l] = P(), u = b(), [g, _] = C(null), [v, y] = C(!1), [O, k] = C(!1), [A, j] = C(!1), M = V("/", { minLength: 0 }), N = S(() => {
233
233
  let e = J({
234
- editor: c,
235
- theme: l,
236
- t: s,
237
- setImageOpen: v,
234
+ editor: l,
235
+ theme: u,
236
+ t: c,
237
+ setImageOpen: y,
238
238
  setVideoOpen: k,
239
- isSheetEnabled: i,
240
- isQuizEnabled: a,
239
+ isSheetEnabled: a,
240
+ isQuizEnabled: o,
241
241
  setFileOpen: j,
242
- showFileUpload: o
242
+ showFileUpload: s
243
243
  });
244
- if (!h) return e;
245
- let t = new RegExp(h, "i");
246
- return [...G(c, h), ...e.filter((e) => e instanceof W && (t.test(e.title) || e.keywords.some((e) => t.test(e))))];
247
- }, [c, h]), F = b((e, t, n, r) => {
248
- e instanceof U || c.update(() => {
244
+ if (!g) return e;
245
+ let t = new RegExp(g, "i");
246
+ return [...G(l, g), ...e.filter((e) => e instanceof W && (t.test(e.title) || e.keywords.some((e) => t.test(e))))];
247
+ }, [l, g]), F = x((e, t, n, r) => {
248
+ e instanceof U || l.update(() => {
249
249
  t?.remove(), e.onSelect(r), n();
250
250
  });
251
- }, [c]);
252
- return /* @__PURE__ */ T(C, { children: [
253
- /* @__PURE__ */ w(n, {
254
- title: s("이미지 삽입하기", { context: "제목, 다이얼로그" }),
255
- open: _,
251
+ }, [l]);
252
+ return /* @__PURE__ */ E(w, { children: [
253
+ /* @__PURE__ */ T(r, {
254
+ title: c("이미지 삽입하기", { context: "제목, 다이얼로그" }),
255
+ open: v,
256
256
  onChange: (e) => {
257
- c.dispatchCommand(u, e);
257
+ l.dispatchCommand(d, e);
258
258
  },
259
- onClose: () => v(!1),
259
+ onClose: () => y(!1),
260
260
  shouldReset: !0
261
261
  }),
262
- /* @__PURE__ */ w(d, {
263
- title: s("동영상 삽입하기", { context: "제목, 다이얼로그" }),
262
+ /* @__PURE__ */ T(f, {
263
+ title: c("동영상 삽입하기", { context: "제목, 다이얼로그" }),
264
264
  open: O,
265
265
  onChange: (e) => {
266
- c.dispatchCommand(f, e);
266
+ l.dispatchCommand(p, e);
267
267
  },
268
268
  onClose: () => k(!1),
269
269
  shouldReset: !0
270
270
  }),
271
- /* @__PURE__ */ w(p, {
271
+ /* @__PURE__ */ T(m, {
272
272
  open: A,
273
273
  onClose: () => j(!1),
274
274
  onChange: (e) => {
275
- c.dispatchCommand(m, e);
275
+ l.dispatchCommand(h, e);
276
276
  }
277
277
  }),
278
- /* @__PURE__ */ w(z, {
279
- onQueryChange: g,
278
+ /* @__PURE__ */ T(z, {
279
+ onQueryChange: _,
280
280
  onSelectOption: F,
281
281
  triggerFn: M,
282
282
  options: N,
283
283
  anchorClassName: D`
284
284
  z-index: ${e.DIALOG + 1};
285
285
  `,
286
- menuRenderFn: (e, { selectedIndex: t, selectOptionAndCleanUp: n, setHighlightedIndex: i }) => e.current && N.length ? R.createPortal(/* @__PURE__ */ w(r, {
286
+ menuRenderFn: (e, { selectedIndex: t, selectOptionAndCleanUp: n, setHighlightedIndex: r }) => e.current && N.length ? R.createPortal(/* @__PURE__ */ T(i, {
287
287
  options: N,
288
288
  selectedIndex: t,
289
289
  selectOptionAndCleanUp: n,
290
- setHighlightedIndex: i
290
+ setHighlightedIndex: r
291
291
  }), e.current) : null
292
292
  })
293
293
  ] });
@@ -1,9 +1,9 @@
1
- import { CdsContext as e } from "../../../../CdsProvider.js";
2
- import { getTexts as t } from "../../../../texts.js";
3
- import { INSERT_IMAGE_COMMAND as n } from "../ImagesPlugin/index.js";
4
- import { UPLOAD_FILE_COMMAND as r } from "../FilePlugin/index.js";
5
- import { useContext as i, useEffect as a } from "react";
6
- import { useTranslation as o } from "react-i18next";
1
+ import { useTranslation as e } from "../../../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
2
+ import { CdsContext as t } from "../../../../CdsProvider.js";
3
+ import { getTexts as n } from "../../../../texts.js";
4
+ import { INSERT_IMAGE_COMMAND as r } from "../ImagesPlugin/index.js";
5
+ import { UPLOAD_FILE_COMMAND as i } from "../FilePlugin/index.js";
6
+ import { useContext as a, useEffect as o } from "react";
7
7
  import { COMMAND_PRIORITY_LOW as s } from "lexical";
8
8
  import { DRAG_DROP_PASTE as c } from "@lexical/rich-text";
9
9
  import { isMimeType as l, mediaFileReader as u } from "@lexical/utils";
@@ -18,20 +18,20 @@ var p = [
18
18
  "image/webp"
19
19
  ], m = 1 * 1024 * 1024 * 1024;
20
20
  function h() {
21
- let [h] = d(), g = i(e), _ = g.lexical?.uploadByFile, v = g.lexical?.showFileError, { t: y } = o();
22
- return a(() => h.registerCommand(c, (e) => ((async () => {
21
+ let [h] = d(), g = a(t), _ = g.lexical?.uploadByFile, v = g.lexical?.showFileError, { t: y } = e();
22
+ return o(() => h.registerCommand(c, (e) => ((async () => {
23
23
  if (!_) return !1;
24
- let i = await u(e, [""]);
25
- for (let { file: e } of i) if (l(e, p)) {
24
+ let t = await u(e, [""]);
25
+ for (let { file: e } of t) if (l(e, p)) {
26
26
  let t = await _(e);
27
- h.dispatchCommand(n, {
27
+ h.dispatchCommand(r, {
28
28
  altText: e.name,
29
29
  src: t
30
30
  });
31
- } else if (e.size >= m) v?.("upload", t(y, "errorFileTooLarge"));
31
+ } else if (e.size >= m) v?.("upload", n(y, "errorFileTooLarge"));
32
32
  else {
33
33
  let t = await _(e);
34
- h.dispatchCommand(r, {
34
+ h.dispatchCommand(i, {
35
35
  fileUrl: t,
36
36
  fileName: e.name,
37
37
  fileSize: e.size,
@@ -2,44 +2,44 @@ import { stdin_default as e } from "../../../../node_modules/.pnpm/remixicon@4.3
2
2
  import { stdin_default as t } from "../../../../node_modules/.pnpm/remixicon@4.3.0/node_modules/remixicon/icons/System/check-line.js";
3
3
  import { stdin_default as n } from "../../../../node_modules/.pnpm/remixicon@4.3.0/node_modules/remixicon/icons/System/close-fill.js";
4
4
  import { stdin_default as r } from "../../../../node_modules/.pnpm/remixicon@4.3.0/node_modules/remixicon/icons/System/delete-bin-line.js";
5
- import { Input as i } from "../../../../components/Input.js";
6
- import { VISUALLY_HIDDEN as a } from "../../../../utils/visuallyHidden.js";
7
- import { getSelectedNode as o } from "../../utils/getSelectedNode.js";
8
- import { sanitizeUrl as s } from "../../utils/url.js";
9
- import { setFloatingElemPositionForLinkEditor as c } from "../../utils/setFloatingElemPositionForLinkEditor.js";
10
- import { useCallback as l, useEffect as u, useRef as d, useState as f } from "react";
11
- import p from "@emotion/styled";
12
- import { Fragment as m, jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
13
- import { useTranslation as _ } from "react-i18next";
5
+ import { useTranslation as i } from "../../../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
6
+ import { Input as a } from "../../../../components/Input.js";
7
+ import { VISUALLY_HIDDEN as o } from "../../../../utils/visuallyHidden.js";
8
+ import { getSelectedNode as s } from "../../utils/getSelectedNode.js";
9
+ import { sanitizeUrl as c } from "../../utils/url.js";
10
+ import { setFloatingElemPositionForLinkEditor as l } from "../../utils/setFloatingElemPositionForLinkEditor.js";
11
+ import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
12
+ import m from "@emotion/styled";
13
+ import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
14
14
  import { $getSelection as v, $isRangeSelection as y, COMMAND_PRIORITY_HIGH as b, COMMAND_PRIORITY_LOW as x, KEY_ESCAPE_COMMAND as S, SELECTION_CHANGE_COMMAND as C } from "lexical";
15
15
  import { $findMatchingParent as w, mergeRegister as T } from "@lexical/utils";
16
16
  import { $createLinkNode as E, $isAutoLinkNode as D, $isLinkNode as O, TOGGLE_LINK_COMMAND as k } from "@lexical/link";
17
17
  //#region src/cds/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.tsx
18
- function A(i) {
19
- let { editor: p, isLink: A, setIsLink: I, anchorElem: L, isLinkEditMode: R, setIsLinkEditMode: z } = i, { t: B } = _(), V = d(null), H = d(null), [U, W] = f(""), [G, K] = f("https://"), [q, J] = f(null), Y = l(() => {
18
+ function A(a) {
19
+ let { editor: m, isLink: A, setIsLink: I, anchorElem: L, isLinkEditMode: R, setIsLinkEditMode: z } = a, { t: B } = i(), V = f(null), H = f(null), [U, W] = p(""), [G, K] = p("https://"), [q, J] = p(null), Y = u(() => {
20
20
  let e = v();
21
21
  if (y(e)) {
22
- let t = o(e), n = w(t, O);
22
+ let t = s(e), n = w(t, O);
23
23
  n ? W(n.getURL()) : O(t) ? W(t.getURL()) : W(""), R && K(U);
24
24
  }
25
25
  let t = V.current, n = window.getSelection(), r = document.activeElement;
26
26
  if (t === null) return;
27
- let i = p.getRootElement();
28
- if (e !== null && n !== null && i !== null && i.contains(n.anchorNode) && p.isEditable()) {
27
+ let i = m.getRootElement();
28
+ if (e !== null && n !== null && i !== null && i.contains(n.anchorNode) && m.isEditable()) {
29
29
  let r = n.focusNode?.parentElement?.getBoundingClientRect();
30
- r && (r.y += 40, c(r, t, L)), J(e);
31
- } else (!r || r.className !== "link-input") && (i !== null && c(null, t, L), J(null), z(!1), W(""));
30
+ r && (r.y += 40, l(r, t, L)), J(e);
31
+ } else (!r || r.className !== "link-input") && (i !== null && l(null, t, L), J(null), z(!1), W(""));
32
32
  return !0;
33
33
  }, [
34
34
  L,
35
- p,
35
+ m,
36
36
  z,
37
37
  R,
38
38
  U
39
39
  ]);
40
- u(() => {
40
+ d(() => {
41
41
  let e = L.parentElement, t = () => {
42
- p.getEditorState().read(() => {
42
+ m.getEditorState().read(() => {
43
43
  Y();
44
44
  });
45
45
  };
@@ -48,31 +48,31 @@ function A(i) {
48
48
  };
49
49
  }, [
50
50
  L.parentElement,
51
- p,
51
+ m,
52
52
  Y
53
- ]), u(() => T(p.registerUpdateListener(({ editorState: e }) => {
53
+ ]), d(() => T(m.registerUpdateListener(({ editorState: e }) => {
54
54
  e.read(() => {
55
55
  Y();
56
56
  });
57
- }), p.registerCommand(C, () => (Y(), !0), x), p.registerCommand(S, () => A ? (I(!1), !0) : !1, b)), [
58
- p,
57
+ }), m.registerCommand(C, () => (Y(), !0), x), m.registerCommand(S, () => A ? (I(!1), !0) : !1, b)), [
58
+ m,
59
59
  Y,
60
60
  I,
61
61
  A
62
- ]), u(() => {
63
- p.getEditorState().read(() => {
62
+ ]), d(() => {
63
+ m.getEditorState().read(() => {
64
64
  Y();
65
65
  });
66
- }, [p, Y]), u(() => {
66
+ }, [m, Y]), d(() => {
67
67
  R && H.current && H.current.focus();
68
68
  }, [R, A]);
69
69
  let X = (e) => {
70
70
  e.key === "Enter" ? (e.preventDefault(), Z()) : e.key === "Escape" && (e.preventDefault(), z(!1));
71
71
  }, Z = () => {
72
- q !== null && (U !== "" && (p.dispatchCommand(k, s(G)), p.update(() => {
72
+ q !== null && (U !== "" && (m.dispatchCommand(k, c(G)), m.update(() => {
73
73
  let e = v();
74
74
  if (y(e)) {
75
- let t = o(e).getParent();
75
+ let t = s(e).getParent();
76
76
  if (D(t)) {
77
77
  let e = E(t.getURL(), {
78
78
  rel: t.__rel,
@@ -84,9 +84,9 @@ function A(i) {
84
84
  }
85
85
  })), K("https://"), z(!1));
86
86
  };
87
- return /* @__PURE__ */ h(j, {
87
+ return /* @__PURE__ */ g(j, {
88
88
  ref: V,
89
- children: A ? R ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(F, {
89
+ children: A ? R ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(F, {
90
90
  className: "link-input",
91
91
  fullWidth: !0,
92
92
  color: "default",
@@ -99,42 +99,42 @@ function A(i) {
99
99
  inputProps: { onKeyDown: (e) => {
100
100
  X(e);
101
101
  } }
102
- }), /* @__PURE__ */ g(M, { children: [/* @__PURE__ */ h(N, {
102
+ }), /* @__PURE__ */ _(M, { children: [/* @__PURE__ */ g(N, {
103
103
  tabIndex: 0,
104
104
  onClick: (e) => {
105
105
  e.preventDefault(), z(!1);
106
106
  },
107
- children: /* @__PURE__ */ h(n, {})
108
- }), /* @__PURE__ */ h(N, {
107
+ children: /* @__PURE__ */ g(n, {})
108
+ }), /* @__PURE__ */ g(N, {
109
109
  tabIndex: 0,
110
110
  onClick: (e) => {
111
111
  e.preventDefault(), Z();
112
112
  },
113
- children: /* @__PURE__ */ h(t, {})
114
- })] })] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g(P, {
115
- href: s(U),
113
+ children: /* @__PURE__ */ g(t, {})
114
+ })] })] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(P, {
115
+ href: c(U),
116
116
  target: "_blank",
117
117
  rel: "noopener noreferrer",
118
- children: [U, /* @__PURE__ */ h("span", {
119
- css: a,
118
+ children: [U, /* @__PURE__ */ g("span", {
119
+ css: o,
120
120
  children: B("(새 창)", { context: "렉시컬 링크 도구" })
121
121
  })]
122
- }), /* @__PURE__ */ g(M, { children: [/* @__PURE__ */ h(N, {
122
+ }), /* @__PURE__ */ _(M, { children: [/* @__PURE__ */ g(N, {
123
123
  tabIndex: 0,
124
124
  onClick: (e) => {
125
125
  e.preventDefault(), K(U), z(!0);
126
126
  },
127
- children: /* @__PURE__ */ h(e, {})
128
- }), /* @__PURE__ */ h(N, {
127
+ children: /* @__PURE__ */ g(e, {})
128
+ }), /* @__PURE__ */ g(N, {
129
129
  tabIndex: 0,
130
130
  onClick: (e) => {
131
- e.preventDefault(), p.dispatchCommand(k, null);
131
+ e.preventDefault(), m.dispatchCommand(k, null);
132
132
  },
133
- children: /* @__PURE__ */ h(r, {})
133
+ children: /* @__PURE__ */ g(r, {})
134
134
  })] })] }) : null
135
135
  });
136
136
  }
137
- var j = p.div`
137
+ var j = m.div`
138
138
  position: absolute;
139
139
  top: 0;
140
140
  left: 0;
@@ -154,11 +154,11 @@ var j = p.div`
154
154
  box-shadow: 0px 3px 15px -3px rgba(13, 20, 33, 0.13);
155
155
 
156
156
  width: 400px;
157
- `, M = p.div`
157
+ `, M = m.div`
158
158
  display: flex;
159
159
  align-items: center;
160
160
  gap: 4px;
161
- `, N = p.button`
161
+ `, N = m.button`
162
162
  // reset
163
163
  border: none;
164
164
  outline: none;
@@ -171,7 +171,7 @@ var j = p.div`
171
171
  width: 18px;
172
172
  height: 18px;
173
173
  }
174
- `, P = p.a`
174
+ `, P = m.a`
175
175
  width: 100%;
176
176
  padding: 0px 8px;
177
177
 
@@ -181,7 +181,7 @@ var j = p.div`
181
181
  font-style: normal;
182
182
  font-weight: 400;
183
183
  line-height: 24px; /* 150% */
184
- `, F = p(i)`
184
+ `, F = m(a)`
185
185
  margin: 4px 0px;
186
186
  `;
187
187
  //#endregion
@@ -1,7 +1,7 @@
1
- import { CdsContext as e } from "../../../../CdsProvider.js";
2
- import { $isImageNode as t } from "../../nodes/ImageNode/ImageNode.js";
3
- import { useContext as n, useRef as r } from "react";
4
- import { useTranslation as i } from "react-i18next";
1
+ import { useTranslation as e } from "../../../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
2
+ import { CdsContext as t } from "../../../../CdsProvider.js";
3
+ import { $isImageNode as n } from "../../nodes/ImageNode/ImageNode.js";
4
+ import { useContext as r, useRef as i } from "react";
5
5
  import { $getNodeByKey as a } from "lexical";
6
6
  //#region src/cds/patterns/LexicalEditor/plugins/ImagesPlugin/useImageNodeTransform.ts
7
7
  var o = /^data:[^,]+,/i;
@@ -17,35 +17,35 @@ async function c(e) {
17
17
  }
18
18
  }
19
19
  function l(o) {
20
- let l = n(e), u = l.lexical?.uploadByFile, d = l.lexical?.showFileError, { t: f } = i(), p = r(/* @__PURE__ */ new Set());
20
+ let l = r(t), u = l.lexical?.uploadByFile, d = l.lexical?.showFileError, { t: f } = e(), p = i(/* @__PURE__ */ new Set());
21
21
  return u ? (e) => {
22
- let n = e.getKey(), r = e.getSrc();
22
+ let t = e.getKey(), r = e.getSrc();
23
23
  if (!s(r)) {
24
- p.current.delete(n);
24
+ p.current.delete(t);
25
25
  return;
26
26
  }
27
- p.current.has(n) || (p.current.add(n), (async () => {
27
+ p.current.has(t) || (p.current.add(t), (async () => {
28
28
  let e = await c(r);
29
29
  if (!e) {
30
- p.current.delete(n), d?.("upload", f("손상된 이미지입니다. 다른 이미지를 사용해 주세요.")), o.update(() => {
31
- let e = a(n);
32
- t(e) && e.remove();
30
+ p.current.delete(t), d?.("upload", f("손상된 이미지입니다. 다른 이미지를 사용해 주세요.")), o.update(() => {
31
+ let e = a(t);
32
+ n(e) && e.remove();
33
33
  });
34
34
  return;
35
35
  }
36
36
  try {
37
37
  let r = await u(e);
38
38
  o.update(() => {
39
- let e = a(n);
40
- t(e) && e.setSrc(r);
39
+ let e = a(t);
40
+ n(e) && e.setSrc(r);
41
41
  });
42
42
  } catch {
43
43
  d?.("upload", f("이미지를 업로드하지 못했습니다. 다시 시도해 주세요.")), o.update(() => {
44
- let e = a(n);
45
- t(e) && e.remove();
44
+ let e = a(t);
45
+ n(e) && e.remove();
46
46
  });
47
47
  } finally {
48
- p.current.delete(n);
48
+ p.current.delete(t);
49
49
  }
50
50
  })());
51
51
  } : null;