@mathwiz/ui-components 0.1.8 → 0.1.9

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
@@ -16016,6 +16016,7 @@ const loadKaTeXCSS = () => {
16016
16016
  ), renderContentBlock = (e) => e.type === "formula" ? React__default.createElement(EquationRender, {
16017
16017
  key: e.content,
16018
16018
  parts: [e.content],
16019
+ children: null,
16019
16020
  displayMode: !1,
16020
16021
  fontSize: "1em",
16021
16022
  color: "#333333"
@@ -16062,13 +16063,13 @@ const loadKaTeXCSS = () => {
16062
16063
  }[r]), h;
16063
16064
  };
16064
16065
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: l(), children: a[e] });
16065
- }, Question = ({ question: e, problemType: t }) => {
16066
- const r = {
16066
+ }, Question = ({ question: e }) => {
16067
+ const t = {
16067
16068
  padding: "20px",
16068
16069
  lineHeight: "1.6",
16069
16070
  fontSize: "16px"
16070
16071
  };
16071
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: r, children: renderContentBlocks(e) });
16072
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: t, children: renderContentBlocks(e) });
16072
16073
  }, AnswerInput = ({
16073
16074
  problemType: e,
16074
16075
  options: t,
@@ -68655,11 +68656,11 @@ JXG$2.useBlackWhiteOptions;
68655
68656
  JXG$2.useStandardOptions;
68656
68657
  JXG$2.warn;
68657
68658
  JXG$2.isBrowser ? window.JXG = JXG$2 : JXG$2.isWebWorker() && (self.JXG = JXG$2);
68658
- const JXG$1 = JXG$2.JSXGraph, { OBJECT_TYPE_POINT } = JXG$1, GraphContainer = (e) => {
68659
+ const JXG$1 = JXG$2.JSXGraph, GraphContainer = (e) => {
68659
68660
  const t = useRef(null), [r, s] = useState(null), [n, o] = useState({}), a = useCallback((h, c) => {
68660
- e.onShapeChange && e.onShapeChange(h, c);
68661
+ e.onShapeChange;
68661
68662
  }, [e.onShapeChange]), l = useCallback((h) => {
68662
- e.onSelectionChange && e.onSelectionChange(h);
68663
+ e.onSelectionChange && e.onSelectionChange(h ? [h] : []);
68663
68664
  }, [e.onSelectionChange]);
68664
68665
  return useEffect(() => {
68665
68666
  if (t.current) {
@@ -68672,7 +68673,6 @@ const JXG$1 = JXG$2.JSXGraph, { OBJECT_TYPE_POINT } = JXG$1, GraphContainer = (e
68672
68673
  grid: e.showGrid ?? !0,
68673
68674
  showNavigation: !1,
68674
68675
  pan: { enabled: e.mode === "edit" },
68675
- zoom: { enabled: !1 },
68676
68676
  keepaspectratio: !0,
68677
68677
  showCopyright: !1
68678
68678
  });