@examind/block-editor 0.1.27 → 0.1.29

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/index.mjs CHANGED
@@ -6403,7 +6403,7 @@ import { HistoryPlugin as HistoryPlugin4 } from "@lexical/react/LexicalHistoryPl
6403
6403
  import { LexicalNestedComposer as LexicalNestedComposer4 } from "@lexical/react/LexicalNestedComposer";
6404
6404
  import { RichTextPlugin as RichTextPlugin3 } from "@lexical/react/LexicalRichTextPlugin";
6405
6405
  import { $getNodeByKey as $getNodeByKey19 } from "lexical";
6406
- import { Check, Trash2 as Trash23 } from "lucide-react";
6406
+ import { Check, Trash } from "lucide-react";
6407
6407
  import { useCallback as useCallback5 } from "react";
6408
6408
  import { Fragment as Fragment24, jsx as jsx56, jsxs as jsxs19 } from "react/jsx-runtime";
6409
6409
  function QuestionItemComponent(props) {
@@ -6448,7 +6448,7 @@ function QuestionItemComponent(props) {
6448
6448
  children: /* @__PURE__ */ jsx56(
6449
6449
  Button,
6450
6450
  {
6451
- StartIcon: Trash23,
6451
+ StartIcon: Trash,
6452
6452
  size: "small",
6453
6453
  variant: "text",
6454
6454
  className: "neutral",
@@ -6901,7 +6901,7 @@ import { LexicalNestedComposer as LexicalNestedComposer5 } from "@lexical/react/
6901
6901
  import { RichTextPlugin as RichTextPlugin4 } from "@lexical/react/LexicalRichTextPlugin";
6902
6902
  import clsx2 from "clsx";
6903
6903
  import { $getNodeByKey as $getNodeByKey21 } from "lexical";
6904
- import { Check as Check2, Trash2 as Trash24, XIcon as XIcon4 } from "lucide-react";
6904
+ import { Check as Check2, Trash as Trash3, XIcon as XIcon4 } from "lucide-react";
6905
6905
  import { useCallback as useCallback7 } from "react";
6906
6906
  import { jsx as jsx59, jsxs as jsxs21 } from "react/jsx-runtime";
6907
6907
  function MultipleOptionQuestionItemComponent(props) {
@@ -6968,7 +6968,7 @@ function MultipleOptionQuestionItemComponent(props) {
6968
6968
  children: /* @__PURE__ */ jsx59(
6969
6969
  Button,
6970
6970
  {
6971
- StartIcon: Trash24,
6971
+ StartIcon: Trash3,
6972
6972
  size: "small",
6973
6973
  variant: "text",
6974
6974
  className: "neutral",
@@ -7013,7 +7013,7 @@ function MultipleOptionQuestionItemComponent(props) {
7013
7013
  // src/plugins/MultipleOptionQuestionPlugin/MultipleOptionQuestionNoneOfTheAboveItem.tsx
7014
7014
  import { useLexicalComposerContext as useLexicalComposerContext27 } from "@lexical/react/LexicalComposerContext";
7015
7015
  import { $getNodeByKey as $getNodeByKey22 } from "lexical";
7016
- import { Check as Check3, Trash2 as Trash25 } from "lucide-react";
7016
+ import { Check as Check3, Trash as Trash4 } from "lucide-react";
7017
7017
  import { useCallback as useCallback8 } from "react";
7018
7018
  import { jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
7019
7019
  function MultipleOptionQuestionNoneOfTheAboveItem(props) {
@@ -7034,15 +7034,22 @@ function MultipleOptionQuestionNoneOfTheAboveItem(props) {
7034
7034
  "data-selectable": "true",
7035
7035
  children: [
7036
7036
  /* @__PURE__ */ jsxs22("div", { className: "controls", children: [
7037
- /* @__PURE__ */ jsx60("div", { children: /* @__PURE__ */ jsx60(
7038
- Button,
7039
- {
7040
- StartIcon: Check3,
7041
- size: "small",
7042
- variant: "text",
7043
- className: "success"
7044
- }
7045
- ) }),
7037
+ /* @__PURE__ */ jsx60("div", { children: /* @__PURE__ */ jsxs22("sl-tooltip", { style: { "--show-delay": "1000" }, hoist: true, children: [
7038
+ /* @__PURE__ */ jsxs22("div", { slot: "content", children: [
7039
+ "Grade as Correct",
7040
+ /* @__PURE__ */ jsx60("br", {}),
7041
+ "(Randomly)"
7042
+ ] }),
7043
+ /* @__PURE__ */ jsx60(
7044
+ Button,
7045
+ {
7046
+ StartIcon: Check3,
7047
+ size: "small",
7048
+ variant: "text",
7049
+ className: "success"
7050
+ }
7051
+ )
7052
+ ] }) }),
7046
7053
  /* @__PURE__ */ jsx60("div", { children: /* @__PURE__ */ jsx60(
7047
7054
  "sl-tooltip",
7048
7055
  {
@@ -7052,7 +7059,7 @@ function MultipleOptionQuestionNoneOfTheAboveItem(props) {
7052
7059
  children: /* @__PURE__ */ jsx60(
7053
7060
  Button,
7054
7061
  {
7055
- StartIcon: Trash25,
7062
+ StartIcon: Trash4,
7056
7063
  size: "small",
7057
7064
  variant: "text",
7058
7065
  className: "neutral",
@@ -7062,7 +7069,7 @@ function MultipleOptionQuestionNoneOfTheAboveItem(props) {
7062
7069
  }
7063
7070
  ) })
7064
7071
  ] }),
7065
- /* @__PURE__ */ jsx60("div", { className: "none-of-the-above-item", "data-selectable": "true", children: "None Of The Above Item" })
7072
+ /* @__PURE__ */ jsx60("div", { className: "none-of-the-above-item", "data-selectable": "true", children: "None of the above" })
7066
7073
  ]
7067
7074
  }
7068
7075
  );
@@ -7162,7 +7169,7 @@ function MultipleOptionQuestionComponent(props) {
7162
7169
  size: "medium",
7163
7170
  variant: "text",
7164
7171
  StartIcon: Plus2,
7165
- label: "ADD LINE",
7172
+ label: "ADD CHOICE",
7166
7173
  onClick: addOptionItem
7167
7174
  }
7168
7175
  ) })
@@ -8017,7 +8024,7 @@ import { LexicalNestedComposer as LexicalNestedComposer8 } from "@lexical/react/
8017
8024
  import { RichTextPlugin as RichTextPlugin7 } from "@lexical/react/LexicalRichTextPlugin";
8018
8025
  import clsx3 from "clsx";
8019
8026
  import { $getNodeByKey as $getNodeByKey26 } from "lexical";
8020
- import { Check as Check4, Trash2 as Trash26 } from "lucide-react";
8027
+ import { Check as Check4, Trash as Trash5 } from "lucide-react";
8021
8028
  import { useCallback as useCallback10, useEffect as useEffect43 } from "react";
8022
8029
  import { Fragment as Fragment30, jsx as jsx70, jsxs as jsxs26 } from "react/jsx-runtime";
8023
8030
  function JournalEntryQuestionItemComponent(props) {
@@ -8063,7 +8070,7 @@ function JournalEntryQuestionItemComponent(props) {
8063
8070
  children: /* @__PURE__ */ jsx70(
8064
8071
  Button,
8065
8072
  {
8066
- StartIcon: Trash26,
8073
+ StartIcon: Trash5,
8067
8074
  size: "small",
8068
8075
  variant: "text",
8069
8076
  className: "neutral",
@@ -9669,12 +9676,124 @@ function $isCalloutBoxNode(node) {
9669
9676
  return node instanceof CalloutBoxNode;
9670
9677
  }
9671
9678
 
9672
- // src/plugins/EssayQuestionPlugin/EssayQuestionNode.tsx
9679
+ // src/plugins/CustomQuestionPlugin/CustomQuestionComponent.tsx
9680
+ import { jsx as jsx83, jsxs as jsxs32 } from "react/jsx-runtime";
9681
+ function CustomQuestionComponent(props) {
9682
+ const { name } = props;
9683
+ return /* @__PURE__ */ jsxs32("div", { className: "custom-question-prompt", children: [
9684
+ /* @__PURE__ */ jsx83(
9685
+ "div",
9686
+ {
9687
+ className: "custom-question-prompt-title",
9688
+ "data-selectable": "true",
9689
+ children: "Custom"
9690
+ }
9691
+ ),
9692
+ /* @__PURE__ */ jsx83(
9693
+ "div",
9694
+ {
9695
+ className: "custom-question-prompt-content",
9696
+ "data-selectable": "true",
9697
+ children: /* @__PURE__ */ jsx83("div", { children: name })
9698
+ }
9699
+ )
9700
+ ] });
9701
+ }
9702
+
9703
+ // src/plugins/CustomQuestionPlugin/CustomQuestionNode.tsx
9673
9704
  import {
9674
9705
  $applyNodeReplacement as $applyNodeReplacement12,
9675
9706
  DecoratorNode as DecoratorNode12
9676
9707
  } from "lexical";
9677
9708
  import { nanoid as nanoid8 } from "nanoid";
9709
+ import { jsx as jsx84 } from "react/jsx-runtime";
9710
+ var TYPE_NAME11 = "custom-question";
9711
+ var CustomQuestionNode = class _CustomQuestionNode extends DecoratorNode12 {
9712
+ constructor(points, name, data, id, key) {
9713
+ super(key);
9714
+ this.__id = id || nanoid8();
9715
+ this.__points = points;
9716
+ this.__name = name;
9717
+ this.__data = data;
9718
+ }
9719
+ static getType() {
9720
+ return TYPE_NAME11;
9721
+ }
9722
+ static clone(node) {
9723
+ return new _CustomQuestionNode(
9724
+ node.__points,
9725
+ node.__name,
9726
+ node.__data,
9727
+ node.__id,
9728
+ node.__key
9729
+ );
9730
+ }
9731
+ __createWrapper() {
9732
+ return document.createElement("div");
9733
+ }
9734
+ createDOM() {
9735
+ return this.__createWrapper();
9736
+ }
9737
+ exportDOM() {
9738
+ const element = this.__createWrapper();
9739
+ return { element };
9740
+ }
9741
+ updateDOM() {
9742
+ return false;
9743
+ }
9744
+ static importDOM() {
9745
+ return null;
9746
+ }
9747
+ static importJSON(serializedNode) {
9748
+ return $createCustomQuestionNode(
9749
+ serializedNode.points,
9750
+ serializedNode.name,
9751
+ serializedNode.data,
9752
+ serializedNode.id
9753
+ );
9754
+ }
9755
+ exportJSON() {
9756
+ return {
9757
+ id: this.__id,
9758
+ points: this.__points,
9759
+ name: this.__name,
9760
+ data: this.__data,
9761
+ type: TYPE_NAME11,
9762
+ version: 1
9763
+ };
9764
+ }
9765
+ canIndent() {
9766
+ return false;
9767
+ }
9768
+ isInline() {
9769
+ return false;
9770
+ }
9771
+ isIsolated() {
9772
+ return true;
9773
+ }
9774
+ isKeyboardSelectable() {
9775
+ return false;
9776
+ }
9777
+ setPoints(points) {
9778
+ const writable = this.getWritable();
9779
+ writable.__points = points;
9780
+ }
9781
+ decorate() {
9782
+ return /* @__PURE__ */ jsx84(CustomQuestionComponent, { name: this.__name });
9783
+ }
9784
+ };
9785
+ function $createCustomQuestionNode(points, name, data, id) {
9786
+ return $applyNodeReplacement12(
9787
+ new CustomQuestionNode(points, name, data, id)
9788
+ );
9789
+ }
9790
+
9791
+ // src/plugins/EssayQuestionPlugin/EssayQuestionNode.tsx
9792
+ import {
9793
+ $applyNodeReplacement as $applyNodeReplacement13,
9794
+ DecoratorNode as DecoratorNode13
9795
+ } from "lexical";
9796
+ import { nanoid as nanoid9 } from "nanoid";
9678
9797
 
9679
9798
  // src/plugins/EssayQuestionPlugin/EssayQuestionComponent.tsx
9680
9799
  import { useLexicalComposerContext as useLexicalComposerContext44 } from "@lexical/react/LexicalComposerContext";
@@ -9686,7 +9805,7 @@ import {
9686
9805
  COMMAND_PRIORITY_LOW as COMMAND_PRIORITY_LOW10
9687
9806
  } from "lexical";
9688
9807
  import { useEffect as useEffect53, useRef as useRef32 } from "react";
9689
- import { jsx as jsx83, jsxs as jsxs32 } from "react/jsx-runtime";
9808
+ import { jsx as jsx85, jsxs as jsxs33 } from "react/jsx-runtime";
9690
9809
  function EssayQuestionComponent(props) {
9691
9810
  const { nodeKey, id, aiSystemMessage } = props;
9692
9811
  const [editor] = useLexicalComposerContext44();
@@ -9712,14 +9831,14 @@ function EssayQuestionComponent(props) {
9712
9831
  COMMAND_PRIORITY_LOW10
9713
9832
  );
9714
9833
  }, [editor]);
9715
- return /* @__PURE__ */ jsxs32(
9834
+ return /* @__PURE__ */ jsxs33(
9716
9835
  "div",
9717
9836
  {
9718
9837
  ref: rootElementRef,
9719
9838
  id,
9720
9839
  className: "essay-question-prompt",
9721
9840
  children: [
9722
- /* @__PURE__ */ jsx83(
9841
+ /* @__PURE__ */ jsx85(
9723
9842
  "div",
9724
9843
  {
9725
9844
  className: "essay-question-prompt-title",
@@ -9727,12 +9846,12 @@ function EssayQuestionComponent(props) {
9727
9846
  children: "Essay"
9728
9847
  }
9729
9848
  ),
9730
- /* @__PURE__ */ jsx83(
9849
+ /* @__PURE__ */ jsx85(
9731
9850
  "div",
9732
9851
  {
9733
9852
  className: "essay-question-prompt-content",
9734
9853
  "data-selectable": "true",
9735
- children: /* @__PURE__ */ jsx83("div", { className: "title", "data-selectable": "true", children: aiSystemMessage })
9854
+ children: /* @__PURE__ */ jsx85("div", { className: "title", "data-selectable": "true", children: aiSystemMessage })
9736
9855
  }
9737
9856
  )
9738
9857
  ]
@@ -9741,12 +9860,12 @@ function EssayQuestionComponent(props) {
9741
9860
  }
9742
9861
 
9743
9862
  // src/plugins/EssayQuestionPlugin/EssayQuestionNode.tsx
9744
- import { jsx as jsx84 } from "react/jsx-runtime";
9745
- var TYPE_NAME11 = "essay-question";
9746
- var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode12 {
9863
+ import { jsx as jsx86 } from "react/jsx-runtime";
9864
+ var TYPE_NAME12 = "essay-question";
9865
+ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode13 {
9747
9866
  constructor(points, maxWords, hideChat, aiSystemMessage, aiChatModel, id, key) {
9748
9867
  super(key);
9749
- this.__id = id || nanoid8();
9868
+ this.__id = id || nanoid9();
9750
9869
  this.__points = points < 0 ? 1 : points;
9751
9870
  this.__maxWords = maxWords;
9752
9871
  this.__hideChat = hideChat || false;
@@ -9754,7 +9873,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode12 {
9754
9873
  this.__aiChatModel = aiChatModel || null;
9755
9874
  }
9756
9875
  static getType() {
9757
- return TYPE_NAME11;
9876
+ return TYPE_NAME12;
9758
9877
  }
9759
9878
  static clone(node) {
9760
9879
  return new _EssayQuestionNode(
@@ -9803,7 +9922,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode12 {
9803
9922
  hideChat: this.__hideChat,
9804
9923
  aiChatModel: this.__aiChatModel,
9805
9924
  aiSystemMessage: this.__aiSystemMessage,
9806
- type: TYPE_NAME11,
9925
+ type: TYPE_NAME12,
9807
9926
  version: 1
9808
9927
  };
9809
9928
  }
@@ -9828,7 +9947,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode12 {
9828
9947
  writable.__maxWords = maxWords;
9829
9948
  }
9830
9949
  decorate() {
9831
- return /* @__PURE__ */ jsx84(
9950
+ return /* @__PURE__ */ jsx86(
9832
9951
  EssayQuestionComponent,
9833
9952
  {
9834
9953
  nodeKey: this.__key,
@@ -9839,7 +9958,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode12 {
9839
9958
  }
9840
9959
  };
9841
9960
  function $createEssayQuestionNode(points, maxWords, hideChat, aiSystemMessage, aiChatModel, id) {
9842
- return $applyNodeReplacement12(
9961
+ return $applyNodeReplacement13(
9843
9962
  new EssayQuestionNode(
9844
9963
  points,
9845
9964
  maxWords,
@@ -9863,18 +9982,18 @@ import {
9863
9982
  removeClassNamesFromElement
9864
9983
  } from "@lexical/utils";
9865
9984
  import {
9866
- $applyNodeReplacement as $applyNodeReplacement13,
9985
+ $applyNodeReplacement as $applyNodeReplacement14,
9867
9986
  $getSelection as $getSelection7,
9868
9987
  $isNodeSelection as $isNodeSelection4,
9869
9988
  CLICK_COMMAND as CLICK_COMMAND11,
9870
9989
  COMMAND_PRIORITY_LOW as COMMAND_PRIORITY_LOW11,
9871
9990
  createCommand as createCommand12,
9872
- DecoratorNode as DecoratorNode13,
9991
+ DecoratorNode as DecoratorNode14,
9873
9992
  KEY_BACKSPACE_COMMAND as KEY_BACKSPACE_COMMAND4,
9874
9993
  KEY_DELETE_COMMAND as KEY_DELETE_COMMAND3
9875
9994
  } from "lexical";
9876
9995
  import { useCallback as useCallback12, useEffect as useEffect54 } from "react";
9877
- import { jsx as jsx85 } from "react/jsx-runtime";
9996
+ import { jsx as jsx87 } from "react/jsx-runtime";
9878
9997
  var INSERT_HORIZONTAL_RULE_COMMAND = createCommand12("INSERT_HORIZONTAL_RULE_COMMAND");
9879
9998
  function HorizontalRuleComponent({ nodeKey }) {
9880
9999
  const [editor] = useLexicalComposerContext45();
@@ -9942,7 +10061,7 @@ function HorizontalRuleComponent({ nodeKey }) {
9942
10061
  }, [editor, isSelected, nodeKey]);
9943
10062
  return null;
9944
10063
  }
9945
- var HorizontalRuleNode = class _HorizontalRuleNode extends DecoratorNode13 {
10064
+ var HorizontalRuleNode = class _HorizontalRuleNode extends DecoratorNode14 {
9946
10065
  static getType() {
9947
10066
  return "horizontalrule";
9948
10067
  }
@@ -9986,14 +10105,14 @@ var HorizontalRuleNode = class _HorizontalRuleNode extends DecoratorNode13 {
9986
10105
  return false;
9987
10106
  }
9988
10107
  decorate() {
9989
- return /* @__PURE__ */ jsx85(HorizontalRuleComponent, { nodeKey: this.__key });
10108
+ return /* @__PURE__ */ jsx87(HorizontalRuleComponent, { nodeKey: this.__key });
9990
10109
  }
9991
10110
  };
9992
10111
  function $convertHorizontalRuleElement() {
9993
10112
  return { node: $createHorizontalRuleNode() };
9994
10113
  }
9995
10114
  function $createHorizontalRuleNode() {
9996
- return $applyNodeReplacement13(new HorizontalRuleNode());
10115
+ return $applyNodeReplacement14(new HorizontalRuleNode());
9997
10116
  }
9998
10117
  function $isHorizontalRuleNode(node) {
9999
10118
  return node instanceof HorizontalRuleNode;
@@ -10001,10 +10120,10 @@ function $isHorizontalRuleNode(node) {
10001
10120
 
10002
10121
  // src/plugins/SimulationQuestionPlugin/SimulationQuestionNode.tsx
10003
10122
  import {
10004
- $applyNodeReplacement as $applyNodeReplacement14,
10005
- DecoratorNode as DecoratorNode14
10123
+ $applyNodeReplacement as $applyNodeReplacement15,
10124
+ DecoratorNode as DecoratorNode15
10006
10125
  } from "lexical";
10007
- import { nanoid as nanoid9 } from "nanoid";
10126
+ import { nanoid as nanoid10 } from "nanoid";
10008
10127
 
10009
10128
  // src/plugins/SimulationQuestionPlugin/SimulationQuestionComponent.tsx
10010
10129
  import { useLexicalComposerContext as useLexicalComposerContext46 } from "@lexical/react/LexicalComposerContext";
@@ -10016,7 +10135,7 @@ import {
10016
10135
  COMMAND_PRIORITY_LOW as COMMAND_PRIORITY_LOW12
10017
10136
  } from "lexical";
10018
10137
  import { useEffect as useEffect55, useRef as useRef33 } from "react";
10019
- import { jsx as jsx86, jsxs as jsxs33 } from "react/jsx-runtime";
10138
+ import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
10020
10139
  function SimulationQuestionComponent(props) {
10021
10140
  const { nodeKey, id, aiSystemMessage, step2Instruction } = props;
10022
10141
  const [editor] = useLexicalComposerContext46();
@@ -10042,14 +10161,14 @@ function SimulationQuestionComponent(props) {
10042
10161
  COMMAND_PRIORITY_LOW12
10043
10162
  );
10044
10163
  }, [editor]);
10045
- return /* @__PURE__ */ jsxs33(
10164
+ return /* @__PURE__ */ jsxs34(
10046
10165
  "div",
10047
10166
  {
10048
10167
  ref: rootElementRef,
10049
10168
  id,
10050
10169
  className: "simulation-question-prompt",
10051
10170
  children: [
10052
- /* @__PURE__ */ jsx86(
10171
+ /* @__PURE__ */ jsx88(
10053
10172
  "div",
10054
10173
  {
10055
10174
  className: "simulation-question-prompt-title",
@@ -10057,14 +10176,14 @@ function SimulationQuestionComponent(props) {
10057
10176
  children: "Simulation"
10058
10177
  }
10059
10178
  ),
10060
- /* @__PURE__ */ jsxs33(
10179
+ /* @__PURE__ */ jsxs34(
10061
10180
  "div",
10062
10181
  {
10063
10182
  className: "simulation-question-prompt-content",
10064
10183
  "data-selectable": "true",
10065
10184
  children: [
10066
- /* @__PURE__ */ jsx86("div", { className: "title", "data-selectable": "true", children: aiSystemMessage }),
10067
- /* @__PURE__ */ jsx86("div", { children: step2Instruction })
10185
+ /* @__PURE__ */ jsx88("div", { className: "title", "data-selectable": "true", children: aiSystemMessage }),
10186
+ /* @__PURE__ */ jsx88("div", { children: step2Instruction })
10068
10187
  ]
10069
10188
  }
10070
10189
  )
@@ -10074,19 +10193,19 @@ function SimulationQuestionComponent(props) {
10074
10193
  }
10075
10194
 
10076
10195
  // src/plugins/SimulationQuestionPlugin/SimulationQuestionNode.tsx
10077
- import { jsx as jsx87 } from "react/jsx-runtime";
10078
- var TYPE_NAME12 = "simulation-question";
10079
- var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode14 {
10196
+ import { jsx as jsx89 } from "react/jsx-runtime";
10197
+ var TYPE_NAME13 = "simulation-question";
10198
+ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode15 {
10080
10199
  constructor(points, aiSystemMessage, aiChatModel, step2Instructions, id, key) {
10081
10200
  super(key);
10082
- this.__id = id || nanoid9();
10201
+ this.__id = id || nanoid10();
10083
10202
  this.__points = points < 0 ? 1 : points;
10084
10203
  this.__aiSystemMessage = aiSystemMessage || null;
10085
10204
  this.__aiChatModel = aiChatModel || null;
10086
10205
  this.__step2Instructions = step2Instructions || null;
10087
10206
  }
10088
10207
  static getType() {
10089
- return TYPE_NAME12;
10208
+ return TYPE_NAME13;
10090
10209
  }
10091
10210
  static clone(node) {
10092
10211
  return new _SimulationQuestionNode(
@@ -10132,7 +10251,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
10132
10251
  aiSystemMessage: this.__aiSystemMessage,
10133
10252
  aiChatModel: this.__aiChatModel,
10134
10253
  step2Instructions: this.__step2Instructions,
10135
- type: TYPE_NAME12,
10254
+ type: TYPE_NAME13,
10136
10255
  version: 1
10137
10256
  };
10138
10257
  }
@@ -10153,7 +10272,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
10153
10272
  writable.__points = points <= 0 ? 1 : points;
10154
10273
  }
10155
10274
  decorate() {
10156
- return /* @__PURE__ */ jsx87(
10275
+ return /* @__PURE__ */ jsx89(
10157
10276
  SimulationQuestionComponent,
10158
10277
  {
10159
10278
  nodeKey: this.__key,
@@ -10165,7 +10284,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
10165
10284
  }
10166
10285
  };
10167
10286
  function $createSimulationQuestionNode(points, aiSystemMessage, aiChatModel, step2Instructions, id) {
10168
- return $applyNodeReplacement14(
10287
+ return $applyNodeReplacement15(
10169
10288
  new SimulationQuestionNode(
10170
10289
  points,
10171
10290
  aiSystemMessage,
@@ -10210,7 +10329,8 @@ var commonEditorNodes = [
10210
10329
  JournalEntryQuestionNode,
10211
10330
  FinancialStatementQuestionNode,
10212
10331
  EssayQuestionNode,
10213
- SimulationQuestionNode
10332
+ SimulationQuestionNode,
10333
+ CustomQuestionNode
10214
10334
  ];
10215
10335
  var editorNodes = [...commonEditorNodes];
10216
10336
 
@@ -10254,7 +10374,7 @@ var initialEditorRegistry = {
10254
10374
  // src/content/drawer/Drawer.tsx
10255
10375
  import { Menu } from "lucide-react";
10256
10376
  import { forwardRef as forwardRef10, useEffect as useEffect56, useState as useState7 } from "react";
10257
- import { jsx as jsx88 } from "react/jsx-runtime";
10377
+ import { jsx as jsx90 } from "react/jsx-runtime";
10258
10378
  var Drawer = forwardRef10(
10259
10379
  (props, ref) => {
10260
10380
  const {
@@ -10269,12 +10389,12 @@ var Drawer = forwardRef10(
10269
10389
  setShowSettingsButton(true);
10270
10390
  }
10271
10391
  }, [modulesNumber, hasModule]);
10272
- return /* @__PURE__ */ jsx88(
10392
+ return /* @__PURE__ */ jsx90(
10273
10393
  "nav",
10274
10394
  {
10275
10395
  ref,
10276
10396
  className: !showSettingsButton ? "disabled" : settingsPanelSwitch === "on" ? "shown" : "hidden",
10277
- children: settingsPanelSwitch === "off" && /* @__PURE__ */ jsx88("div", { children: /* @__PURE__ */ jsx88(
10397
+ children: settingsPanelSwitch === "off" && /* @__PURE__ */ jsx90("div", { children: /* @__PURE__ */ jsx90(
10278
10398
  Button,
10279
10399
  {
10280
10400
  className: "cancel",
@@ -10291,9 +10411,9 @@ var Drawer = forwardRef10(
10291
10411
 
10292
10412
  // src/content/editable/ContentEditable.tsx
10293
10413
  import { ContentEditable as LexicalContentEditable2 } from "@lexical/react/LexicalContentEditable";
10294
- import { jsx as jsx89 } from "react/jsx-runtime";
10414
+ import { jsx as jsx91 } from "react/jsx-runtime";
10295
10415
  function ContentEditable() {
10296
- return /* @__PURE__ */ jsx89(LexicalContentEditable2, { className: "content" });
10416
+ return /* @__PURE__ */ jsx91(LexicalContentEditable2, { className: "content" });
10297
10417
  }
10298
10418
 
10299
10419
  // src/content/node/NodeProvider.tsx
@@ -10311,7 +10431,7 @@ import {
10311
10431
  useMemo as useMemo6,
10312
10432
  useRef as useRef34
10313
10433
  } from "react";
10314
- import { jsx as jsx90, jsxs as jsxs34 } from "react/jsx-runtime";
10434
+ import { jsx as jsx92, jsxs as jsxs35 } from "react/jsx-runtime";
10315
10435
  var DropdownWrapper = forwardRef11((props, ref) => {
10316
10436
  const {
10317
10437
  className,
@@ -10394,9 +10514,9 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10394
10514
  subMenu
10395
10515
  } = menuItem;
10396
10516
  if (menuItemDivider) {
10397
- menuItemElement = /* @__PURE__ */ jsx90("sl-divider", { ...triggerData }, `menuItem${menuItemId}`);
10517
+ menuItemElement = /* @__PURE__ */ jsx92("sl-divider", { ...triggerData }, `menuItem${menuItemId}`);
10398
10518
  } else if (menuItemIsGroup) {
10399
- menuItemElement = /* @__PURE__ */ jsx90("sl-menu-label", { children: menuItemLabel }, `menuItem${menuItemId}`);
10519
+ menuItemElement = /* @__PURE__ */ jsx92("sl-menu-label", { children: menuItemLabel }, `menuItem${menuItemId}`);
10400
10520
  } else if (subMenu) {
10401
10521
  const subMenuElements = [];
10402
10522
  let subTabsIndex = 0;
@@ -10405,7 +10525,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10405
10525
  createMenuItem(subMenuItem, subTabsIndex++)
10406
10526
  );
10407
10527
  }
10408
- menuItemElement = /* @__PURE__ */ jsxs34(
10528
+ menuItemElement = /* @__PURE__ */ jsxs35(
10409
10529
  "sl-menu-item",
10410
10530
  {
10411
10531
  className: menuItemClassName,
@@ -10415,7 +10535,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10415
10535
  e.stopPropagation();
10416
10536
  },
10417
10537
  children: [
10418
- MenuItemIcon && /* @__PURE__ */ jsx90(
10538
+ MenuItemIcon && /* @__PURE__ */ jsx92(
10419
10539
  Icon,
10420
10540
  {
10421
10541
  style: { color: menuItemColor || "inherit" },
@@ -10424,7 +10544,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10424
10544
  }
10425
10545
  ),
10426
10546
  menuItemLabel,
10427
- /* @__PURE__ */ jsx90(
10547
+ /* @__PURE__ */ jsx92(
10428
10548
  "sl-menu",
10429
10549
  {
10430
10550
  slot: "submenu",
@@ -10449,7 +10569,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10449
10569
  menuItemAttributes.type = "checkbox";
10450
10570
  menuItemAttributes.checked = menuItemSelected;
10451
10571
  }
10452
- menuItemElement = /* @__PURE__ */ jsxs34(
10572
+ menuItemElement = /* @__PURE__ */ jsxs35(
10453
10573
  "sl-menu-item",
10454
10574
  {
10455
10575
  value: menuItemId,
@@ -10461,7 +10581,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10461
10581
  e.stopPropagation();
10462
10582
  },
10463
10583
  children: [
10464
- MenuItemIcon && /* @__PURE__ */ jsx90(
10584
+ MenuItemIcon && /* @__PURE__ */ jsx92(
10465
10585
  Icon,
10466
10586
  {
10467
10587
  style: { color: menuItemColor || "inherit" },
@@ -10470,7 +10590,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10470
10590
  }
10471
10591
  ),
10472
10592
  menuItemLabel,
10473
- menuItemIsError && /* @__PURE__ */ jsx90(DotBadge, { variant: "danger", leftSided: true })
10593
+ menuItemIsError && /* @__PURE__ */ jsx92(DotBadge, { variant: "danger", leftSided: true })
10474
10594
  ]
10475
10595
  },
10476
10596
  `menuItem${menuItemId}`
@@ -10536,7 +10656,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10536
10656
  }
10537
10657
  };
10538
10658
  }, []);
10539
- const buttonElement = /* @__PURE__ */ jsxs34(
10659
+ const buttonElement = /* @__PURE__ */ jsxs35(
10540
10660
  "sl-dropdown",
10541
10661
  {
10542
10662
  ref: dropdownRef,
@@ -10545,7 +10665,7 @@ var DropdownWrapper = forwardRef11((props, ref) => {
10545
10665
  ...dropdownAttributes,
10546
10666
  children: [
10547
10667
  children,
10548
- menuItems.length > 0 && /* @__PURE__ */ jsx90(
10668
+ menuItems.length > 0 && /* @__PURE__ */ jsx92(
10549
10669
  "sl-menu",
10550
10670
  {
10551
10671
  ref: menuRef,
@@ -10634,7 +10754,7 @@ function validatePointsInput(input) {
10634
10754
  }
10635
10755
 
10636
10756
  // src/plugins/FillInTheBlankQuestionPlugin/FillInTheBlankQuestionSettings.tsx
10637
- import { jsx as jsx91 } from "react/jsx-runtime";
10757
+ import { jsx as jsx93 } from "react/jsx-runtime";
10638
10758
  function FillInTheBlankQuestionSettings(props) {
10639
10759
  const { nodeKey } = props;
10640
10760
  const [editor] = useLexicalComposerContext47();
@@ -10653,7 +10773,7 @@ function FillInTheBlankQuestionSettings(props) {
10653
10773
  if (!foundNode) {
10654
10774
  return null;
10655
10775
  }
10656
- return /* @__PURE__ */ jsx91("div", { children: /* @__PURE__ */ jsx91(
10776
+ return /* @__PURE__ */ jsx93("div", { children: /* @__PURE__ */ jsx93(
10657
10777
  TextInput,
10658
10778
  {
10659
10779
  ref: pointsTextInputRef,
@@ -10683,7 +10803,7 @@ function FillInTheBlankQuestionSettings(props) {
10683
10803
  }
10684
10804
 
10685
10805
  // src/plugins/FillInTheBlankQuestionPlugin/FillInTheBlankQuestionPlugin.tsx
10686
- import { Fragment as Fragment37, jsx as jsx92 } from "react/jsx-runtime";
10806
+ import { Fragment as Fragment37, jsx as jsx94 } from "react/jsx-runtime";
10687
10807
  var INSERT_FILL_IN_THE_BLANK_QUESTION_COMMAND = createCommand13("INSERT_FILL_IN_THE_BLANK_QUESTION_COMMAND");
10688
10808
  function FillInTheBlankQuestionPlugin() {
10689
10809
  const {
@@ -10805,20 +10925,20 @@ function FillInTheBlankQuestionPlugin() {
10805
10925
  }
10806
10926
  }
10807
10927
  }, [isBlockEditorReady]);
10808
- return /* @__PURE__ */ jsx92(Fragment37, { children: drawer && /* @__PURE__ */ jsx92(
10928
+ return /* @__PURE__ */ jsx94(Fragment37, { children: drawer && /* @__PURE__ */ jsx94(
10809
10929
  StickyToPosition,
10810
10930
  {
10811
10931
  ref: settingsPanelStickyRef,
10812
10932
  container: drawer,
10813
10933
  children: (data, position, isVisible) => {
10814
- return /* @__PURE__ */ jsx92("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx92(
10934
+ return /* @__PURE__ */ jsx94("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx94(
10815
10935
  SettingsCard,
10816
10936
  {
10817
10937
  isVisible: !!isVisible,
10818
10938
  container: drawer,
10819
10939
  title: "Fill In The Blank Settings",
10820
10940
  onClose: toggleSettingsPanelSwitch,
10821
- children: /* @__PURE__ */ jsx92(
10941
+ children: /* @__PURE__ */ jsx94(
10822
10942
  FillInTheBlankQuestionSettings,
10823
10943
  {
10824
10944
  nodeKey: data.nodeKey
@@ -10890,7 +11010,7 @@ function validatePointsInput2(input) {
10890
11010
  }
10891
11011
 
10892
11012
  // src/plugins/JournalEntryQuestionPlugin/JournalEntryQuestionSettings.tsx
10893
- import { Fragment as Fragment38, jsx as jsx93, jsxs as jsxs35 } from "react/jsx-runtime";
11013
+ import { Fragment as Fragment38, jsx as jsx95, jsxs as jsxs36 } from "react/jsx-runtime";
10894
11014
  function JournalEntryQuestionSettings(props) {
10895
11015
  const { nodeKey } = props;
10896
11016
  const [editor] = useLexicalComposerContext49();
@@ -10934,8 +11054,8 @@ function JournalEntryQuestionSettings(props) {
10934
11054
  if (!foundNode) {
10935
11055
  return null;
10936
11056
  }
10937
- return /* @__PURE__ */ jsxs35(Fragment38, { children: [
10938
- /* @__PURE__ */ jsx93("div", { children: /* @__PURE__ */ jsx93(
11057
+ return /* @__PURE__ */ jsxs36(Fragment38, { children: [
11058
+ /* @__PURE__ */ jsx95("div", { children: /* @__PURE__ */ jsx95(
10939
11059
  TextInput,
10940
11060
  {
10941
11061
  ref: pointsTextInputRef,
@@ -10962,7 +11082,7 @@ function JournalEntryQuestionSettings(props) {
10962
11082
  }
10963
11083
  }
10964
11084
  ) }),
10965
- /* @__PURE__ */ jsx93("div", { children: /* @__PURE__ */ jsx93(
11085
+ /* @__PURE__ */ jsx95("div", { children: /* @__PURE__ */ jsx95(
10966
11086
  TextInput,
10967
11087
  {
10968
11088
  ref: errorToleranceTextInputRef,
@@ -10993,7 +11113,7 @@ function JournalEntryQuestionSettings(props) {
10993
11113
  }
10994
11114
  }
10995
11115
  ) }),
10996
- /* @__PURE__ */ jsx93("div", { children: /* @__PURE__ */ jsx93(
11116
+ /* @__PURE__ */ jsx95("div", { children: /* @__PURE__ */ jsx95(
10997
11117
  Checkbox,
10998
11118
  {
10999
11119
  ref: noEntryRequiredCheckboxRef,
@@ -11015,7 +11135,7 @@ function JournalEntryQuestionSettings(props) {
11015
11135
  }
11016
11136
 
11017
11137
  // src/plugins/JournalEntryQuestionPlugin/JournalEntryQuestionPlugin.tsx
11018
- import { Fragment as Fragment39, jsx as jsx94 } from "react/jsx-runtime";
11138
+ import { Fragment as Fragment39, jsx as jsx96 } from "react/jsx-runtime";
11019
11139
  var INSERT_JOURNAL_ENTRY_QUESTION_COMMAND = createCommand14("INSERT_JOURNAL_ENTRY_QUESTION_COMMAND");
11020
11140
  function JournalEntryQuestionPlugin() {
11021
11141
  const {
@@ -11039,7 +11159,7 @@ function JournalEntryQuestionPlugin() {
11039
11159
  () => {
11040
11160
  const targetNode = $getNodeByKey36(nodeKey);
11041
11161
  if (targetNode) {
11042
- const journalEntryNode = $createJournalEntryQuestionNode(1);
11162
+ const journalEntryNode = $createJournalEntryQuestionNode(1, false, 0.1);
11043
11163
  if (insertionMode === "replace") {
11044
11164
  targetNode.replace(journalEntryNode);
11045
11165
  } else if (insertionMode === "after") {
@@ -11120,20 +11240,20 @@ function JournalEntryQuestionPlugin() {
11120
11240
  );
11121
11241
  }
11122
11242
  }, [isBlockEditorReady]);
11123
- return /* @__PURE__ */ jsx94(Fragment39, { children: drawer && /* @__PURE__ */ jsx94(
11243
+ return /* @__PURE__ */ jsx96(Fragment39, { children: drawer && /* @__PURE__ */ jsx96(
11124
11244
  StickyToPosition,
11125
11245
  {
11126
11246
  ref: settingsPanelStickyRef,
11127
11247
  container: drawer,
11128
11248
  children: (data, position, isVisible) => {
11129
- return /* @__PURE__ */ jsx94("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx94(
11249
+ return /* @__PURE__ */ jsx96("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx96(
11130
11250
  SettingsCard,
11131
11251
  {
11132
11252
  isVisible: !!isVisible,
11133
11253
  container: drawer,
11134
11254
  title: "Journal Entry Settings",
11135
11255
  onClose: toggleSettingsPanelSwitch,
11136
- children: isVisible && /* @__PURE__ */ jsx94(
11256
+ children: isVisible && /* @__PURE__ */ jsx96(
11137
11257
  JournalEntryQuestionSettings,
11138
11258
  {
11139
11259
  nodeKey: data.nodeKey
@@ -11171,7 +11291,7 @@ function validatePointsInput3(input) {
11171
11291
  }
11172
11292
 
11173
11293
  // src/plugins/MatchingQuestionPlugin/MatchingQuestionSettings.tsx
11174
- import { jsx as jsx95 } from "react/jsx-runtime";
11294
+ import { jsx as jsx97 } from "react/jsx-runtime";
11175
11295
  function MatchingQuestionSettings(props) {
11176
11296
  const { nodeKey } = props;
11177
11297
  const [editor] = useLexicalComposerContext51();
@@ -11190,7 +11310,7 @@ function MatchingQuestionSettings(props) {
11190
11310
  if (!foundNode) {
11191
11311
  return null;
11192
11312
  }
11193
- return /* @__PURE__ */ jsx95("div", { children: /* @__PURE__ */ jsx95(
11313
+ return /* @__PURE__ */ jsx97("div", { children: /* @__PURE__ */ jsx97(
11194
11314
  TextInput,
11195
11315
  {
11196
11316
  ref: pointsTextInputRef,
@@ -11232,7 +11352,7 @@ import {
11232
11352
  createCommand as createCommand15
11233
11353
  } from "lexical";
11234
11354
  import { useEffect as useEffect63, useRef as useRef40 } from "react";
11235
- import { Fragment as Fragment40, jsx as jsx96 } from "react/jsx-runtime";
11355
+ import { Fragment as Fragment40, jsx as jsx98 } from "react/jsx-runtime";
11236
11356
  var INSERT_MATCHING_QUESTION_COMMAND = createCommand15("INSERT_MATCHING_QUESTION_COMMAND");
11237
11357
  function MatchingQuestionPlugin() {
11238
11358
  const {
@@ -11310,20 +11430,20 @@ function MatchingQuestionPlugin() {
11310
11430
  );
11311
11431
  }
11312
11432
  }, [isBlockEditorReady]);
11313
- return /* @__PURE__ */ jsx96(Fragment40, { children: drawer && /* @__PURE__ */ jsx96(
11433
+ return /* @__PURE__ */ jsx98(Fragment40, { children: drawer && /* @__PURE__ */ jsx98(
11314
11434
  StickyToPosition,
11315
11435
  {
11316
11436
  ref: settingsPanelStickyRef,
11317
11437
  container: drawer,
11318
11438
  children: (data, position, isVisible) => {
11319
- return /* @__PURE__ */ jsx96("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx96(
11439
+ return /* @__PURE__ */ jsx98("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx98(
11320
11440
  SettingsCard,
11321
11441
  {
11322
11442
  isVisible: !!isVisible,
11323
11443
  container: drawer,
11324
11444
  title: "Matching Settings",
11325
11445
  onClose: toggleSettingsPanelSwitch,
11326
- children: isVisible && /* @__PURE__ */ jsx96(
11446
+ children: isVisible && /* @__PURE__ */ jsx98(
11327
11447
  MatchingQuestionSettings,
11328
11448
  {
11329
11449
  nodeKey: data.nodeKey
@@ -11436,7 +11556,7 @@ function validatePointsInput4(input) {
11436
11556
  }
11437
11557
 
11438
11558
  // src/plugins/MultipleOptionQuestionPlugin/MultipleOptionQuestionSettings.tsx
11439
- import { Fragment as Fragment41, jsx as jsx97, jsxs as jsxs36 } from "react/jsx-runtime";
11559
+ import { Fragment as Fragment41, jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
11440
11560
  function MultipleOptionQuestionSettings(props) {
11441
11561
  const { nodeKey, questionType } = props;
11442
11562
  const [editor] = useLexicalComposerContext53();
@@ -11585,8 +11705,8 @@ function MultipleOptionQuestionSettings(props) {
11585
11705
  if (!foundNodeRef) {
11586
11706
  return null;
11587
11707
  }
11588
- return /* @__PURE__ */ jsxs36(Fragment41, { children: [
11589
- /* @__PURE__ */ jsx97("div", { children: /* @__PURE__ */ jsx97(
11708
+ return /* @__PURE__ */ jsxs37(Fragment41, { children: [
11709
+ /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
11590
11710
  TextInput,
11591
11711
  {
11592
11712
  ref: pointsTextInputRef,
@@ -11601,7 +11721,7 @@ function MultipleOptionQuestionSettings(props) {
11601
11721
  },
11602
11722
  `points_${nodeKey}`
11603
11723
  ) }),
11604
- questionType === "multiple-answers" && /* @__PURE__ */ jsx97("div", { children: /* @__PURE__ */ jsx97(
11724
+ questionType === "multiple-answers" && /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
11605
11725
  RadioGroup,
11606
11726
  {
11607
11727
  ref: gradingRadioGroupRef,
@@ -11622,7 +11742,7 @@ function MultipleOptionQuestionSettings(props) {
11622
11742
  },
11623
11743
  `grading_${nodeKey}`
11624
11744
  ) }),
11625
- questionType === "multiple-answers" && /* @__PURE__ */ jsx97("div", { children: /* @__PURE__ */ jsx97(
11745
+ questionType === "multiple-answers" && /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
11626
11746
  TextInput,
11627
11747
  {
11628
11748
  ref: correctChoicesTextInputRef,
@@ -11637,7 +11757,7 @@ function MultipleOptionQuestionSettings(props) {
11637
11757
  },
11638
11758
  `correctChoices_${nodeKey}`
11639
11759
  ) }),
11640
- questionType === "multiple-answers" && /* @__PURE__ */ jsx97("div", { children: /* @__PURE__ */ jsx97(
11760
+ questionType === "multiple-answers" && /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
11641
11761
  TextInput,
11642
11762
  {
11643
11763
  ref: incorrectChoicesTextInputRef,
@@ -11652,7 +11772,7 @@ function MultipleOptionQuestionSettings(props) {
11652
11772
  },
11653
11773
  `incorrectChoices_${nodeKey}`
11654
11774
  ) }),
11655
- questionType === "multiple-choice" && /* @__PURE__ */ jsx97("div", { children: /* @__PURE__ */ jsx97(
11775
+ questionType === "multiple-choice" && /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
11656
11776
  TextInput,
11657
11777
  {
11658
11778
  ref: choicesTextInputRef,
@@ -11667,13 +11787,13 @@ function MultipleOptionQuestionSettings(props) {
11667
11787
  },
11668
11788
  `choices_${nodeKey}`
11669
11789
  ) }),
11670
- /* @__PURE__ */ jsx97(
11790
+ /* @__PURE__ */ jsx99(
11671
11791
  "div",
11672
11792
  {
11673
11793
  style: {
11674
11794
  paddingBottom: "var(--sl-spacing-medium)"
11675
11795
  },
11676
- children: /* @__PURE__ */ jsx97(
11796
+ children: /* @__PURE__ */ jsx99(
11677
11797
  Checkbox,
11678
11798
  {
11679
11799
  ref: noneOfTheAboveInputRef,
@@ -11691,7 +11811,7 @@ function MultipleOptionQuestionSettings(props) {
11691
11811
  }
11692
11812
 
11693
11813
  // src/plugins/MultipleOptionQuestionPlugin/MultipleOptionQuestionPlugin.tsx
11694
- import { Fragment as Fragment42, jsx as jsx98 } from "react/jsx-runtime";
11814
+ import { Fragment as Fragment42, jsx as jsx100 } from "react/jsx-runtime";
11695
11815
  var INSERT_MULTIPLE_OPTION_QUESTION_COMMAND = createCommand16("INSERT_MULTIPLE_OPTION_QUESTION_COMMAND");
11696
11816
  var REPLACE_LIST_WITH_MULTIPLE_OPTION_QUESTION_COMMAND = createCommand16("REPLACE_LIST_WITH_MULTIPLE_OPTION_QUESTION_COMMAND");
11697
11817
  var REPLACE_MULTIPLE_OPTION_QUESTION_COMMAND = createCommand16("REPLACE_MULTIPLE_OPTION_QUESTION_COMMAND");
@@ -11891,7 +12011,7 @@ function MultipleOptionQuestionPlugin() {
11891
12011
  );
11892
12012
  }
11893
12013
  }, [isBlockEditorReady]);
11894
- return /* @__PURE__ */ jsx98(Fragment42, { children: drawer && /* @__PURE__ */ jsx98(
12014
+ return /* @__PURE__ */ jsx100(Fragment42, { children: drawer && /* @__PURE__ */ jsx100(
11895
12015
  StickyToPosition,
11896
12016
  {
11897
12017
  ref: settingsPanelStickyRef,
@@ -11908,14 +12028,14 @@ function MultipleOptionQuestionPlugin() {
11908
12028
  }
11909
12029
  });
11910
12030
  }
11911
- return /* @__PURE__ */ jsx98("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx98(
12031
+ return /* @__PURE__ */ jsx100("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx100(
11912
12032
  SettingsCard,
11913
12033
  {
11914
12034
  isVisible: !!isVisible,
11915
12035
  container: drawer,
11916
12036
  title: questionType === "multiple-answers" ? "Multiple Answers Settings" : "Multiple Choice Settings",
11917
12037
  onClose: toggleSettingsPanelSwitch,
11918
- children: isVisible && questionType && /* @__PURE__ */ jsx98(
12038
+ children: isVisible && questionType && /* @__PURE__ */ jsx100(
11919
12039
  MultipleOptionQuestionSettings,
11920
12040
  {
11921
12041
  nodeKey: data.nodeKey,
@@ -11990,7 +12110,7 @@ function validatePointsInput5(input) {
11990
12110
  }
11991
12111
 
11992
12112
  // src/plugins/ShortAnswerQuestionPlugin/ShortAnswerQuestionSettings.tsx
11993
- import { Fragment as Fragment43, jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
12113
+ import { Fragment as Fragment43, jsx as jsx101, jsxs as jsxs38 } from "react/jsx-runtime";
11994
12114
  function ShortAnswerQuestionSettings(props) {
11995
12115
  const { nodeKey } = props;
11996
12116
  const [editor] = useLexicalComposerContext55();
@@ -12010,8 +12130,8 @@ function ShortAnswerQuestionSettings(props) {
12010
12130
  if (!foundNode) {
12011
12131
  return null;
12012
12132
  }
12013
- return /* @__PURE__ */ jsxs37(Fragment43, { children: [
12014
- /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
12133
+ return /* @__PURE__ */ jsxs38(Fragment43, { children: [
12134
+ /* @__PURE__ */ jsx101("div", { children: /* @__PURE__ */ jsx101(
12015
12135
  TextInput,
12016
12136
  {
12017
12137
  ref: pointsTextInputRef,
@@ -12038,7 +12158,7 @@ function ShortAnswerQuestionSettings(props) {
12038
12158
  }
12039
12159
  }
12040
12160
  ) }),
12041
- /* @__PURE__ */ jsx99("div", { children: /* @__PURE__ */ jsx99(
12161
+ /* @__PURE__ */ jsx101("div", { children: /* @__PURE__ */ jsx101(
12042
12162
  TextInput,
12043
12163
  {
12044
12164
  ref: maxWordsTextInputRef,
@@ -12069,7 +12189,7 @@ function ShortAnswerQuestionSettings(props) {
12069
12189
  }
12070
12190
 
12071
12191
  // src/plugins/ShortAnswerQuestionPlugin/ShortAnswerQuestionPlugin.tsx
12072
- import { Fragment as Fragment44, jsx as jsx100 } from "react/jsx-runtime";
12192
+ import { Fragment as Fragment44, jsx as jsx102 } from "react/jsx-runtime";
12073
12193
  var INSERT_SHORT_ANSWER_QUESTION_COMMAND = createCommand17("INSERT_SHORT_ANSWER_QUESTION_COMMAND");
12074
12194
  function ShortAnswerQuestionPlugin() {
12075
12195
  const {
@@ -12144,20 +12264,20 @@ function ShortAnswerQuestionPlugin() {
12144
12264
  );
12145
12265
  }
12146
12266
  }, [isBlockEditorReady]);
12147
- return /* @__PURE__ */ jsx100(Fragment44, { children: drawer && /* @__PURE__ */ jsx100(
12267
+ return /* @__PURE__ */ jsx102(Fragment44, { children: drawer && /* @__PURE__ */ jsx102(
12148
12268
  StickyToPosition,
12149
12269
  {
12150
12270
  ref: settingsPanelStickyRef,
12151
12271
  container: drawer,
12152
12272
  children: (data, position, isVisible) => {
12153
- return /* @__PURE__ */ jsx100("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx100(
12273
+ return /* @__PURE__ */ jsx102("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx102(
12154
12274
  SettingsCard,
12155
12275
  {
12156
12276
  isVisible: !!isVisible,
12157
12277
  container: drawer,
12158
12278
  title: "Short Answer Settings",
12159
12279
  onClose: toggleSettingsPanelSwitch,
12160
- children: isVisible && /* @__PURE__ */ jsx100(
12280
+ children: isVisible && /* @__PURE__ */ jsx102(
12161
12281
  ShortAnswerQuestionSettings,
12162
12282
  {
12163
12283
  nodeKey: data.nodeKey
@@ -12197,7 +12317,7 @@ import {
12197
12317
  Table2
12198
12318
  } from "lucide-react";
12199
12319
  import { useMemo as useMemo7 } from "react";
12200
- import { jsx as jsx101 } from "react/jsx-runtime";
12320
+ import { jsx as jsx103 } from "react/jsx-runtime";
12201
12321
  var handlerStyle3 = {
12202
12322
  display: "flex",
12203
12323
  zIndex: 10,
@@ -12539,7 +12659,7 @@ function AddMenuHandle(props) {
12539
12659
  }
12540
12660
  return menu2;
12541
12661
  }, [hoveredNode]);
12542
- return /* @__PURE__ */ jsx101("div", { id: handlerKey, style: handlerStyle3, children: /* @__PURE__ */ jsx101(
12662
+ return /* @__PURE__ */ jsx103("div", { id: handlerKey, style: handlerStyle3, children: /* @__PURE__ */ jsx103(
12543
12663
  DropdownWrapper,
12544
12664
  {
12545
12665
  placement: "bottom-start",
@@ -12550,7 +12670,7 @@ function AddMenuHandle(props) {
12550
12670
  onHideMenu: () => {
12551
12671
  removeVisiblePopup();
12552
12672
  },
12553
- children: /* @__PURE__ */ jsx101("div", { slot: "trigger", className: "add-menu-handle", children: /* @__PURE__ */ jsx101(Icon, { icon: Plus4 }) })
12673
+ children: /* @__PURE__ */ jsx103("div", { slot: "trigger", className: "add-menu-handle", children: /* @__PURE__ */ jsx103(Icon, { icon: Plus4 }) })
12554
12674
  }
12555
12675
  ) });
12556
12676
  }
@@ -12590,13 +12710,13 @@ import {
12590
12710
  $getNodeByKey as $getNodeByKey45,
12591
12711
  $getRoot as $getRoot17
12592
12712
  } from "lexical";
12593
- import { Trash2 as Trash27 } from "lucide-react";
12713
+ import { Trash2 as Trash23 } from "lucide-react";
12594
12714
  function renderDeleteMenu(nodeKey, editor) {
12595
12715
  return [
12596
12716
  {
12597
12717
  id: "deleteMenu",
12598
12718
  label: "Delete",
12599
- Icon: Trash27,
12719
+ Icon: Trash23,
12600
12720
  onClick: () => {
12601
12721
  editor.update(() => {
12602
12722
  const targetNode = $getNodeByKey45(nodeKey);
@@ -12880,7 +13000,7 @@ import { HeadingNode as HeadingNode3 } from "@lexical/rich-text";
12880
13000
  import { ParagraphNode as ParagraphNode3 } from "lexical";
12881
13001
  import { GripVertical } from "lucide-react";
12882
13002
  import { useMemo as useMemo8 } from "react";
12883
- import { jsx as jsx102 } from "react/jsx-runtime";
13003
+ import { jsx as jsx104 } from "react/jsx-runtime";
12884
13004
  var handlerStyle4 = {
12885
13005
  display: "flex",
12886
13006
  zIndex: 10,
@@ -12967,7 +13087,7 @@ function DragHandle(props) {
12967
13087
  }
12968
13088
  return menu2;
12969
13089
  }, [hoveredNode, currentEditor]);
12970
- return /* @__PURE__ */ jsx102(
13090
+ return /* @__PURE__ */ jsx104(
12971
13091
  "div",
12972
13092
  {
12973
13093
  id: handlerKey,
@@ -12975,7 +13095,7 @@ function DragHandle(props) {
12975
13095
  ...listeners,
12976
13096
  ...attributes,
12977
13097
  style: handlerStyle4,
12978
- children: /* @__PURE__ */ jsx102(
13098
+ children: /* @__PURE__ */ jsx104(
12979
13099
  DropdownWrapper,
12980
13100
  {
12981
13101
  placement: "bottom-start",
@@ -12986,7 +13106,7 @@ function DragHandle(props) {
12986
13106
  onHideMenu: () => {
12987
13107
  removeVisiblePopup();
12988
13108
  },
12989
- children: /* @__PURE__ */ jsx102("div", { slot: "trigger", className: "draggable-handle", children: /* @__PURE__ */ jsx102(Icon, { icon: GripVertical }) })
13109
+ children: /* @__PURE__ */ jsx104("div", { slot: "trigger", className: "draggable-handle", children: /* @__PURE__ */ jsx104(Icon, { icon: GripVertical }) })
12990
13110
  }
12991
13111
  )
12992
13112
  }
@@ -13020,7 +13140,7 @@ function findNodePosition(rows, point, lastFound) {
13020
13140
  }
13021
13141
 
13022
13142
  // src/content/node/NodeDragOverlay.tsx
13023
- import { jsx as jsx103 } from "react/jsx-runtime";
13143
+ import { jsx as jsx105 } from "react/jsx-runtime";
13024
13144
  var overlayStyle2 = {
13025
13145
  display: "flex",
13026
13146
  minWidth: "150px",
@@ -13039,12 +13159,12 @@ var overlayStyle2 = {
13039
13159
  boxShadow: "0 1px 3px rgba(34, 25, 25, 0.4)"
13040
13160
  };
13041
13161
  function NodeDragOverlay(props) {
13042
- return /* @__PURE__ */ jsx103("div", { style: overlayStyle2, children: props.children() });
13162
+ return /* @__PURE__ */ jsx105("div", { style: overlayStyle2, children: props.children() });
13043
13163
  }
13044
13164
 
13045
13165
  // src/content/node/NodeDropMarker.tsx
13046
13166
  import { useEffect as useEffect68, useRef as useRef45 } from "react";
13047
- import { jsx as jsx104 } from "react/jsx-runtime";
13167
+ import { jsx as jsx106 } from "react/jsx-runtime";
13048
13168
  var placeholderStyle3 = {
13049
13169
  position: "absolute",
13050
13170
  top: "calc(-1 * var(--sl-spacing-small) / 2)",
@@ -13075,7 +13195,7 @@ function NodeDropMarker(props) {
13075
13195
  }, 5);
13076
13196
  }
13077
13197
  }, [visible, top]);
13078
- return /* @__PURE__ */ jsx104("div", { style: { ...placeholderStyle3, width: props.width }, children: /* @__PURE__ */ jsx104("div", { ref: lineDivRef, style: lineStyle3 }) });
13198
+ return /* @__PURE__ */ jsx106("div", { style: { ...placeholderStyle3, width: props.width }, children: /* @__PURE__ */ jsx106("div", { ref: lineDivRef, style: lineStyle3 }) });
13079
13199
  }
13080
13200
 
13081
13201
  // src/content/node/NodeDraggableHandleSticky.tsx
@@ -13098,7 +13218,7 @@ import {
13098
13218
  useRef as useRef46,
13099
13219
  useState as useState13
13100
13220
  } from "react";
13101
- import { Fragment as Fragment45, jsx as jsx105, jsxs as jsxs38 } from "react/jsx-runtime";
13221
+ import { Fragment as Fragment45, jsx as jsx107, jsxs as jsxs39 } from "react/jsx-runtime";
13102
13222
  var NodeDraggableHandleSticky = forwardRef12((props, ref) => {
13103
13223
  const {
13104
13224
  getRegisteredEditor,
@@ -13172,9 +13292,9 @@ var NodeDraggableHandleSticky = forwardRef12((props, ref) => {
13172
13292
  isHandleVisible: () => !!nodeHandleSticky.current?.isVisible()
13173
13293
  }));
13174
13294
  if (!isAnchorElementReady || !anchorElementRef.current) {
13175
- return /* @__PURE__ */ jsx105(Fragment45, {});
13295
+ return /* @__PURE__ */ jsx107(Fragment45, {});
13176
13296
  }
13177
- return /* @__PURE__ */ jsxs38(
13297
+ return /* @__PURE__ */ jsxs39(
13178
13298
  DndContext4,
13179
13299
  {
13180
13300
  sensors,
@@ -13395,13 +13515,13 @@ var NodeDraggableHandleSticky = forwardRef12((props, ref) => {
13395
13515
  unsetHandleDragged();
13396
13516
  },
13397
13517
  children: [
13398
- /* @__PURE__ */ jsx105(
13518
+ /* @__PURE__ */ jsx107(
13399
13519
  StickyToPosition,
13400
13520
  {
13401
13521
  ref: nodeHandleSticky,
13402
13522
  container: anchorElementRef.current,
13403
13523
  children: (data, _position) => {
13404
- return /* @__PURE__ */ jsxs38(
13524
+ return /* @__PURE__ */ jsxs39(
13405
13525
  "div",
13406
13526
  {
13407
13527
  style: {
@@ -13413,21 +13533,21 @@ var NodeDraggableHandleSticky = forwardRef12((props, ref) => {
13413
13533
  gap: "6px"
13414
13534
  },
13415
13535
  children: [
13416
- /* @__PURE__ */ jsx105(AddMenuHandle, { hoveredNode: data.hoveredNode }),
13417
- /* @__PURE__ */ jsx105(DragHandle, { hoveredNode: data.hoveredNode })
13536
+ /* @__PURE__ */ jsx107(AddMenuHandle, { hoveredNode: data.hoveredNode }),
13537
+ /* @__PURE__ */ jsx107(DragHandle, { hoveredNode: data.hoveredNode })
13418
13538
  ]
13419
13539
  }
13420
13540
  );
13421
13541
  }
13422
13542
  }
13423
13543
  ),
13424
- /* @__PURE__ */ jsx105(
13544
+ /* @__PURE__ */ jsx107(
13425
13545
  StickyToPosition,
13426
13546
  {
13427
13547
  ref: dropMarkerSticky,
13428
13548
  container: anchorElementRef.current,
13429
13549
  children: (_data, position, isVisible) => {
13430
- return /* @__PURE__ */ jsx105(
13550
+ return /* @__PURE__ */ jsx107(
13431
13551
  NodeDropMarker,
13432
13552
  {
13433
13553
  top: `${position.top}px`,
@@ -13438,8 +13558,8 @@ var NodeDraggableHandleSticky = forwardRef12((props, ref) => {
13438
13558
  }
13439
13559
  }
13440
13560
  ),
13441
- /* @__PURE__ */ jsx105(DragOverlay3, { dropAnimation: null, children: /* @__PURE__ */ jsx105(NodeDragOverlay, { children: () => {
13442
- return /* @__PURE__ */ jsx105("div", { children: "Move Block" });
13561
+ /* @__PURE__ */ jsx107(DragOverlay3, { dropAnimation: null, children: /* @__PURE__ */ jsx107(NodeDragOverlay, { children: () => {
13562
+ return /* @__PURE__ */ jsx107("div", { children: "Move Block" });
13443
13563
  } }) })
13444
13564
  ]
13445
13565
  }
@@ -13447,7 +13567,7 @@ var NodeDraggableHandleSticky = forwardRef12((props, ref) => {
13447
13567
  });
13448
13568
 
13449
13569
  // src/content/node/NodeProvider.tsx
13450
- import { jsx as jsx106, jsxs as jsxs39 } from "react/jsx-runtime";
13570
+ import { jsx as jsx108, jsxs as jsxs40 } from "react/jsx-runtime";
13451
13571
  var NodeProviderContext = React18.createContext(null);
13452
13572
  function NodeProvider(props) {
13453
13573
  const { children } = props;
@@ -13526,7 +13646,7 @@ function NodeProvider(props) {
13526
13646
  }
13527
13647
  };
13528
13648
  }, []);
13529
- return /* @__PURE__ */ jsxs39(
13649
+ return /* @__PURE__ */ jsxs40(
13530
13650
  NodeProviderContext.Provider,
13531
13651
  {
13532
13652
  value: {
@@ -13549,7 +13669,7 @@ function NodeProvider(props) {
13549
13669
  },
13550
13670
  children: [
13551
13671
  children,
13552
- /* @__PURE__ */ jsx106(NodeDraggableHandleSticky, { ref: nodeDraggableHandleRef })
13672
+ /* @__PURE__ */ jsx108(NodeDraggableHandleSticky, { ref: nodeDraggableHandleRef })
13553
13673
  ]
13554
13674
  }
13555
13675
  );
@@ -13572,7 +13692,7 @@ import {
13572
13692
  $isParagraphNode as $isParagraphNode3
13573
13693
  } from "lexical";
13574
13694
  import { useEffect as useEffect70 } from "react";
13575
- import { Fragment as Fragment46, jsx as jsx107 } from "react/jsx-runtime";
13695
+ import { Fragment as Fragment46, jsx as jsx109 } from "react/jsx-runtime";
13576
13696
  function AutoBottomParagraphPlugin() {
13577
13697
  const [editor] = useLexicalComposerContext57();
13578
13698
  const listener = (nodeMutations) => {
@@ -13614,7 +13734,7 @@ function AutoBottomParagraphPlugin() {
13614
13734
  )
13615
13735
  );
13616
13736
  }, [editor]);
13617
- return /* @__PURE__ */ jsx107(Fragment46, {});
13737
+ return /* @__PURE__ */ jsx109(Fragment46, {});
13618
13738
  }
13619
13739
 
13620
13740
  // src/plugins/AutoFocusPlugin/AutoFocusPlugin.tsx
@@ -14535,7 +14655,7 @@ function MarkdownPlugin() {
14535
14655
  // src/plugins/NodeMousePlugin/NodeMouseAnchorPlugin.tsx
14536
14656
  import { useLexicalComposerContext as useLexicalComposerContext61 } from "@lexical/react/LexicalComposerContext";
14537
14657
  import { useEffect as useEffect74, useRef as useRef48 } from "react";
14538
- import { Fragment as Fragment47, jsx as jsx108 } from "react/jsx-runtime";
14658
+ import { Fragment as Fragment47, jsx as jsx110 } from "react/jsx-runtime";
14539
14659
  function NodeMouseAnchorPlugin() {
14540
14660
  const [editor] = useLexicalComposerContext61();
14541
14661
  const { setAnchorElement, hideHandles } = useNode();
@@ -14585,7 +14705,7 @@ function NodeMouseAnchorPlugin() {
14585
14705
  removeRootListener();
14586
14706
  };
14587
14707
  }, [editor]);
14588
- return /* @__PURE__ */ jsx108(Fragment47, {});
14708
+ return /* @__PURE__ */ jsx110(Fragment47, {});
14589
14709
  }
14590
14710
 
14591
14711
  // src/plugins/NodeMousePlugin/NodeMousePlugin.tsx
@@ -14625,7 +14745,7 @@ function getNodePosition2(element, parent) {
14625
14745
  }
14626
14746
 
14627
14747
  // src/plugins/NodeMousePlugin/NodeMousePlugin.tsx
14628
- import { Fragment as Fragment48, jsx as jsx109 } from "react/jsx-runtime";
14748
+ import { Fragment as Fragment48, jsx as jsx111 } from "react/jsx-runtime";
14629
14749
  function NodeMousePlugin() {
14630
14750
  const [editor] = useLexicalComposerContext62();
14631
14751
  const editorUniqueIdRef = useRef49(uniqueId2("editor"));
@@ -14950,7 +15070,8 @@ function NodeMousePlugin() {
14950
15070
  JournalEntryQuestionNode,
14951
15071
  FinancialStatementQuestionNode,
14952
15072
  EssayQuestionNode,
14953
- SimulationQuestionNode
15073
+ SimulationQuestionNode,
15074
+ CustomQuestionNode
14954
15075
  ].map(
14955
15076
  (Klass) => editor.registerMutationListener(
14956
15077
  Klass,
@@ -14995,7 +15116,7 @@ function NodeMousePlugin() {
14995
15116
  removeRegistration();
14996
15117
  };
14997
15118
  }, [editor]);
14998
- return /* @__PURE__ */ jsx109(Fragment48, {});
15119
+ return /* @__PURE__ */ jsx111(Fragment48, {});
14999
15120
  }
15000
15121
 
15001
15122
  // src/plugins/NodePastePlugin/NodePastePlugin.tsx
@@ -15012,51 +15133,51 @@ import {
15012
15133
  import { useEffect as useEffect76 } from "react";
15013
15134
 
15014
15135
  // src/plugins/NodePastePlugin/regenerateIdsInQuestion.ts
15015
- import { nanoid as nanoid10 } from "nanoid";
15136
+ import { nanoid as nanoid11 } from "nanoid";
15016
15137
  function regenerateIdsInQuestion(serializedNode) {
15017
15138
  if (serializedNode.type === MultipleOptionQuestionNode.getType()) {
15018
15139
  const multiOptionQuestionNode = serializedNode;
15019
- multiOptionQuestionNode.id = nanoid10();
15140
+ multiOptionQuestionNode.id = nanoid11();
15020
15141
  const children = multiOptionQuestionNode.options;
15021
15142
  for (const childNode of children) {
15022
- childNode.id = nanoid10();
15143
+ childNode.id = nanoid11();
15023
15144
  }
15024
15145
  } else if (serializedNode.type === FillInTheBlankQuestionNode.getType()) {
15025
15146
  const fillInTheBlankQuestionNode = serializedNode;
15026
- fillInTheBlankQuestionNode.id = nanoid10();
15147
+ fillInTheBlankQuestionNode.id = nanoid11();
15027
15148
  } else if (serializedNode.type === FinancialStatementQuestionNode.getType()) {
15028
15149
  const financialStatementQuestionNode = serializedNode;
15029
- financialStatementQuestionNode.id = nanoid10();
15150
+ financialStatementQuestionNode.id = nanoid11();
15030
15151
  for (const rowItem of financialStatementQuestionNode.rows) {
15031
- rowItem.id = nanoid10();
15152
+ rowItem.id = nanoid11();
15032
15153
  }
15033
15154
  for (const distractorItem of financialStatementQuestionNode.distractors) {
15034
- distractorItem.id = nanoid10();
15155
+ distractorItem.id = nanoid11();
15035
15156
  }
15036
15157
  } else if (serializedNode.type === JournalEntryQuestionNode.getType()) {
15037
15158
  const journalEntryQuestionNode = serializedNode;
15038
- journalEntryQuestionNode.id = nanoid10();
15159
+ journalEntryQuestionNode.id = nanoid11();
15039
15160
  for (const lineItem of journalEntryQuestionNode.lineItems) {
15040
- lineItem.id = nanoid10();
15161
+ lineItem.id = nanoid11();
15041
15162
  }
15042
15163
  } else if (serializedNode.type === MatchingQuestionNode.getType()) {
15043
15164
  const matchingQuestionNode = serializedNode;
15044
- matchingQuestionNode.id = nanoid10();
15165
+ matchingQuestionNode.id = nanoid11();
15045
15166
  for (const childItem of matchingQuestionNode.items) {
15046
- childItem.id = nanoid10();
15167
+ childItem.id = nanoid11();
15047
15168
  }
15048
15169
  } else if (serializedNode.type === ShortAnswerQuestionNode.getType()) {
15049
15170
  const shortAnswerQuestionNode = serializedNode;
15050
- shortAnswerQuestionNode.id = nanoid10();
15171
+ shortAnswerQuestionNode.id = nanoid11();
15051
15172
  } else if (serializedNode.type === SimulationQuestionNode.getType()) {
15052
15173
  const simulationQuestionNode = serializedNode;
15053
- simulationQuestionNode.id = nanoid10();
15174
+ simulationQuestionNode.id = nanoid11();
15054
15175
  }
15055
15176
  return serializedNode;
15056
15177
  }
15057
15178
 
15058
15179
  // src/plugins/NodePastePlugin/NodePastePlugin.tsx
15059
- import { Fragment as Fragment49, jsx as jsx110 } from "react/jsx-runtime";
15180
+ import { Fragment as Fragment49, jsx as jsx112 } from "react/jsx-runtime";
15060
15181
  function NodePastePlugin() {
15061
15182
  const [editor] = useLexicalComposerContext63();
15062
15183
  useEffect76(() => {
@@ -15138,7 +15259,7 @@ function NodePastePlugin() {
15138
15259
  )
15139
15260
  );
15140
15261
  }, [editor]);
15141
- return /* @__PURE__ */ jsx110(Fragment49, {});
15262
+ return /* @__PURE__ */ jsx112(Fragment49, {});
15142
15263
  }
15143
15264
 
15144
15265
  // src/components/inputs/PopupToolbar.tsx
@@ -15150,7 +15271,7 @@ import {
15150
15271
  useMemo as useMemo9,
15151
15272
  useRef as useRef50
15152
15273
  } from "react";
15153
- import { Fragment as Fragment50, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
15274
+ import { Fragment as Fragment50, jsx as jsx113, jsxs as jsxs41 } from "react/jsx-runtime";
15154
15275
  var PopupToolbar = forwardRef13((props, ref) => {
15155
15276
  const { onEscape, menu, toolbar } = props;
15156
15277
  const popupRef = useRef50(null);
@@ -15183,7 +15304,7 @@ var PopupToolbar = forwardRef13((props, ref) => {
15183
15304
  menuItemAttributes.checked = menuItemSelected;
15184
15305
  menuItemAttributes.type = "checkbox";
15185
15306
  }
15186
- let buttonElement = menuItem.subMenu ? /* @__PURE__ */ jsx111(
15307
+ let buttonElement = menuItem.subMenu ? /* @__PURE__ */ jsx113(
15187
15308
  DropdownButton,
15188
15309
  {
15189
15310
  size: "medium",
@@ -15193,7 +15314,7 @@ var PopupToolbar = forwardRef13((props, ref) => {
15193
15314
  menu: menuItem.subMenu
15194
15315
  },
15195
15316
  `menuItem${menuItemId}`
15196
- ) : /* @__PURE__ */ jsxs40(
15317
+ ) : /* @__PURE__ */ jsxs41(
15197
15318
  "sl-button",
15198
15319
  {
15199
15320
  size: "medium",
@@ -15208,15 +15329,15 @@ var PopupToolbar = forwardRef13((props, ref) => {
15208
15329
  }
15209
15330
  },
15210
15331
  children: [
15211
- MenuItemIcon && /* @__PURE__ */ jsx111(Icon, { slot: "prefix", icon: MenuItemIcon }),
15332
+ MenuItemIcon && /* @__PURE__ */ jsx113(Icon, { slot: "prefix", icon: MenuItemIcon }),
15212
15333
  menuItemLabel,
15213
- menuItemIsError && /* @__PURE__ */ jsx111(DotBadge, { variant: "danger" })
15334
+ menuItemIsError && /* @__PURE__ */ jsx113(DotBadge, { variant: "danger" })
15214
15335
  ]
15215
15336
  },
15216
15337
  `menuItem${menuItemId}`
15217
15338
  );
15218
15339
  if (tooltip && !menuItem.subMenu) {
15219
- buttonElement = /* @__PURE__ */ jsx111(
15340
+ buttonElement = /* @__PURE__ */ jsx113(
15220
15341
  "sl-tooltip",
15221
15342
  {
15222
15343
  content: tooltip,
@@ -15278,7 +15399,7 @@ var PopupToolbar = forwardRef13((props, ref) => {
15278
15399
  };
15279
15400
  }
15280
15401
  }, [onEscape]);
15281
- return /* @__PURE__ */ jsx111(Fragment50, { children: /* @__PURE__ */ jsx111(
15402
+ return /* @__PURE__ */ jsx113(Fragment50, { children: /* @__PURE__ */ jsx113(
15282
15403
  "sl-popup",
15283
15404
  {
15284
15405
  ref: popupRef,
@@ -15286,7 +15407,7 @@ var PopupToolbar = forwardRef13((props, ref) => {
15286
15407
  shift: true,
15287
15408
  "auto-size": "horizontal",
15288
15409
  strategy: "fixed",
15289
- children: toolbar || /* @__PURE__ */ jsx111("sl-button-group", { ref: toolbarRef, children: menuItems })
15410
+ children: toolbar || /* @__PURE__ */ jsx113("sl-button-group", { ref: toolbarRef, children: menuItems })
15290
15411
  }
15291
15412
  ) });
15292
15413
  });
@@ -15338,16 +15459,16 @@ var bgColorList = [
15338
15459
  ];
15339
15460
 
15340
15461
  // src/components/feedback/ProgressBar.tsx
15341
- import { jsx as jsx112 } from "react/jsx-runtime";
15462
+ import { jsx as jsx114 } from "react/jsx-runtime";
15342
15463
  function ProgressBar() {
15343
- return /* @__PURE__ */ jsx112("sl-progress-bar", { indeterminate: "indeterminate" });
15464
+ return /* @__PURE__ */ jsx114("sl-progress-bar", { indeterminate: "indeterminate" });
15344
15465
  }
15345
15466
 
15346
15467
  // src/components/layouts/Stack.tsx
15347
- import { jsx as jsx113 } from "react/jsx-runtime";
15468
+ import { jsx as jsx115 } from "react/jsx-runtime";
15348
15469
  function Stack(props) {
15349
15470
  const { id, style, className, slot, children } = props;
15350
- return /* @__PURE__ */ jsx113(
15471
+ return /* @__PURE__ */ jsx115(
15351
15472
  "div",
15352
15473
  {
15353
15474
  id,
@@ -15366,7 +15487,7 @@ import {
15366
15487
  useImperativeHandle as useImperativeHandle13,
15367
15488
  useRef as useRef51
15368
15489
  } from "react";
15369
- import { jsx as jsx114, jsxs as jsxs41 } from "react/jsx-runtime";
15490
+ import { jsx as jsx116, jsxs as jsxs42 } from "react/jsx-runtime";
15370
15491
  var FormDialog = forwardRef14((props, ref) => {
15371
15492
  const {
15372
15493
  id,
@@ -15494,13 +15615,13 @@ var FormDialog = forwardRef14((props, ref) => {
15494
15615
  }
15495
15616
  };
15496
15617
  });
15497
- return /* @__PURE__ */ jsx114("form", { id, method: "POST", onSubmit: handleSubmit, children: /* @__PURE__ */ jsxs41(
15618
+ return /* @__PURE__ */ jsx116("form", { id, method: "POST", onSubmit: handleSubmit, children: /* @__PURE__ */ jsxs42(
15498
15619
  "sl-dialog",
15499
15620
  {
15500
15621
  class: `dialog_control ${className}`,
15501
15622
  ref: dialogRef,
15502
15623
  children: [
15503
- /* @__PURE__ */ jsx114("div", { slot: "label", children: headerControls && headerControls.length > 0 ? /* @__PURE__ */ jsxs41(
15624
+ /* @__PURE__ */ jsx116("div", { slot: "label", children: headerControls && headerControls.length > 0 ? /* @__PURE__ */ jsxs42(
15504
15625
  Stack,
15505
15626
  {
15506
15627
  className: "stack__gap-3 stack__row",
@@ -15511,29 +15632,29 @@ var FormDialog = forwardRef14((props, ref) => {
15511
15632
  },
15512
15633
  children: [
15513
15634
  headerControls,
15514
- /* @__PURE__ */ jsx114("div", { style: { flexGrow: 2 }, children: /* @__PURE__ */ jsx114("span", { className: "font-medium font-w-semibold", children: title }) })
15635
+ /* @__PURE__ */ jsx116("div", { style: { flexGrow: 2 }, children: /* @__PURE__ */ jsx116("span", { className: "font-medium font-w-semibold", children: title }) })
15515
15636
  ]
15516
15637
  }
15517
- ) : /* @__PURE__ */ jsx114("span", { className: "font-medium font-w-semibold", children: title }) }),
15518
- loading && /* @__PURE__ */ jsx114(ProgressBar, {}),
15519
- /* @__PURE__ */ jsx114("input", { type: "hidden", name: "formDialogId", value: id }),
15520
- /* @__PURE__ */ jsx114("input", { type: "hidden", name: "action", value: actionName }),
15638
+ ) : /* @__PURE__ */ jsx116("span", { className: "font-medium font-w-semibold", children: title }) }),
15639
+ loading && /* @__PURE__ */ jsx116(ProgressBar, {}),
15640
+ /* @__PURE__ */ jsx116("input", { type: "hidden", name: "formDialogId", value: id }),
15641
+ /* @__PURE__ */ jsx116("input", { type: "hidden", name: "action", value: actionName }),
15521
15642
  children,
15522
- /* @__PURE__ */ jsxs41(
15643
+ /* @__PURE__ */ jsxs42(
15523
15644
  Stack,
15524
15645
  {
15525
15646
  slot: "footer",
15526
15647
  className: "stack__row stack__gap-4",
15527
15648
  style: { width: "100%", flexWrap: "nowrap" },
15528
15649
  children: [
15529
- extraControl && /* @__PURE__ */ jsx114("div", { style: { flexGrow: 0 }, children: extraControl }),
15530
- /* @__PURE__ */ jsxs41(
15650
+ extraControl && /* @__PURE__ */ jsx116("div", { style: { flexGrow: 0 }, children: extraControl }),
15651
+ /* @__PURE__ */ jsxs42(
15531
15652
  Stack,
15532
15653
  {
15533
15654
  className: "stack__row stack__gap-4",
15534
15655
  style: { flexGrow: 1, justifyContent: "end" },
15535
15656
  children: [
15536
- /* @__PURE__ */ jsx114("div", { children: /* @__PURE__ */ jsx114(
15657
+ /* @__PURE__ */ jsx116("div", { children: /* @__PURE__ */ jsx116(
15537
15658
  Button,
15538
15659
  {
15539
15660
  slot: "footer",
@@ -15545,7 +15666,7 @@ var FormDialog = forwardRef14((props, ref) => {
15545
15666
  onClick: handleCancel
15546
15667
  }
15547
15668
  ) }),
15548
- /* @__PURE__ */ jsx114("div", { children: /* @__PURE__ */ jsx114(
15669
+ /* @__PURE__ */ jsx116("div", { children: /* @__PURE__ */ jsx116(
15549
15670
  Button,
15550
15671
  {
15551
15672
  slot: "footer",
@@ -15580,7 +15701,7 @@ import {
15580
15701
  createCommand as createCommand18
15581
15702
  } from "lexical";
15582
15703
  import { useEffect as useEffect79, useRef as useRef52, useState as useState14 } from "react";
15583
- import { jsx as jsx115, jsxs as jsxs42 } from "react/jsx-runtime";
15704
+ import { jsx as jsx117, jsxs as jsxs43 } from "react/jsx-runtime";
15584
15705
  var SHOW_LINK_EDITOR_COMMAND = createCommand18("SHOW_LINK_EDITOR_COMMAND");
15585
15706
  function LinkEditorPlugin() {
15586
15707
  const [editor] = useLexicalComposerContext64();
@@ -15613,7 +15734,7 @@ function LinkEditorPlugin() {
15613
15734
  )
15614
15735
  );
15615
15736
  }, [editor]);
15616
- return /* @__PURE__ */ jsx115(
15737
+ return /* @__PURE__ */ jsx117(
15617
15738
  FormDialog,
15618
15739
  {
15619
15740
  ref: formDialogRef,
@@ -15650,8 +15771,8 @@ function LinkEditorPlugin() {
15650
15771
  onCancel: () => {
15651
15772
  formDialogRef.current?.close();
15652
15773
  },
15653
- children: /* @__PURE__ */ jsx115("div", { style: { width: "450px" }, children: /* @__PURE__ */ jsxs42(Stack, { className: "stack__column stack__gap-4", children: [
15654
- /* @__PURE__ */ jsx115("div", { children: /* @__PURE__ */ jsx115(
15774
+ children: /* @__PURE__ */ jsx117("div", { style: { width: "450px" }, children: /* @__PURE__ */ jsxs43(Stack, { className: "stack__column stack__gap-4", children: [
15775
+ /* @__PURE__ */ jsx117("div", { children: /* @__PURE__ */ jsx117(
15655
15776
  TextInput,
15656
15777
  {
15657
15778
  ref: linkUrlInputRef,
@@ -15661,7 +15782,7 @@ function LinkEditorPlugin() {
15661
15782
  defaultValue: ""
15662
15783
  }
15663
15784
  ) }),
15664
- /* @__PURE__ */ jsx115("div", { children: /* @__PURE__ */ jsx115(
15785
+ /* @__PURE__ */ jsx117("div", { children: /* @__PURE__ */ jsx117(
15665
15786
  Checkbox,
15666
15787
  {
15667
15788
  size: "small",
@@ -15685,7 +15806,7 @@ import {
15685
15806
  useRef as useRef53,
15686
15807
  useState as useState15
15687
15808
  } from "react";
15688
- import { jsx as jsx116 } from "react/jsx-runtime";
15809
+ import { jsx as jsx118 } from "react/jsx-runtime";
15689
15810
  var PopupHighlighter = forwardRef15((props, ref) => {
15690
15811
  const { highlighterClassName } = props;
15691
15812
  const popupRef = useRef53(null);
@@ -15720,7 +15841,7 @@ var PopupHighlighter = forwardRef15((props, ref) => {
15720
15841
  }
15721
15842
  }
15722
15843
  }));
15723
- return /* @__PURE__ */ jsx116("sl-popup", { ref: popupRef, placement: "top-start", strategy: "fixed", children: /* @__PURE__ */ jsx116("div", { style: { position: "relative" }, children: highlighterClassName ? /* @__PURE__ */ jsx116(
15844
+ return /* @__PURE__ */ jsx118("sl-popup", { ref: popupRef, placement: "top-start", strategy: "fixed", children: /* @__PURE__ */ jsx118("div", { style: { position: "relative" }, children: highlighterClassName ? /* @__PURE__ */ jsx118(
15724
15845
  "div",
15725
15846
  {
15726
15847
  className: highlighterClassName,
@@ -15729,7 +15850,7 @@ var PopupHighlighter = forwardRef15((props, ref) => {
15729
15850
  "--variable-placeholder-height": `${popupRect?.height || 0}px`
15730
15851
  }
15731
15852
  }
15732
- ) : /* @__PURE__ */ jsx116(
15853
+ ) : /* @__PURE__ */ jsx118(
15733
15854
  "div",
15734
15855
  {
15735
15856
  style: {
@@ -15756,7 +15877,7 @@ import {
15756
15877
  useRef as useRef54,
15757
15878
  useState as useState16
15758
15879
  } from "react";
15759
- import { Fragment as Fragment51, jsx as jsx117, jsxs as jsxs43 } from "react/jsx-runtime";
15880
+ import { Fragment as Fragment51, jsx as jsx119, jsxs as jsxs44 } from "react/jsx-runtime";
15760
15881
  var PopupMenu = forwardRef16(
15761
15882
  (props, ref) => {
15762
15883
  const {
@@ -15836,11 +15957,11 @@ var PopupMenu = forwardRef16(
15836
15957
  } = menuItem;
15837
15958
  if (menuItemDivider) {
15838
15959
  resultList.push(
15839
- /* @__PURE__ */ jsx117("sl-divider", {}, `menuItem${menuItemId}`)
15960
+ /* @__PURE__ */ jsx119("sl-divider", {}, `menuItem${menuItemId}`)
15840
15961
  );
15841
15962
  } else if (menuItemIsGroup) {
15842
15963
  resultList.push(
15843
- /* @__PURE__ */ jsx117("sl-menu-label", { children: menuItemLabel }, `menuItem${menuItemId}`)
15964
+ /* @__PURE__ */ jsx119("sl-menu-label", { children: menuItemLabel }, `menuItem${menuItemId}`)
15844
15965
  );
15845
15966
  } else {
15846
15967
  const menuItemAttributes = {};
@@ -15852,16 +15973,16 @@ var PopupMenu = forwardRef16(
15852
15973
  menuItemAttributes.type = "checkbox";
15853
15974
  }
15854
15975
  resultList.push(
15855
- /* @__PURE__ */ jsxs43(
15976
+ /* @__PURE__ */ jsxs44(
15856
15977
  "sl-menu-item",
15857
15978
  {
15858
15979
  value: menuItemId,
15859
15980
  class: menuItemClassName,
15860
15981
  ...menuItemAttributes,
15861
15982
  children: [
15862
- MenuItemIcon && /* @__PURE__ */ jsx117(Icon, { slot: "prefix", icon: MenuItemIcon }),
15983
+ MenuItemIcon && /* @__PURE__ */ jsx119(Icon, { slot: "prefix", icon: MenuItemIcon }),
15863
15984
  menuItemLabel,
15864
- menuItemIsError && /* @__PURE__ */ jsx117(DotBadge, { variant: "danger" })
15985
+ menuItemIsError && /* @__PURE__ */ jsx119(DotBadge, { variant: "danger" })
15865
15986
  ]
15866
15987
  },
15867
15988
  `menuItem${menuItemId}`
@@ -15884,7 +16005,7 @@ var PopupMenu = forwardRef16(
15884
16005
  }
15885
16006
  if (constMenu.length > 0) {
15886
16007
  if (resultList.length > 0) {
15887
- resultList.push(/* @__PURE__ */ jsx117("sl-divider", {}, "const-menu-divider"));
16008
+ resultList.push(/* @__PURE__ */ jsx119("sl-divider", {}, "const-menu-divider"));
15888
16009
  }
15889
16010
  resultList = resultList.concat(createMenuList(constMenu));
15890
16011
  }
@@ -16012,7 +16133,7 @@ var PopupMenu = forwardRef16(
16012
16133
  };
16013
16134
  }
16014
16135
  }, [onEscape]);
16015
- return /* @__PURE__ */ jsx117(Fragment51, { children: /* @__PURE__ */ jsx117(
16136
+ return /* @__PURE__ */ jsx119(Fragment51, { children: /* @__PURE__ */ jsx119(
16016
16137
  "sl-popup",
16017
16138
  {
16018
16139
  ref: popupRef,
@@ -16024,7 +16145,7 @@ var PopupMenu = forwardRef16(
16024
16145
  strategy: "fixed",
16025
16146
  "auto-size": "vertical",
16026
16147
  "auto-size-padding": "10",
16027
- children: /* @__PURE__ */ jsx117(
16148
+ children: /* @__PURE__ */ jsx119(
16028
16149
  "sl-menu",
16029
16150
  {
16030
16151
  ref: menuRef,
@@ -16195,7 +16316,7 @@ import React22, {
16195
16316
  useEffect as useEffect81,
16196
16317
  useState as useState17
16197
16318
  } from "react";
16198
- import { jsx as jsx118 } from "react/jsx-runtime";
16319
+ import { jsx as jsx120 } from "react/jsx-runtime";
16199
16320
  var VariablesContext = React22.createContext(null);
16200
16321
  function VariablesProvider(props) {
16201
16322
  const { getEditor, getAllNestedEditors } = useBlockEditor();
@@ -16236,7 +16357,7 @@ function VariablesProvider(props) {
16236
16357
  renameVariable(newName, oldName);
16237
16358
  variablesSettings.onUpdated(newName, oldName);
16238
16359
  };
16239
- return /* @__PURE__ */ jsx118(
16360
+ return /* @__PURE__ */ jsx120(
16240
16361
  VariablesContext.Provider,
16241
16362
  {
16242
16363
  value: {
@@ -16357,7 +16478,7 @@ import {
16357
16478
  createCommand as createCommand19
16358
16479
  } from "lexical";
16359
16480
  import { useEffect as useEffect82, useMemo as useMemo11, useRef as useRef55 } from "react";
16360
- import { Fragment as Fragment52, jsx as jsx119, jsxs as jsxs44 } from "react/jsx-runtime";
16481
+ import { Fragment as Fragment52, jsx as jsx121, jsxs as jsxs45 } from "react/jsx-runtime";
16361
16482
  var CREATE_VARIABLE_FROM_SELECTION_COMMAND = createCommand19("CREATE_VARIABLE_FROM_SELECTION_COMMAND");
16362
16483
  function TypeaheadVariablePlugin() {
16363
16484
  const { variableList, onCreated } = useVariables();
@@ -16594,8 +16715,8 @@ function TypeaheadVariablePlugin() {
16594
16715
  activeDecoratorRef.current !== JournalEntryQuestionNode
16595
16716
  );
16596
16717
  }, [variableList, activeDecoratorRef.current]);
16597
- return /* @__PURE__ */ jsxs44(Fragment52, { children: [
16598
- /* @__PURE__ */ jsx119(
16718
+ return /* @__PURE__ */ jsxs45(Fragment52, { children: [
16719
+ /* @__PURE__ */ jsx121(
16599
16720
  PopupMenu,
16600
16721
  {
16601
16722
  ref: popupRef,
@@ -16603,7 +16724,7 @@ function TypeaheadVariablePlugin() {
16603
16724
  menu
16604
16725
  }
16605
16726
  ),
16606
- /* @__PURE__ */ jsx119(
16727
+ /* @__PURE__ */ jsx121(
16607
16728
  PopupHighlighter,
16608
16729
  {
16609
16730
  highlighterClassName: "variable-placeholder",
@@ -16755,7 +16876,7 @@ import {
16755
16876
  useRef as useRef56,
16756
16877
  useState as useState18
16757
16878
  } from "react";
16758
- import { jsx as jsx120 } from "react/jsx-runtime";
16879
+ import { jsx as jsx122 } from "react/jsx-runtime";
16759
16880
  function TextToolbarPlugin() {
16760
16881
  const { hasModule } = useBlockEditor();
16761
16882
  const [editor] = useLexicalComposerContext66();
@@ -17508,7 +17629,7 @@ function TextToolbarPlugin() {
17508
17629
  }
17509
17630
  return resultList;
17510
17631
  }, [toolbarState, selectionType, activeEditorRef.current]);
17511
- return /* @__PURE__ */ jsx120(PopupToolbar, { ref: popupToolbarRef, menu: menuItems });
17632
+ return /* @__PURE__ */ jsx122(PopupToolbar, { ref: popupToolbarRef, menu: menuItems });
17512
17633
  }
17513
17634
 
17514
17635
  // src/plugins/TypeaheadMenuPlugin/renderCalloutModuleMenu.tsx
@@ -18106,7 +18227,7 @@ function renderFillInTheBlankMenu(popupRef, targetNodeKeyRef, activeEditorRef) {
18106
18227
  }
18107
18228
 
18108
18229
  // src/plugins/TypeaheadMenuPlugin/TypeaheadMenuPlugin.tsx
18109
- import { jsx as jsx121 } from "react/jsx-runtime";
18230
+ import { jsx as jsx123 } from "react/jsx-runtime";
18110
18231
  function TypeaheadMenuPlugin() {
18111
18232
  const { hasModule, modulesNumber } = useBlockEditor();
18112
18233
  const [editor] = useLexicalComposerContext67();
@@ -18389,7 +18510,7 @@ function TypeaheadMenuPlugin() {
18389
18510
  }
18390
18511
  return menuItems;
18391
18512
  }, [editor, modulesNumber, activeDecorator]);
18392
- return /* @__PURE__ */ jsx121(
18513
+ return /* @__PURE__ */ jsx123(
18393
18514
  PopupMenu,
18394
18515
  {
18395
18516
  ref: popupRef,
@@ -19105,7 +19226,7 @@ var defaultThemeSettings = {
19105
19226
  };
19106
19227
 
19107
19228
  // src/theme/ThemeProvider.tsx
19108
- import { jsx as jsx122, jsxs as jsxs45 } from "react/jsx-runtime";
19229
+ import { jsx as jsx124, jsxs as jsxs46 } from "react/jsx-runtime";
19109
19230
  var ThemeContext = createContext2(
19110
19231
  void 0
19111
19232
  );
@@ -19138,7 +19259,7 @@ function ThemeProvider({
19138
19259
  );
19139
19260
  rootElementRef.current?.classList.add(`theme-${effectiveTheme}`);
19140
19261
  }, [effectiveTheme]);
19141
- return /* @__PURE__ */ jsx122(ThemeContext.Provider, { value: { theme, effectiveTheme }, children: /* @__PURE__ */ jsxs45(
19262
+ return /* @__PURE__ */ jsx124(ThemeContext.Provider, { value: { theme, effectiveTheme }, children: /* @__PURE__ */ jsxs46(
19142
19263
  "article",
19143
19264
  {
19144
19265
  ref: rootElementRef,
@@ -19155,7 +19276,7 @@ function ThemeProvider({
19155
19276
  )
19156
19277
  },
19157
19278
  children: [
19158
- /* @__PURE__ */ jsx122(
19279
+ /* @__PURE__ */ jsx124(
19159
19280
  "style",
19160
19281
  {
19161
19282
  dangerouslySetInnerHTML: {
@@ -19184,7 +19305,7 @@ import React24, {
19184
19305
  useRef as useRef59,
19185
19306
  useState as useState21
19186
19307
  } from "react";
19187
- import { jsx as jsx123, jsxs as jsxs46 } from "react/jsx-runtime";
19308
+ import { jsx as jsx125, jsxs as jsxs47 } from "react/jsx-runtime";
19188
19309
  var TOGGLE_EDITING_MODE = "TOGGLE_EDITING_MODE";
19189
19310
  var RESET_EDITING_MODE = "RESET_EDITING_MODE";
19190
19311
  var BlockEditorContext = React24.createContext(null);
@@ -19298,7 +19419,7 @@ function BlockEditor(props) {
19298
19419
  );
19299
19420
  };
19300
19421
  }, []);
19301
- return /* @__PURE__ */ jsx123(
19422
+ return /* @__PURE__ */ jsx125(
19302
19423
  BlockEditorContext.Provider,
19303
19424
  {
19304
19425
  value: {
@@ -19354,62 +19475,62 @@ function BlockEditor(props) {
19354
19475
  },
19355
19476
  drawer: drawerRef.current,
19356
19477
  isBlockEditorReady,
19357
- renderSettings: renderSettings ? renderSettings : () => /* @__PURE__ */ jsx123("div", {})
19478
+ renderSettings: renderSettings ? renderSettings : () => /* @__PURE__ */ jsx125("div", {})
19358
19479
  },
19359
- children: /* @__PURE__ */ jsx123(ResizeObserver, { children: /* @__PURE__ */ jsx123(ThemeProvider, { theme, themeSettings, children: /* @__PURE__ */ jsx123(SharedHistoryContext, { children: /* @__PURE__ */ jsxs46(NodeProvider, { children: [
19360
- /* @__PURE__ */ jsx123(
19480
+ children: /* @__PURE__ */ jsx125(ResizeObserver, { children: /* @__PURE__ */ jsx125(ThemeProvider, { theme, themeSettings, children: /* @__PURE__ */ jsx125(SharedHistoryContext, { children: /* @__PURE__ */ jsxs47(NodeProvider, { children: [
19481
+ /* @__PURE__ */ jsx125(
19361
19482
  "main",
19362
19483
  {
19363
19484
  className: `${settingsPanelSwitch === "on" ? "narrow" : ""}`,
19364
- children: /* @__PURE__ */ jsxs46(LexicalComposer, { initialConfig: { ...initialConfig }, children: [
19365
- /* @__PURE__ */ jsx123(
19485
+ children: /* @__PURE__ */ jsxs47(LexicalComposer, { initialConfig: { ...initialConfig }, children: [
19486
+ /* @__PURE__ */ jsx125(
19366
19487
  EditorRefPlugin,
19367
19488
  {
19368
19489
  onMountRef: (editor) => editorRef.current = editor
19369
19490
  }
19370
19491
  ),
19371
- /* @__PURE__ */ jsx123(AutoFocusPlugin, {}),
19372
- /* @__PURE__ */ jsx123(AutoBottomParagraphPlugin, {}),
19373
- /* @__PURE__ */ jsx123(
19492
+ /* @__PURE__ */ jsx125(AutoFocusPlugin, {}),
19493
+ /* @__PURE__ */ jsx125(AutoBottomParagraphPlugin, {}),
19494
+ /* @__PURE__ */ jsx125(
19374
19495
  HistoryPlugin11,
19375
19496
  {
19376
19497
  externalHistoryState: historyState
19377
19498
  }
19378
19499
  ),
19379
- /* @__PURE__ */ jsx123(
19500
+ /* @__PURE__ */ jsx125(
19380
19501
  OnChangePlugin,
19381
19502
  {
19382
19503
  onChange: handleChange,
19383
19504
  ignoreSelectionChange: true
19384
19505
  }
19385
19506
  ),
19386
- /* @__PURE__ */ jsx123(OnNestedChangePlugin, { onChange: handleChange }),
19387
- /* @__PURE__ */ jsx123(
19507
+ /* @__PURE__ */ jsx125(OnNestedChangePlugin, { onChange: handleChange }),
19508
+ /* @__PURE__ */ jsx125(
19388
19509
  RichTextPlugin9,
19389
19510
  {
19390
- contentEditable: /* @__PURE__ */ jsx123(ContentEditable, {}),
19511
+ contentEditable: /* @__PURE__ */ jsx125(ContentEditable, {}),
19391
19512
  placeholder: null,
19392
19513
  ErrorBoundary: LexicalErrorBoundary11
19393
19514
  }
19394
19515
  ),
19395
- /* @__PURE__ */ jsx123(NodePastePlugin, {}),
19396
- /* @__PURE__ */ jsx123(ListPlugin2, {}),
19397
- /* @__PURE__ */ jsx123(ListLevelLimitPlugin, {}),
19398
- /* @__PURE__ */ jsx123(TabIndentationPlugin2, {}),
19516
+ /* @__PURE__ */ jsx125(NodePastePlugin, {}),
19517
+ /* @__PURE__ */ jsx125(ListPlugin2, {}),
19518
+ /* @__PURE__ */ jsx125(ListLevelLimitPlugin, {}),
19519
+ /* @__PURE__ */ jsx125(TabIndentationPlugin2, {}),
19399
19520
  children,
19400
- /* @__PURE__ */ jsx123(TypeaheadMenuPlugin, {}),
19401
- /* @__PURE__ */ jsx123(TypeaheadMenuAgentPlugin, {}),
19402
- /* @__PURE__ */ jsx123(NodeMouseAnchorPlugin, {}),
19403
- /* @__PURE__ */ jsx123(NodeMousePlugin, {}),
19404
- /* @__PURE__ */ jsx123(TextToolbarPlugin, {}),
19405
- /* @__PURE__ */ jsx123(TextToolbarAgentPlugin, {}),
19406
- /* @__PURE__ */ jsx123(TypeaheadVariableAgentPlugin, {}),
19407
- /* @__PURE__ */ jsx123(VariableComponentPlugin, {}),
19408
- /* @__PURE__ */ jsx123(MarkdownPlugin, {})
19521
+ /* @__PURE__ */ jsx125(TypeaheadMenuPlugin, {}),
19522
+ /* @__PURE__ */ jsx125(TypeaheadMenuAgentPlugin, {}),
19523
+ /* @__PURE__ */ jsx125(NodeMouseAnchorPlugin, {}),
19524
+ /* @__PURE__ */ jsx125(NodeMousePlugin, {}),
19525
+ /* @__PURE__ */ jsx125(TextToolbarPlugin, {}),
19526
+ /* @__PURE__ */ jsx125(TextToolbarAgentPlugin, {}),
19527
+ /* @__PURE__ */ jsx125(TypeaheadVariableAgentPlugin, {}),
19528
+ /* @__PURE__ */ jsx125(VariableComponentPlugin, {}),
19529
+ /* @__PURE__ */ jsx125(MarkdownPlugin, {})
19409
19530
  ] })
19410
19531
  }
19411
19532
  ),
19412
- /* @__PURE__ */ jsx123(Drawer, { ref: drawerRef })
19533
+ /* @__PURE__ */ jsx125(Drawer, { ref: drawerRef })
19413
19534
  ] }) }) }) })
19414
19535
  }
19415
19536
  );
@@ -19425,30 +19546,30 @@ var useBlockEditor = () => {
19425
19546
  };
19426
19547
 
19427
19548
  // src/BlockEditorStyle.tsx
19428
- import { jsx as jsx124 } from "react/jsx-runtime";
19549
+ import { jsx as jsx126 } from "react/jsx-runtime";
19429
19550
  function BlockEditorStyle(props) {
19430
19551
  const { children, theme, themeSettings } = props;
19431
- return /* @__PURE__ */ jsx124(ThemeProvider, { theme, themeSettings, children });
19552
+ return /* @__PURE__ */ jsx126(ThemeProvider, { theme, themeSettings, children });
19432
19553
  }
19433
19554
 
19434
19555
  // src/modules/Callout.tsx
19435
19556
  import { useEffect as useEffect87 } from "react";
19436
- import { jsx as jsx125 } from "react/jsx-runtime";
19557
+ import { jsx as jsx127 } from "react/jsx-runtime";
19437
19558
  function Callout() {
19438
19559
  const { registerModule } = useBlockEditor();
19439
19560
  useEffect87(() => {
19440
19561
  registerModule("Callout");
19441
19562
  }, [registerModule]);
19442
- return /* @__PURE__ */ jsx125(CalloutBoxPlugin, {});
19563
+ return /* @__PURE__ */ jsx127(CalloutBoxPlugin, {});
19443
19564
  }
19444
19565
 
19445
19566
  // src/plugins/TreeViewPlugin/index.tsx
19446
19567
  import { useLexicalComposerContext as useLexicalComposerContext68 } from "@lexical/react/LexicalComposerContext";
19447
19568
  import { TreeView } from "@lexical/react/LexicalTreeView";
19448
- import { jsx as jsx126 } from "react/jsx-runtime";
19569
+ import { jsx as jsx128 } from "react/jsx-runtime";
19449
19570
  function TreeViewPlugin() {
19450
19571
  const [editor] = useLexicalComposerContext68();
19451
- return /* @__PURE__ */ jsx126(
19572
+ return /* @__PURE__ */ jsx128(
19452
19573
  TreeView,
19453
19574
  {
19454
19575
  viewClassName: "tree-view-output",
@@ -19464,25 +19585,25 @@ function TreeViewPlugin() {
19464
19585
 
19465
19586
  // src/modules/Debug.tsx
19466
19587
  import { useEffect as useEffect88 } from "react";
19467
- import { jsx as jsx127 } from "react/jsx-runtime";
19588
+ import { jsx as jsx129 } from "react/jsx-runtime";
19468
19589
  function Debug() {
19469
19590
  const { registerModule } = useBlockEditor();
19470
19591
  useEffect88(() => {
19471
19592
  registerModule("Debug");
19472
19593
  }, [registerModule]);
19473
- return /* @__PURE__ */ jsx127(TreeViewPlugin, {});
19594
+ return /* @__PURE__ */ jsx129(TreeViewPlugin, {});
19474
19595
  }
19475
19596
 
19476
19597
  // src/modules/Image.tsx
19477
19598
  import { useEffect as useEffect89 } from "react";
19478
- import { Fragment as Fragment53, jsx as jsx128 } from "react/jsx-runtime";
19599
+ import { Fragment as Fragment53, jsx as jsx130 } from "react/jsx-runtime";
19479
19600
  function Image(props) {
19480
19601
  const { imageSettings } = props;
19481
19602
  const { registerModule } = useBlockEditor();
19482
19603
  useEffect89(() => {
19483
19604
  registerModule("Image");
19484
19605
  }, [registerModule]);
19485
- return /* @__PURE__ */ jsx128(Fragment53, { children: /* @__PURE__ */ jsx128(ImagePlugin, { imageSettings }) });
19606
+ return /* @__PURE__ */ jsx130(Fragment53, { children: /* @__PURE__ */ jsx130(ImagePlugin, { imageSettings }) });
19486
19607
  }
19487
19608
 
19488
19609
  // src/plugins/LinkToolbarPlugin/LinkToolbarPlugin.tsx
@@ -19501,9 +19622,9 @@ import {
19501
19622
  KEY_ESCAPE_COMMAND as KEY_ESCAPE_COMMAND4
19502
19623
  } from "lexical";
19503
19624
  import debounce7 from "lodash-es/debounce";
19504
- import { Pencil, Trash2 as Trash28, X } from "lucide-react";
19625
+ import { Pencil, Trash2 as Trash24, X } from "lucide-react";
19505
19626
  import { useCallback as useCallback18, useEffect as useEffect90, useRef as useRef60, useState as useState22 } from "react";
19506
- import { jsx as jsx129, jsxs as jsxs47 } from "react/jsx-runtime";
19627
+ import { jsx as jsx131, jsxs as jsxs48 } from "react/jsx-runtime";
19507
19628
  function LinkToolbarPlugin() {
19508
19629
  const [editor] = useLexicalComposerContext69();
19509
19630
  const popupToolbarRef = useRef60(null);
@@ -19613,12 +19734,12 @@ function LinkToolbarPlugin() {
19613
19734
  }, [editor]);
19614
19735
  const linkUrl = linkNode?.linkUrl;
19615
19736
  const linkTitle = linkNode?.linkUrl;
19616
- return /* @__PURE__ */ jsx129(
19737
+ return /* @__PURE__ */ jsx131(
19617
19738
  PopupToolbar,
19618
19739
  {
19619
19740
  ref: popupToolbarRef,
19620
19741
  onEscape: handleClose,
19621
- toolbar: /* @__PURE__ */ jsxs47(
19742
+ toolbar: /* @__PURE__ */ jsxs48(
19622
19743
  "div",
19623
19744
  {
19624
19745
  style: {
@@ -19631,23 +19752,23 @@ function LinkToolbarPlugin() {
19631
19752
  padding: "var(--sl-spacing-2x-small) var(--sl-spacing-x-small) var(--sl-spacing-2x-small) var(--sl-spacing-medium)"
19632
19753
  },
19633
19754
  children: [
19634
- /* @__PURE__ */ jsx129("div", { children: /* @__PURE__ */ jsx129("a", { href: linkUrl, target: linkNode?.linkTarget || "", children: /* @__PURE__ */ jsx129(
19755
+ /* @__PURE__ */ jsx131("div", { children: /* @__PURE__ */ jsx131("a", { href: linkUrl, target: linkNode?.linkTarget || "", children: /* @__PURE__ */ jsx131(
19635
19756
  "sl-tooltip",
19636
19757
  {
19637
19758
  style: { "--show-delay": "1800" },
19638
19759
  hoist: true,
19639
19760
  content: linkUrl || "[Empty URL]",
19640
- children: /* @__PURE__ */ jsx129("span", { className: "line-short-20", children: linkTitle })
19761
+ children: /* @__PURE__ */ jsx131("span", { className: "line-short-20", children: linkTitle })
19641
19762
  }
19642
19763
  ) }) }),
19643
- /* @__PURE__ */ jsxs47(Stack, { className: "stack__row", children: [
19644
- /* @__PURE__ */ jsx129("div", { children: /* @__PURE__ */ jsx129(
19764
+ /* @__PURE__ */ jsxs48(Stack, { className: "stack__row", children: [
19765
+ /* @__PURE__ */ jsx131("div", { children: /* @__PURE__ */ jsx131(
19645
19766
  "sl-tooltip",
19646
19767
  {
19647
19768
  style: { "--show-delay": "1800" },
19648
19769
  hoist: "hoist",
19649
19770
  content: "Edit Link",
19650
- children: /* @__PURE__ */ jsx129(
19771
+ children: /* @__PURE__ */ jsx131(
19651
19772
  Button,
19652
19773
  {
19653
19774
  size: "small",
@@ -19686,19 +19807,19 @@ function LinkToolbarPlugin() {
19686
19807
  )
19687
19808
  }
19688
19809
  ) }),
19689
- /* @__PURE__ */ jsx129("div", { children: /* @__PURE__ */ jsx129(
19810
+ /* @__PURE__ */ jsx131("div", { children: /* @__PURE__ */ jsx131(
19690
19811
  "sl-tooltip",
19691
19812
  {
19692
19813
  style: { "--show-delay": "1800" },
19693
19814
  hoist: "hoist",
19694
19815
  content: "Remove Link",
19695
- children: /* @__PURE__ */ jsx129(
19816
+ children: /* @__PURE__ */ jsx131(
19696
19817
  Button,
19697
19818
  {
19698
19819
  size: "small",
19699
19820
  variant: "text",
19700
19821
  label: "",
19701
- StartIcon: Trash28,
19822
+ StartIcon: Trash24,
19702
19823
  onClick: () => {
19703
19824
  if (activeEditorRef.current) {
19704
19825
  activeEditorRef.current.update(() => {
@@ -19727,13 +19848,13 @@ function LinkToolbarPlugin() {
19727
19848
  )
19728
19849
  }
19729
19850
  ) }),
19730
- /* @__PURE__ */ jsx129("div", { children: /* @__PURE__ */ jsx129(
19851
+ /* @__PURE__ */ jsx131("div", { children: /* @__PURE__ */ jsx131(
19731
19852
  "sl-tooltip",
19732
19853
  {
19733
19854
  style: { "--show-delay": "1800" },
19734
19855
  hoist: "hoist",
19735
19856
  content: "Close",
19736
- children: /* @__PURE__ */ jsx129(
19857
+ children: /* @__PURE__ */ jsx131(
19737
19858
  Button,
19738
19859
  {
19739
19860
  size: "small",
@@ -19756,15 +19877,15 @@ function LinkToolbarPlugin() {
19756
19877
 
19757
19878
  // src/modules/Link.tsx
19758
19879
  import { useEffect as useEffect91 } from "react";
19759
- import { Fragment as Fragment54, jsx as jsx130, jsxs as jsxs48 } from "react/jsx-runtime";
19880
+ import { Fragment as Fragment54, jsx as jsx132, jsxs as jsxs49 } from "react/jsx-runtime";
19760
19881
  function Link() {
19761
19882
  const { registerModule } = useBlockEditor();
19762
19883
  useEffect91(() => {
19763
19884
  registerModule("Link");
19764
19885
  }, [registerModule]);
19765
- return /* @__PURE__ */ jsxs48(Fragment54, { children: [
19766
- /* @__PURE__ */ jsx130(LinkEditorPlugin, {}),
19767
- /* @__PURE__ */ jsx130(LinkToolbarPlugin, {})
19886
+ return /* @__PURE__ */ jsxs49(Fragment54, { children: [
19887
+ /* @__PURE__ */ jsx132(LinkEditorPlugin, {}),
19888
+ /* @__PURE__ */ jsx132(LinkToolbarPlugin, {})
19768
19889
  ] });
19769
19890
  }
19770
19891
 
@@ -19779,7 +19900,7 @@ import {
19779
19900
  createCommand as createCommand20
19780
19901
  } from "lexical";
19781
19902
  import { useEffect as useEffect92 } from "react";
19782
- import { Fragment as Fragment55, jsx as jsx131 } from "react/jsx-runtime";
19903
+ import { Fragment as Fragment55, jsx as jsx133 } from "react/jsx-runtime";
19783
19904
  var INSERT_ESSAY_QUESTION_COMMAND = createCommand20("INSERT_ESSAY_QUESTION_COMMAND");
19784
19905
  function EssayQuestionPlugin() {
19785
19906
  const [editor] = useLexicalComposerContext70();
@@ -19817,7 +19938,7 @@ function EssayQuestionPlugin() {
19817
19938
  )
19818
19939
  );
19819
19940
  }, [editor]);
19820
- return /* @__PURE__ */ jsx131(Fragment55, {});
19941
+ return /* @__PURE__ */ jsx133(Fragment55, {});
19821
19942
  }
19822
19943
 
19823
19944
  // src/plugins/FinancialStatementQuestionPlugin/FinancialStatementQuestionSettings.tsx
@@ -19845,7 +19966,7 @@ function validatePointsInput6(input) {
19845
19966
  }
19846
19967
 
19847
19968
  // src/plugins/FinancialStatementQuestionPlugin/FinancialStatementQuestionSettings.tsx
19848
- import { jsx as jsx132 } from "react/jsx-runtime";
19969
+ import { jsx as jsx134 } from "react/jsx-runtime";
19849
19970
  function FinancialStatementQuestionSettings(props) {
19850
19971
  const { nodeKey } = props;
19851
19972
  const [editor] = useLexicalComposerContext71();
@@ -19864,7 +19985,7 @@ function FinancialStatementQuestionSettings(props) {
19864
19985
  if (!foundNode) {
19865
19986
  return null;
19866
19987
  }
19867
- return /* @__PURE__ */ jsx132("div", { children: /* @__PURE__ */ jsx132(
19988
+ return /* @__PURE__ */ jsx134("div", { children: /* @__PURE__ */ jsx134(
19868
19989
  TextInput,
19869
19990
  {
19870
19991
  ref: pointsTextInputRef,
@@ -19907,7 +20028,7 @@ import {
19907
20028
  createEditor as createEditor9
19908
20029
  } from "lexical";
19909
20030
  import { useEffect as useEffect94, useRef as useRef62 } from "react";
19910
- import { Fragment as Fragment56, jsx as jsx133, jsxs as jsxs49 } from "react/jsx-runtime";
20031
+ import { Fragment as Fragment56, jsx as jsx135, jsxs as jsxs50 } from "react/jsx-runtime";
19911
20032
  var INSERT_FINANCIAL_STATEMENT_QUESTION_COMMAND = createCommand21("INSERT_FINANCIAL_STATEMENT_QUESTION_COMMAND");
19912
20033
  function FinancialStatementQuestionPlugin() {
19913
20034
  const {
@@ -19972,21 +20093,21 @@ function FinancialStatementQuestionPlugin() {
19972
20093
  }
19973
20094
  }
19974
20095
  }, [isBlockEditorReady]);
19975
- return /* @__PURE__ */ jsxs49(Fragment56, { children: [
19976
- drawer && /* @__PURE__ */ jsx133(
20096
+ return /* @__PURE__ */ jsxs50(Fragment56, { children: [
20097
+ drawer && /* @__PURE__ */ jsx135(
19977
20098
  StickyToPosition,
19978
20099
  {
19979
20100
  ref: settingsPanelStickyRef,
19980
20101
  container: drawer,
19981
20102
  children: (data, position, isVisible) => {
19982
- return /* @__PURE__ */ jsx133("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx133(
20103
+ return /* @__PURE__ */ jsx135("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx135(
19983
20104
  SettingsCard,
19984
20105
  {
19985
20106
  isVisible: !!isVisible,
19986
20107
  container: drawer,
19987
20108
  title: "Financial Statement Settings",
19988
20109
  onClose: toggleSettingsPanelSwitch,
19989
- children: isVisible && /* @__PURE__ */ jsx133(
20110
+ children: isVisible && /* @__PURE__ */ jsx135(
19990
20111
  FinancialStatementQuestionSettings,
19991
20112
  {
19992
20113
  nodeKey: data.nodeKey
@@ -19998,32 +20119,32 @@ function FinancialStatementQuestionPlugin() {
19998
20119
  }
19999
20120
  }
20000
20121
  ),
20001
- /* @__PURE__ */ jsx133(FillInTheBlankSpaceSettingsPlugin, {})
20122
+ /* @__PURE__ */ jsx135(FillInTheBlankSpaceSettingsPlugin, {})
20002
20123
  ] });
20003
20124
  }
20004
20125
 
20005
20126
  // src/modules/Questions.tsx
20006
20127
  import { useEffect as useEffect95 } from "react";
20007
- import { Fragment as Fragment57, jsx as jsx134, jsxs as jsxs50 } from "react/jsx-runtime";
20128
+ import { Fragment as Fragment57, jsx as jsx136, jsxs as jsxs51 } from "react/jsx-runtime";
20008
20129
  function Questions() {
20009
20130
  const { registerModule } = useBlockEditor();
20010
20131
  useEffect95(() => {
20011
20132
  registerModule("Questions");
20012
20133
  }, [registerModule]);
20013
- return /* @__PURE__ */ jsxs50(Fragment57, { children: [
20014
- /* @__PURE__ */ jsx134(MultipleOptionQuestionPlugin, {}),
20015
- /* @__PURE__ */ jsx134(ShortAnswerQuestionPlugin, {}),
20016
- /* @__PURE__ */ jsx134(MatchingQuestionPlugin, {}),
20017
- /* @__PURE__ */ jsx134(FillInTheBlankQuestionPlugin, {}),
20018
- /* @__PURE__ */ jsx134(JournalEntryQuestionPlugin, {}),
20019
- /* @__PURE__ */ jsx134(FinancialStatementQuestionPlugin, {}),
20020
- /* @__PURE__ */ jsx134(EssayQuestionPlugin, {})
20134
+ return /* @__PURE__ */ jsxs51(Fragment57, { children: [
20135
+ /* @__PURE__ */ jsx136(MultipleOptionQuestionPlugin, {}),
20136
+ /* @__PURE__ */ jsx136(ShortAnswerQuestionPlugin, {}),
20137
+ /* @__PURE__ */ jsx136(MatchingQuestionPlugin, {}),
20138
+ /* @__PURE__ */ jsx136(FillInTheBlankQuestionPlugin, {}),
20139
+ /* @__PURE__ */ jsx136(JournalEntryQuestionPlugin, {}),
20140
+ /* @__PURE__ */ jsx136(FinancialStatementQuestionPlugin, {}),
20141
+ /* @__PURE__ */ jsx136(EssayQuestionPlugin, {})
20021
20142
  ] });
20022
20143
  }
20023
20144
 
20024
20145
  // src/modules/SettingsPanel.tsx
20025
20146
  import { useEffect as useEffect96 } from "react";
20026
- import { jsx as jsx135 } from "react/jsx-runtime";
20147
+ import { jsx as jsx137 } from "react/jsx-runtime";
20027
20148
  function SettingsPanel(props) {
20028
20149
  const { defaultOpen = true } = props;
20029
20150
  const { registerModule, openSettingsPanel } = useBlockEditor();
@@ -20035,7 +20156,7 @@ function SettingsPanel(props) {
20035
20156
  }
20036
20157
  }, 50);
20037
20158
  }, [registerModule, defaultOpen, openSettingsPanel]);
20038
- return /* @__PURE__ */ jsx135(SettingsPanelPlugin, {});
20159
+ return /* @__PURE__ */ jsx137(SettingsPanelPlugin, {});
20039
20160
  }
20040
20161
 
20041
20162
  // src/plugins/VariablesPlugin/VariableSettingsPlugin.tsx
@@ -20047,14 +20168,14 @@ import {
20047
20168
  $createTextNode as $createTextNode8,
20048
20169
  $getNodeByKey as $getNodeByKey58
20049
20170
  } from "lexical";
20050
- import { Pencil as Pencil2, Save, Trash2 as Trash29 } from "lucide-react";
20171
+ import { Pencil as Pencil2, Save, Trash2 as Trash25 } from "lucide-react";
20051
20172
  import {
20052
20173
  useEffect as useEffect97,
20053
20174
  useMemo as useMemo14,
20054
20175
  useRef as useRef63,
20055
20176
  useState as useState24
20056
20177
  } from "react";
20057
- import { Fragment as Fragment58, jsx as jsx136, jsxs as jsxs51 } from "react/jsx-runtime";
20178
+ import { Fragment as Fragment58, jsx as jsx138, jsxs as jsxs52 } from "react/jsx-runtime";
20058
20179
  var controlGridStyle = {
20059
20180
  width: "100%",
20060
20181
  display: "flex",
@@ -20276,8 +20397,8 @@ function VariableSettings(props) {
20276
20397
  if (!currentVariableNode) {
20277
20398
  return null;
20278
20399
  }
20279
- return /* @__PURE__ */ jsxs51(Fragment58, { children: [
20280
- /* @__PURE__ */ jsx136("div", { style: formFieldStyle, children: /* @__PURE__ */ jsx136(
20400
+ return /* @__PURE__ */ jsxs52(Fragment58, { children: [
20401
+ /* @__PURE__ */ jsx138("div", { style: formFieldStyle, children: /* @__PURE__ */ jsx138(
20281
20402
  Button,
20282
20403
  {
20283
20404
  className: "button__fullwidth",
@@ -20296,10 +20417,10 @@ function VariableSettings(props) {
20296
20417
  variant: "default"
20297
20418
  }
20298
20419
  ) }),
20299
- /* @__PURE__ */ jsxs51("div", { style: formFieldStyle, children: [
20300
- /* @__PURE__ */ jsx136("div", { style: formFieldLabel, children: "Name" }),
20301
- /* @__PURE__ */ jsxs51("div", { style: controlGridStyle, children: [
20302
- /* @__PURE__ */ jsx136("div", { style: { flexGrow: 1 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx136(
20420
+ /* @__PURE__ */ jsxs52("div", { style: formFieldStyle, children: [
20421
+ /* @__PURE__ */ jsx138("div", { style: formFieldLabel, children: "Name" }),
20422
+ /* @__PURE__ */ jsxs52("div", { style: controlGridStyle, children: [
20423
+ /* @__PURE__ */ jsx138("div", { style: { flexGrow: 1 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx138(
20303
20424
  "form",
20304
20425
  {
20305
20426
  onSubmit: (e) => {
@@ -20307,7 +20428,7 @@ function VariableSettings(props) {
20307
20428
  e.preventDefault();
20308
20429
  updateVariableName();
20309
20430
  },
20310
- children: /* @__PURE__ */ jsx136(
20431
+ children: /* @__PURE__ */ jsx138(
20311
20432
  TextInput,
20312
20433
  {
20313
20434
  ref: variableNameInputRef,
@@ -20319,7 +20440,7 @@ function VariableSettings(props) {
20319
20440
  }
20320
20441
  )
20321
20442
  }
20322
- ) : /* @__PURE__ */ jsx136(
20443
+ ) : /* @__PURE__ */ jsx138(
20323
20444
  DropdownButton,
20324
20445
  {
20325
20446
  className: "button__fullwidth button__left_aligned",
@@ -20332,7 +20453,7 @@ function VariableSettings(props) {
20332
20453
  menu: variablesMenu
20333
20454
  }
20334
20455
  ) }),
20335
- /* @__PURE__ */ jsx136("div", { style: { flexGrow: 0 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx136(
20456
+ /* @__PURE__ */ jsx138("div", { style: { flexGrow: 0 }, children: isSettingsEditingMode ? /* @__PURE__ */ jsx138(
20336
20457
  Button,
20337
20458
  {
20338
20459
  StartIcon: Save,
@@ -20340,7 +20461,7 @@ function VariableSettings(props) {
20340
20461
  size: "small",
20341
20462
  onClick: updateVariableName
20342
20463
  }
20343
- ) : /* @__PURE__ */ jsx136(
20464
+ ) : /* @__PURE__ */ jsx138(
20344
20465
  Button,
20345
20466
  {
20346
20467
  StartIcon: Pencil2,
@@ -20353,9 +20474,9 @@ function VariableSettings(props) {
20353
20474
  ) })
20354
20475
  ] })
20355
20476
  ] }),
20356
- /* @__PURE__ */ jsxs51("div", { style: formFieldStyle, children: [
20357
- /* @__PURE__ */ jsx136("div", { style: formFieldLabel, children: "Type" }),
20358
- /* @__PURE__ */ jsx136(
20477
+ /* @__PURE__ */ jsxs52("div", { style: formFieldStyle, children: [
20478
+ /* @__PURE__ */ jsx138("div", { style: formFieldLabel, children: "Type" }),
20479
+ /* @__PURE__ */ jsx138(
20359
20480
  DropdownButton,
20360
20481
  {
20361
20482
  className: "button__fullwidth button__left_aligned",
@@ -20369,9 +20490,9 @@ function VariableSettings(props) {
20369
20490
  }
20370
20491
  )
20371
20492
  ] }),
20372
- currentVariableNode.getVariableFormat() && /* @__PURE__ */ jsxs51("div", { style: formFieldStyle, children: [
20373
- /* @__PURE__ */ jsx136("div", { style: formFieldLabel, children: "Format" }),
20374
- /* @__PURE__ */ jsx136(
20493
+ currentVariableNode.getVariableFormat() && /* @__PURE__ */ jsxs52("div", { style: formFieldStyle, children: [
20494
+ /* @__PURE__ */ jsx138("div", { style: formFieldLabel, children: "Format" }),
20495
+ /* @__PURE__ */ jsx138(
20375
20496
  DropdownButton,
20376
20497
  {
20377
20498
  className: "button__fullwidth button__left_aligned",
@@ -20385,14 +20506,14 @@ function VariableSettings(props) {
20385
20506
  }
20386
20507
  )
20387
20508
  ] }),
20388
- /* @__PURE__ */ jsx136("div", { style: { width: "100%", display: "f" }, children: /* @__PURE__ */ jsx136(
20509
+ /* @__PURE__ */ jsx138("div", { style: { width: "100%", display: "f" }, children: /* @__PURE__ */ jsx138(
20389
20510
  Button,
20390
20511
  {
20391
20512
  size: "small",
20392
20513
  variant: "danger",
20393
20514
  className: "button__fullwidth",
20394
20515
  label: "Delete",
20395
- StartIcon: Trash29,
20516
+ StartIcon: Trash25,
20396
20517
  onClick: () => {
20397
20518
  let parentNodeKey;
20398
20519
  activeEditorRef.current?.update(
@@ -20427,7 +20548,7 @@ function VariableSettings(props) {
20427
20548
  }
20428
20549
 
20429
20550
  // src/plugins/VariablesPlugin/VariableSettingsPlugin.tsx
20430
- import { Fragment as Fragment59, jsx as jsx137 } from "react/jsx-runtime";
20551
+ import { Fragment as Fragment59, jsx as jsx139 } from "react/jsx-runtime";
20431
20552
  function VariableSettingsPlugin() {
20432
20553
  const {
20433
20554
  registerSettingsPanel,
@@ -20446,20 +20567,20 @@ function VariableSettingsPlugin() {
20446
20567
  }
20447
20568
  }
20448
20569
  }, [isBlockEditorReady]);
20449
- return /* @__PURE__ */ jsx137(Fragment59, { children: drawer && /* @__PURE__ */ jsx137(
20570
+ return /* @__PURE__ */ jsx139(Fragment59, { children: drawer && /* @__PURE__ */ jsx139(
20450
20571
  StickyToPosition,
20451
20572
  {
20452
20573
  ref: settingsPanelStickyRef,
20453
20574
  container: drawer,
20454
20575
  children: (data, position, isVisible) => {
20455
- return /* @__PURE__ */ jsx137("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx137(
20576
+ return /* @__PURE__ */ jsx139("div", { style: { width: position.width }, children: /* @__PURE__ */ jsx139(
20456
20577
  SettingsCard,
20457
20578
  {
20458
20579
  isVisible: !!isVisible,
20459
20580
  container: drawer,
20460
20581
  title: "Variable Settings",
20461
20582
  onClose: toggleSettingsPanelSwitch,
20462
- children: /* @__PURE__ */ jsx137(
20583
+ children: /* @__PURE__ */ jsx139(
20463
20584
  VariableSettings,
20464
20585
  {
20465
20586
  nodeKey: data.nodeKey,
@@ -20492,7 +20613,7 @@ import {
20492
20613
  useRef as useRef65,
20493
20614
  useState as useState25
20494
20615
  } from "react";
20495
- import { jsx as jsx138 } from "react/jsx-runtime";
20616
+ import { jsx as jsx140 } from "react/jsx-runtime";
20496
20617
  function VariableToolbarPlugin() {
20497
20618
  const [editor] = useLexicalComposerContext74();
20498
20619
  const popupToolbarRef = useRef65(null);
@@ -20685,12 +20806,12 @@ function VariableToolbarPlugin() {
20685
20806
  ];
20686
20807
  return resultList;
20687
20808
  }, [toolbarState]);
20688
- return /* @__PURE__ */ jsx138(PopupToolbar, { ref: popupToolbarRef, menu: menuItems });
20809
+ return /* @__PURE__ */ jsx140(PopupToolbar, { ref: popupToolbarRef, menu: menuItems });
20689
20810
  }
20690
20811
 
20691
20812
  // src/modules/Variables.tsx
20692
20813
  import { useEffect as useEffect100 } from "react";
20693
- import { jsx as jsx139, jsxs as jsxs52 } from "react/jsx-runtime";
20814
+ import { jsx as jsx141, jsxs as jsxs53 } from "react/jsx-runtime";
20694
20815
  function Variables(props) {
20695
20816
  const { variablesSettings } = props;
20696
20817
  const { registerModule, setEditingModeDataCallback } = useBlockEditor();
@@ -20704,11 +20825,11 @@ function Variables(props) {
20704
20825
  };
20705
20826
  });
20706
20827
  }, [variablesSettings, setEditingModeDataCallback]);
20707
- return /* @__PURE__ */ jsxs52(VariablesProvider, { variablesSettings, children: [
20708
- /* @__PURE__ */ jsx139(TypeaheadVariablePlugin, {}),
20709
- /* @__PURE__ */ jsx139(VariableSettingsPlugin, {}),
20710
- /* @__PURE__ */ jsx139(VariableToolbarPlugin, {}),
20711
- /* @__PURE__ */ jsx139(VariableToolbarAgentPlugin, {})
20828
+ return /* @__PURE__ */ jsxs53(VariablesProvider, { variablesSettings, children: [
20829
+ /* @__PURE__ */ jsx141(TypeaheadVariablePlugin, {}),
20830
+ /* @__PURE__ */ jsx141(VariableSettingsPlugin, {}),
20831
+ /* @__PURE__ */ jsx141(VariableToolbarPlugin, {}),
20832
+ /* @__PURE__ */ jsx141(VariableToolbarAgentPlugin, {})
20712
20833
  ] });
20713
20834
  }
20714
20835
  export {