@team-monolith/cds 1.74.0 → 1.74.2
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/patterns/LexicalEditor/index.d.ts +1 -0
- package/dist/patterns/LexicalEditor/index.js +1 -0
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/ProblemSelectNode.d.ts +6 -6
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.d.ts +2 -2
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.d.ts +3 -3
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.d.ts +2 -2
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.d.ts +2 -2
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SheetSelectNode.d.ts +6 -6
- package/dist/patterns/LexicalEditor/nodes/index.d.ts +6 -0
- package/dist/patterns/LexicalEditor/nodes/index.js +6 -0
- package/dist/patterns/LexicalEditor/nodes/nodes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export interface SelectionWithoutSolution {
|
|
|
8
8
|
};
|
|
9
9
|
value: string;
|
|
10
10
|
}
|
|
11
|
-
export type
|
|
11
|
+
export type ProblemSelection = SelectionWithoutSolution & {
|
|
12
12
|
isAnswer: boolean;
|
|
13
13
|
};
|
|
14
14
|
/** 정답이 공개되지 않은 객관식 문제는 다중정답 여부를 전달받기 위해서 서버에서 hasMultipleSolutions를 보내줍니다. */
|
|
@@ -16,7 +16,7 @@ export type ProblemSelectPayload = {
|
|
|
16
16
|
selected: string[];
|
|
17
17
|
key?: NodeKey;
|
|
18
18
|
} & ({
|
|
19
|
-
selections:
|
|
19
|
+
selections: ProblemSelection[];
|
|
20
20
|
} | {
|
|
21
21
|
selections: SelectionWithoutSolution[];
|
|
22
22
|
hasMultipleSolutions: boolean;
|
|
@@ -27,17 +27,17 @@ export type SerializedProblemSelectNode = Spread<ProblemSelectPayload, Serialize
|
|
|
27
27
|
* selected는 학생이 선택한 답의 value를 담고 있습니다.(학생용)
|
|
28
28
|
*/
|
|
29
29
|
export declare class ProblemSelectNode extends DecoratorNode<ReactNode> {
|
|
30
|
-
__selections:
|
|
30
|
+
__selections: ProblemSelection[] | SelectionWithoutSolution[];
|
|
31
31
|
__selected: string[];
|
|
32
32
|
__hasMultipleSolutions: boolean | undefined;
|
|
33
33
|
isInline(): boolean;
|
|
34
34
|
static getType(): string;
|
|
35
|
-
getSelections():
|
|
35
|
+
getSelections(): ProblemSelection[] | SelectionWithoutSolution[];
|
|
36
36
|
getSelected(): string[];
|
|
37
|
-
setSelections(selections:
|
|
37
|
+
setSelections(selections: ProblemSelection[] | SelectionWithoutSolution[]): void;
|
|
38
38
|
setSelected(selected: string[]): void;
|
|
39
39
|
static clone(node: ProblemSelectNode): ProblemSelectNode;
|
|
40
|
-
constructor(selections:
|
|
40
|
+
constructor(selections: ProblemSelection[] | SelectionWithoutSolution[], selected: string[], hasMultipleSolutions?: boolean, key?: NodeKey);
|
|
41
41
|
createDOM(config: EditorConfig): HTMLElement;
|
|
42
42
|
updateDOM(): boolean;
|
|
43
43
|
static importJSON(serializedNode: SerializedProblemSelectNode): ProblemSelectNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { NodeKey } from "lexical";
|
|
3
|
-
import {
|
|
3
|
+
import { ProblemSelection, SelectionWithoutSolution } from "./ProblemSelectNode";
|
|
4
4
|
export declare function SelectComponent(props: {
|
|
5
|
-
selections:
|
|
5
|
+
selections: ProblemSelection[] | SelectionWithoutSolution[];
|
|
6
6
|
selected: string[];
|
|
7
7
|
hasMultipleSolutions: boolean | undefined;
|
|
8
8
|
nodeKey: NodeKey;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProblemSelection } from "../ProblemSelectNode";
|
|
2
2
|
import { NodeKey } from "lexical";
|
|
3
3
|
export interface SettingFormProps {
|
|
4
|
-
selections:
|
|
4
|
+
selections: ProblemSelection[];
|
|
5
5
|
nodeKey: NodeKey;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
}
|
|
8
8
|
export interface SettingFormData {
|
|
9
|
-
selections:
|
|
9
|
+
selections: ProblemSelection[];
|
|
10
10
|
}
|
|
11
11
|
export default function SettingForm(props: SettingFormProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { NodeKey } from "lexical";
|
|
3
|
-
import {
|
|
3
|
+
import { SheetSelection } from "../SheetSelectNode";
|
|
4
4
|
export declare function SelectComponent(props: {
|
|
5
|
-
selections:
|
|
5
|
+
selections: SheetSelection[];
|
|
6
6
|
selected: string[];
|
|
7
7
|
allowMultipleAnswers: boolean;
|
|
8
8
|
nodeKey: NodeKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { NodeKey } from "lexical";
|
|
3
|
-
import {
|
|
3
|
+
import { SheetSelection } from "../../SheetSelectNode";
|
|
4
4
|
export interface SettingFormData {
|
|
5
|
-
selections:
|
|
5
|
+
selections: SheetSelection[];
|
|
6
6
|
allowMultipleAnswers: boolean;
|
|
7
7
|
}
|
|
8
8
|
/** 활동지 활동의 선택형 입력칸 설정 컴포넌트입니다. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DecoratorNode, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from "lexical";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { ImageProps } from "../../components/InsertImageDialog";
|
|
4
|
-
export interface
|
|
4
|
+
export interface SheetSelection {
|
|
5
5
|
show: {
|
|
6
6
|
image: ImageProps | null;
|
|
7
7
|
text: string;
|
|
@@ -10,7 +10,7 @@ export interface Selection {
|
|
|
10
10
|
}
|
|
11
11
|
export interface SheetSelectPayload {
|
|
12
12
|
selected: string[];
|
|
13
|
-
selections:
|
|
13
|
+
selections: SheetSelection[];
|
|
14
14
|
allowMultipleAnswers: boolean;
|
|
15
15
|
key?: NodeKey;
|
|
16
16
|
}
|
|
@@ -20,19 +20,19 @@ export type SerializedSheetSelectNode = Spread<SheetSelectPayload, SerializedLex
|
|
|
20
20
|
* selected는 선택한 답의 value를 담고 있습니다.(view mode에서만 노출)
|
|
21
21
|
*/
|
|
22
22
|
export declare class SheetSelectNode extends DecoratorNode<ReactNode> {
|
|
23
|
-
__selections:
|
|
23
|
+
__selections: SheetSelection[];
|
|
24
24
|
__selected: string[];
|
|
25
25
|
__allowMultipleAnswers: boolean;
|
|
26
26
|
isInline(): boolean;
|
|
27
27
|
static getType(): string;
|
|
28
|
-
getSelections():
|
|
28
|
+
getSelections(): SheetSelection[];
|
|
29
29
|
getSelected(): string[];
|
|
30
30
|
getAllowMultipleAnswers(): boolean;
|
|
31
|
-
setSelections(selections:
|
|
31
|
+
setSelections(selections: SheetSelection[]): void;
|
|
32
32
|
setSelected(selected: string[]): void;
|
|
33
33
|
setAllowMultipleAnswers(allowMultipleAnswers: boolean): void;
|
|
34
34
|
static clone(node: SheetSelectNode): SheetSelectNode;
|
|
35
|
-
constructor(selections:
|
|
35
|
+
constructor(selections: SheetSelection[], selected: string[], allowMultipleAnswers: boolean, key?: NodeKey);
|
|
36
36
|
createDOM(config: EditorConfig): HTMLElement;
|
|
37
37
|
updateDOM(): boolean;
|
|
38
38
|
static importJSON(serializedNode: SerializedSheetSelectNode): SheetSelectNode;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export * from "./ColoredQuoteNode";
|
|
2
2
|
export * from "./ImageNode";
|
|
3
3
|
export * from "./ProblemInputNode";
|
|
4
|
+
export * from "./ProblemSelectNode";
|
|
5
|
+
export * from "./SelfEvaluationNode";
|
|
6
|
+
export * from "./SheetInputNode";
|
|
7
|
+
export * from "./SheetSelectNode";
|
|
8
|
+
export * from "./LayoutContainerNode";
|
|
9
|
+
export * from "./LayoutItemNode";
|
|
4
10
|
export * from "./nodes";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export * from "./ColoredQuoteNode";
|
|
2
2
|
export * from "./ImageNode";
|
|
3
3
|
export * from "./ProblemInputNode";
|
|
4
|
+
export * from "./ProblemSelectNode";
|
|
5
|
+
export * from "./SelfEvaluationNode";
|
|
6
|
+
export * from "./SheetInputNode";
|
|
7
|
+
export * from "./SheetSelectNode";
|
|
8
|
+
export * from "./LayoutContainerNode";
|
|
9
|
+
export * from "./LayoutItemNode";
|
|
4
10
|
export * from "./nodes";
|
|
@@ -13,7 +13,7 @@ import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
|
|
|
13
13
|
import { ListItemNode, ListNode } from "@lexical/list";
|
|
14
14
|
import { CodeHighlightNode, CodeNode } from "@lexical/code";
|
|
15
15
|
import { LinkNode } from "@lexical/link";
|
|
16
|
-
export declare const nodes: (typeof ColoredQuoteNode | typeof QuoteNode | typeof ImageNode | typeof ProblemInputNode | typeof
|
|
16
|
+
export declare const nodes: (typeof ColoredQuoteNode | typeof QuoteNode | typeof ImageNode | typeof ProblemInputNode | typeof ProblemSelectNode | typeof SelfEvaluationNode | typeof SheetInputNode | typeof SheetSelectNode | typeof LayoutContainerNode | typeof LayoutItemNode | typeof HeadingNode | typeof ListNode | typeof ListItemNode | typeof CodeNode | typeof CodeHighlightNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode | typeof LinkNode | typeof HorizontalRuleNode | {
|
|
17
17
|
replace: typeof QuoteNode;
|
|
18
18
|
with: () => ColoredQuoteNode;
|
|
19
19
|
})[];
|