@thanh01.pmt/interactive-quiz-kit 1.0.52 → 1.0.53
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/ai.d.cts +14 -14
- package/dist/ai.d.ts +14 -14
- package/dist/authoring.cjs +125 -125
- package/dist/authoring.mjs +125 -125
- package/dist/player.cjs +3352 -3328
- package/dist/player.mjs +3352 -3328
- package/dist/react-ui.cjs +25778 -25754
- package/dist/react-ui.mjs +25778 -25754
- package/package.json +1 -1
package/dist/ai.d.cts
CHANGED
|
@@ -1710,13 +1710,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1710
1710
|
correctAnswerId: string;
|
|
1711
1711
|
questionType: "multiple_choice";
|
|
1712
1712
|
prompt: string;
|
|
1713
|
+
points?: number | undefined;
|
|
1713
1714
|
subject?: string | undefined;
|
|
1714
1715
|
learningObjective?: string | undefined;
|
|
1715
1716
|
category?: string | undefined;
|
|
1716
1717
|
topic?: string | undefined;
|
|
1717
1718
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1718
1719
|
bloomLevel?: string | undefined;
|
|
1719
|
-
points?: number | undefined;
|
|
1720
1720
|
explanation?: string | undefined;
|
|
1721
1721
|
contextCode?: string | undefined;
|
|
1722
1722
|
gradeBand?: string | undefined;
|
|
@@ -1731,13 +1731,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1731
1731
|
correctAnswerId: string;
|
|
1732
1732
|
questionType: "multiple_choice";
|
|
1733
1733
|
prompt: string;
|
|
1734
|
+
points?: number | undefined;
|
|
1734
1735
|
subject?: string | undefined;
|
|
1735
1736
|
learningObjective?: string | undefined;
|
|
1736
1737
|
category?: string | undefined;
|
|
1737
1738
|
topic?: string | undefined;
|
|
1738
1739
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1739
1740
|
bloomLevel?: string | undefined;
|
|
1740
|
-
points?: number | undefined;
|
|
1741
1741
|
explanation?: string | undefined;
|
|
1742
1742
|
contextCode?: string | undefined;
|
|
1743
1743
|
gradeBand?: string | undefined;
|
|
@@ -1752,13 +1752,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1752
1752
|
correctAnswerId: string;
|
|
1753
1753
|
questionType: "multiple_choice";
|
|
1754
1754
|
prompt: string;
|
|
1755
|
+
points?: number | undefined;
|
|
1755
1756
|
subject?: string | undefined;
|
|
1756
1757
|
learningObjective?: string | undefined;
|
|
1757
1758
|
category?: string | undefined;
|
|
1758
1759
|
topic?: string | undefined;
|
|
1759
1760
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1760
1761
|
bloomLevel?: string | undefined;
|
|
1761
|
-
points?: number | undefined;
|
|
1762
1762
|
explanation?: string | undefined;
|
|
1763
1763
|
contextCode?: string | undefined;
|
|
1764
1764
|
gradeBand?: string | undefined;
|
|
@@ -1773,13 +1773,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1773
1773
|
correctAnswerId: string;
|
|
1774
1774
|
questionType: "multiple_choice";
|
|
1775
1775
|
prompt: string;
|
|
1776
|
+
points?: number | undefined;
|
|
1776
1777
|
subject?: string | undefined;
|
|
1777
1778
|
learningObjective?: string | undefined;
|
|
1778
1779
|
category?: string | undefined;
|
|
1779
1780
|
topic?: string | undefined;
|
|
1780
1781
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1781
1782
|
bloomLevel?: string | undefined;
|
|
1782
|
-
points?: number | undefined;
|
|
1783
1783
|
explanation?: string | undefined;
|
|
1784
1784
|
contextCode?: string | undefined;
|
|
1785
1785
|
gradeBand?: string | undefined;
|
|
@@ -1808,13 +1808,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1808
1808
|
correctAnswer: boolean;
|
|
1809
1809
|
questionType: "true_false";
|
|
1810
1810
|
prompt: string;
|
|
1811
|
+
points?: number | undefined;
|
|
1811
1812
|
subject?: string | undefined;
|
|
1812
1813
|
learningObjective?: string | undefined;
|
|
1813
1814
|
category?: string | undefined;
|
|
1814
1815
|
topic?: string | undefined;
|
|
1815
1816
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1816
1817
|
bloomLevel?: string | undefined;
|
|
1817
|
-
points?: number | undefined;
|
|
1818
1818
|
explanation?: string | undefined;
|
|
1819
1819
|
contextCode?: string | undefined;
|
|
1820
1820
|
gradeBand?: string | undefined;
|
|
@@ -1825,13 +1825,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1825
1825
|
correctAnswer: boolean;
|
|
1826
1826
|
questionType: "true_false";
|
|
1827
1827
|
prompt: string;
|
|
1828
|
+
points?: number | undefined;
|
|
1828
1829
|
subject?: string | undefined;
|
|
1829
1830
|
learningObjective?: string | undefined;
|
|
1830
1831
|
category?: string | undefined;
|
|
1831
1832
|
topic?: string | undefined;
|
|
1832
1833
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1833
1834
|
bloomLevel?: string | undefined;
|
|
1834
|
-
points?: number | undefined;
|
|
1835
1835
|
explanation?: string | undefined;
|
|
1836
1836
|
contextCode?: string | undefined;
|
|
1837
1837
|
gradeBand?: string | undefined;
|
|
@@ -1861,13 +1861,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1861
1861
|
questionType: "short_answer";
|
|
1862
1862
|
prompt: string;
|
|
1863
1863
|
acceptedAnswers: string[];
|
|
1864
|
+
points?: number | undefined;
|
|
1864
1865
|
subject?: string | undefined;
|
|
1865
1866
|
learningObjective?: string | undefined;
|
|
1866
1867
|
category?: string | undefined;
|
|
1867
1868
|
topic?: string | undefined;
|
|
1868
1869
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1869
1870
|
bloomLevel?: string | undefined;
|
|
1870
|
-
points?: number | undefined;
|
|
1871
1871
|
explanation?: string | undefined;
|
|
1872
1872
|
contextCode?: string | undefined;
|
|
1873
1873
|
gradeBand?: string | undefined;
|
|
@@ -1879,13 +1879,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1879
1879
|
questionType: "short_answer";
|
|
1880
1880
|
prompt: string;
|
|
1881
1881
|
acceptedAnswers: string[];
|
|
1882
|
+
points?: number | undefined;
|
|
1882
1883
|
subject?: string | undefined;
|
|
1883
1884
|
learningObjective?: string | undefined;
|
|
1884
1885
|
category?: string | undefined;
|
|
1885
1886
|
topic?: string | undefined;
|
|
1886
1887
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1887
1888
|
bloomLevel?: string | undefined;
|
|
1888
|
-
points?: number | undefined;
|
|
1889
1889
|
explanation?: string | undefined;
|
|
1890
1890
|
contextCode?: string | undefined;
|
|
1891
1891
|
gradeBand?: string | undefined;
|
|
@@ -1899,13 +1899,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1899
1899
|
correctAnswer: boolean;
|
|
1900
1900
|
questionType: "true_false";
|
|
1901
1901
|
prompt: string;
|
|
1902
|
+
points?: number | undefined;
|
|
1902
1903
|
subject?: string | undefined;
|
|
1903
1904
|
learningObjective?: string | undefined;
|
|
1904
1905
|
category?: string | undefined;
|
|
1905
1906
|
topic?: string | undefined;
|
|
1906
1907
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1907
1908
|
bloomLevel?: string | undefined;
|
|
1908
|
-
points?: number | undefined;
|
|
1909
1909
|
explanation?: string | undefined;
|
|
1910
1910
|
contextCode?: string | undefined;
|
|
1911
1911
|
gradeBand?: string | undefined;
|
|
@@ -1920,13 +1920,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1920
1920
|
correctAnswerId: string;
|
|
1921
1921
|
questionType: "multiple_choice";
|
|
1922
1922
|
prompt: string;
|
|
1923
|
+
points?: number | undefined;
|
|
1923
1924
|
subject?: string | undefined;
|
|
1924
1925
|
learningObjective?: string | undefined;
|
|
1925
1926
|
category?: string | undefined;
|
|
1926
1927
|
topic?: string | undefined;
|
|
1927
1928
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1928
1929
|
bloomLevel?: string | undefined;
|
|
1929
|
-
points?: number | undefined;
|
|
1930
1930
|
explanation?: string | undefined;
|
|
1931
1931
|
contextCode?: string | undefined;
|
|
1932
1932
|
gradeBand?: string | undefined;
|
|
@@ -1937,13 +1937,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1937
1937
|
questionType: "short_answer";
|
|
1938
1938
|
prompt: string;
|
|
1939
1939
|
acceptedAnswers: string[];
|
|
1940
|
+
points?: number | undefined;
|
|
1940
1941
|
subject?: string | undefined;
|
|
1941
1942
|
learningObjective?: string | undefined;
|
|
1942
1943
|
category?: string | undefined;
|
|
1943
1944
|
topic?: string | undefined;
|
|
1944
1945
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1945
1946
|
bloomLevel?: string | undefined;
|
|
1946
|
-
points?: number | undefined;
|
|
1947
1947
|
explanation?: string | undefined;
|
|
1948
1948
|
contextCode?: string | undefined;
|
|
1949
1949
|
gradeBand?: string | undefined;
|
|
@@ -1957,13 +1957,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1957
1957
|
correctAnswer: boolean;
|
|
1958
1958
|
questionType: "true_false";
|
|
1959
1959
|
prompt: string;
|
|
1960
|
+
points?: number | undefined;
|
|
1960
1961
|
subject?: string | undefined;
|
|
1961
1962
|
learningObjective?: string | undefined;
|
|
1962
1963
|
category?: string | undefined;
|
|
1963
1964
|
topic?: string | undefined;
|
|
1964
1965
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1965
1966
|
bloomLevel?: string | undefined;
|
|
1966
|
-
points?: number | undefined;
|
|
1967
1967
|
explanation?: string | undefined;
|
|
1968
1968
|
contextCode?: string | undefined;
|
|
1969
1969
|
gradeBand?: string | undefined;
|
|
@@ -1978,13 +1978,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1978
1978
|
correctAnswerId: string;
|
|
1979
1979
|
questionType: "multiple_choice";
|
|
1980
1980
|
prompt: string;
|
|
1981
|
+
points?: number | undefined;
|
|
1981
1982
|
subject?: string | undefined;
|
|
1982
1983
|
learningObjective?: string | undefined;
|
|
1983
1984
|
category?: string | undefined;
|
|
1984
1985
|
topic?: string | undefined;
|
|
1985
1986
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1986
1987
|
bloomLevel?: string | undefined;
|
|
1987
|
-
points?: number | undefined;
|
|
1988
1988
|
explanation?: string | undefined;
|
|
1989
1989
|
contextCode?: string | undefined;
|
|
1990
1990
|
gradeBand?: string | undefined;
|
|
@@ -1995,13 +1995,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1995
1995
|
questionType: "short_answer";
|
|
1996
1996
|
prompt: string;
|
|
1997
1997
|
acceptedAnswers: string[];
|
|
1998
|
+
points?: number | undefined;
|
|
1998
1999
|
subject?: string | undefined;
|
|
1999
2000
|
learningObjective?: string | undefined;
|
|
2000
2001
|
category?: string | undefined;
|
|
2001
2002
|
topic?: string | undefined;
|
|
2002
2003
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
2003
2004
|
bloomLevel?: string | undefined;
|
|
2004
|
-
points?: number | undefined;
|
|
2005
2005
|
explanation?: string | undefined;
|
|
2006
2006
|
contextCode?: string | undefined;
|
|
2007
2007
|
gradeBand?: string | undefined;
|
package/dist/ai.d.ts
CHANGED
|
@@ -1710,13 +1710,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1710
1710
|
correctAnswerId: string;
|
|
1711
1711
|
questionType: "multiple_choice";
|
|
1712
1712
|
prompt: string;
|
|
1713
|
+
points?: number | undefined;
|
|
1713
1714
|
subject?: string | undefined;
|
|
1714
1715
|
learningObjective?: string | undefined;
|
|
1715
1716
|
category?: string | undefined;
|
|
1716
1717
|
topic?: string | undefined;
|
|
1717
1718
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1718
1719
|
bloomLevel?: string | undefined;
|
|
1719
|
-
points?: number | undefined;
|
|
1720
1720
|
explanation?: string | undefined;
|
|
1721
1721
|
contextCode?: string | undefined;
|
|
1722
1722
|
gradeBand?: string | undefined;
|
|
@@ -1731,13 +1731,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1731
1731
|
correctAnswerId: string;
|
|
1732
1732
|
questionType: "multiple_choice";
|
|
1733
1733
|
prompt: string;
|
|
1734
|
+
points?: number | undefined;
|
|
1734
1735
|
subject?: string | undefined;
|
|
1735
1736
|
learningObjective?: string | undefined;
|
|
1736
1737
|
category?: string | undefined;
|
|
1737
1738
|
topic?: string | undefined;
|
|
1738
1739
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1739
1740
|
bloomLevel?: string | undefined;
|
|
1740
|
-
points?: number | undefined;
|
|
1741
1741
|
explanation?: string | undefined;
|
|
1742
1742
|
contextCode?: string | undefined;
|
|
1743
1743
|
gradeBand?: string | undefined;
|
|
@@ -1752,13 +1752,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1752
1752
|
correctAnswerId: string;
|
|
1753
1753
|
questionType: "multiple_choice";
|
|
1754
1754
|
prompt: string;
|
|
1755
|
+
points?: number | undefined;
|
|
1755
1756
|
subject?: string | undefined;
|
|
1756
1757
|
learningObjective?: string | undefined;
|
|
1757
1758
|
category?: string | undefined;
|
|
1758
1759
|
topic?: string | undefined;
|
|
1759
1760
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1760
1761
|
bloomLevel?: string | undefined;
|
|
1761
|
-
points?: number | undefined;
|
|
1762
1762
|
explanation?: string | undefined;
|
|
1763
1763
|
contextCode?: string | undefined;
|
|
1764
1764
|
gradeBand?: string | undefined;
|
|
@@ -1773,13 +1773,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1773
1773
|
correctAnswerId: string;
|
|
1774
1774
|
questionType: "multiple_choice";
|
|
1775
1775
|
prompt: string;
|
|
1776
|
+
points?: number | undefined;
|
|
1776
1777
|
subject?: string | undefined;
|
|
1777
1778
|
learningObjective?: string | undefined;
|
|
1778
1779
|
category?: string | undefined;
|
|
1779
1780
|
topic?: string | undefined;
|
|
1780
1781
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1781
1782
|
bloomLevel?: string | undefined;
|
|
1782
|
-
points?: number | undefined;
|
|
1783
1783
|
explanation?: string | undefined;
|
|
1784
1784
|
contextCode?: string | undefined;
|
|
1785
1785
|
gradeBand?: string | undefined;
|
|
@@ -1808,13 +1808,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1808
1808
|
correctAnswer: boolean;
|
|
1809
1809
|
questionType: "true_false";
|
|
1810
1810
|
prompt: string;
|
|
1811
|
+
points?: number | undefined;
|
|
1811
1812
|
subject?: string | undefined;
|
|
1812
1813
|
learningObjective?: string | undefined;
|
|
1813
1814
|
category?: string | undefined;
|
|
1814
1815
|
topic?: string | undefined;
|
|
1815
1816
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1816
1817
|
bloomLevel?: string | undefined;
|
|
1817
|
-
points?: number | undefined;
|
|
1818
1818
|
explanation?: string | undefined;
|
|
1819
1819
|
contextCode?: string | undefined;
|
|
1820
1820
|
gradeBand?: string | undefined;
|
|
@@ -1825,13 +1825,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1825
1825
|
correctAnswer: boolean;
|
|
1826
1826
|
questionType: "true_false";
|
|
1827
1827
|
prompt: string;
|
|
1828
|
+
points?: number | undefined;
|
|
1828
1829
|
subject?: string | undefined;
|
|
1829
1830
|
learningObjective?: string | undefined;
|
|
1830
1831
|
category?: string | undefined;
|
|
1831
1832
|
topic?: string | undefined;
|
|
1832
1833
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1833
1834
|
bloomLevel?: string | undefined;
|
|
1834
|
-
points?: number | undefined;
|
|
1835
1835
|
explanation?: string | undefined;
|
|
1836
1836
|
contextCode?: string | undefined;
|
|
1837
1837
|
gradeBand?: string | undefined;
|
|
@@ -1861,13 +1861,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1861
1861
|
questionType: "short_answer";
|
|
1862
1862
|
prompt: string;
|
|
1863
1863
|
acceptedAnswers: string[];
|
|
1864
|
+
points?: number | undefined;
|
|
1864
1865
|
subject?: string | undefined;
|
|
1865
1866
|
learningObjective?: string | undefined;
|
|
1866
1867
|
category?: string | undefined;
|
|
1867
1868
|
topic?: string | undefined;
|
|
1868
1869
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1869
1870
|
bloomLevel?: string | undefined;
|
|
1870
|
-
points?: number | undefined;
|
|
1871
1871
|
explanation?: string | undefined;
|
|
1872
1872
|
contextCode?: string | undefined;
|
|
1873
1873
|
gradeBand?: string | undefined;
|
|
@@ -1879,13 +1879,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1879
1879
|
questionType: "short_answer";
|
|
1880
1880
|
prompt: string;
|
|
1881
1881
|
acceptedAnswers: string[];
|
|
1882
|
+
points?: number | undefined;
|
|
1882
1883
|
subject?: string | undefined;
|
|
1883
1884
|
learningObjective?: string | undefined;
|
|
1884
1885
|
category?: string | undefined;
|
|
1885
1886
|
topic?: string | undefined;
|
|
1886
1887
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1887
1888
|
bloomLevel?: string | undefined;
|
|
1888
|
-
points?: number | undefined;
|
|
1889
1889
|
explanation?: string | undefined;
|
|
1890
1890
|
contextCode?: string | undefined;
|
|
1891
1891
|
gradeBand?: string | undefined;
|
|
@@ -1899,13 +1899,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1899
1899
|
correctAnswer: boolean;
|
|
1900
1900
|
questionType: "true_false";
|
|
1901
1901
|
prompt: string;
|
|
1902
|
+
points?: number | undefined;
|
|
1902
1903
|
subject?: string | undefined;
|
|
1903
1904
|
learningObjective?: string | undefined;
|
|
1904
1905
|
category?: string | undefined;
|
|
1905
1906
|
topic?: string | undefined;
|
|
1906
1907
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1907
1908
|
bloomLevel?: string | undefined;
|
|
1908
|
-
points?: number | undefined;
|
|
1909
1909
|
explanation?: string | undefined;
|
|
1910
1910
|
contextCode?: string | undefined;
|
|
1911
1911
|
gradeBand?: string | undefined;
|
|
@@ -1920,13 +1920,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1920
1920
|
correctAnswerId: string;
|
|
1921
1921
|
questionType: "multiple_choice";
|
|
1922
1922
|
prompt: string;
|
|
1923
|
+
points?: number | undefined;
|
|
1923
1924
|
subject?: string | undefined;
|
|
1924
1925
|
learningObjective?: string | undefined;
|
|
1925
1926
|
category?: string | undefined;
|
|
1926
1927
|
topic?: string | undefined;
|
|
1927
1928
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1928
1929
|
bloomLevel?: string | undefined;
|
|
1929
|
-
points?: number | undefined;
|
|
1930
1930
|
explanation?: string | undefined;
|
|
1931
1931
|
contextCode?: string | undefined;
|
|
1932
1932
|
gradeBand?: string | undefined;
|
|
@@ -1937,13 +1937,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1937
1937
|
questionType: "short_answer";
|
|
1938
1938
|
prompt: string;
|
|
1939
1939
|
acceptedAnswers: string[];
|
|
1940
|
+
points?: number | undefined;
|
|
1940
1941
|
subject?: string | undefined;
|
|
1941
1942
|
learningObjective?: string | undefined;
|
|
1942
1943
|
category?: string | undefined;
|
|
1943
1944
|
topic?: string | undefined;
|
|
1944
1945
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1945
1946
|
bloomLevel?: string | undefined;
|
|
1946
|
-
points?: number | undefined;
|
|
1947
1947
|
explanation?: string | undefined;
|
|
1948
1948
|
contextCode?: string | undefined;
|
|
1949
1949
|
gradeBand?: string | undefined;
|
|
@@ -1957,13 +1957,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1957
1957
|
correctAnswer: boolean;
|
|
1958
1958
|
questionType: "true_false";
|
|
1959
1959
|
prompt: string;
|
|
1960
|
+
points?: number | undefined;
|
|
1960
1961
|
subject?: string | undefined;
|
|
1961
1962
|
learningObjective?: string | undefined;
|
|
1962
1963
|
category?: string | undefined;
|
|
1963
1964
|
topic?: string | undefined;
|
|
1964
1965
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1965
1966
|
bloomLevel?: string | undefined;
|
|
1966
|
-
points?: number | undefined;
|
|
1967
1967
|
explanation?: string | undefined;
|
|
1968
1968
|
contextCode?: string | undefined;
|
|
1969
1969
|
gradeBand?: string | undefined;
|
|
@@ -1978,13 +1978,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1978
1978
|
correctAnswerId: string;
|
|
1979
1979
|
questionType: "multiple_choice";
|
|
1980
1980
|
prompt: string;
|
|
1981
|
+
points?: number | undefined;
|
|
1981
1982
|
subject?: string | undefined;
|
|
1982
1983
|
learningObjective?: string | undefined;
|
|
1983
1984
|
category?: string | undefined;
|
|
1984
1985
|
topic?: string | undefined;
|
|
1985
1986
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
1986
1987
|
bloomLevel?: string | undefined;
|
|
1987
|
-
points?: number | undefined;
|
|
1988
1988
|
explanation?: string | undefined;
|
|
1989
1989
|
contextCode?: string | undefined;
|
|
1990
1990
|
gradeBand?: string | undefined;
|
|
@@ -1995,13 +1995,13 @@ declare const GenerateQuizFromTextOutputSchema: z.ZodObject<{
|
|
|
1995
1995
|
questionType: "short_answer";
|
|
1996
1996
|
prompt: string;
|
|
1997
1997
|
acceptedAnswers: string[];
|
|
1998
|
+
points?: number | undefined;
|
|
1998
1999
|
subject?: string | undefined;
|
|
1999
2000
|
learningObjective?: string | undefined;
|
|
2000
2001
|
category?: string | undefined;
|
|
2001
2002
|
topic?: string | undefined;
|
|
2002
2003
|
difficulty?: "easy" | "medium" | "hard" | undefined;
|
|
2003
2004
|
bloomLevel?: string | undefined;
|
|
2004
|
-
points?: number | undefined;
|
|
2005
2005
|
explanation?: string | undefined;
|
|
2006
2006
|
contextCode?: string | undefined;
|
|
2007
2007
|
gradeBand?: string | undefined;
|
package/dist/authoring.cjs
CHANGED
|
@@ -11729,6 +11729,125 @@ init_react_shim();
|
|
|
11729
11729
|
// node_modules/react-i18next/dist/es/useSSR.js
|
|
11730
11730
|
init_react_shim();
|
|
11731
11731
|
|
|
11732
|
+
// src/react-ui/hooks/use-toast.ts
|
|
11733
|
+
init_react_shim();
|
|
11734
|
+
var TOAST_LIMIT = 1;
|
|
11735
|
+
var TOAST_REMOVE_DELAY = 1e6;
|
|
11736
|
+
var count = 0;
|
|
11737
|
+
function genId() {
|
|
11738
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
11739
|
+
return count.toString();
|
|
11740
|
+
}
|
|
11741
|
+
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
11742
|
+
var addToRemoveQueue = (toastId) => {
|
|
11743
|
+
if (toastTimeouts.has(toastId)) {
|
|
11744
|
+
return;
|
|
11745
|
+
}
|
|
11746
|
+
const timeout = setTimeout(() => {
|
|
11747
|
+
toastTimeouts.delete(toastId);
|
|
11748
|
+
dispatch({
|
|
11749
|
+
type: "REMOVE_TOAST",
|
|
11750
|
+
toastId
|
|
11751
|
+
});
|
|
11752
|
+
}, TOAST_REMOVE_DELAY);
|
|
11753
|
+
toastTimeouts.set(toastId, timeout);
|
|
11754
|
+
};
|
|
11755
|
+
var reducer = (state, action) => {
|
|
11756
|
+
switch (action.type) {
|
|
11757
|
+
case "ADD_TOAST":
|
|
11758
|
+
return {
|
|
11759
|
+
...state,
|
|
11760
|
+
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
11761
|
+
};
|
|
11762
|
+
case "UPDATE_TOAST":
|
|
11763
|
+
return {
|
|
11764
|
+
...state,
|
|
11765
|
+
toasts: state.toasts.map(
|
|
11766
|
+
(t2) => t2.id === action.toast.id ? { ...t2, ...action.toast } : t2
|
|
11767
|
+
)
|
|
11768
|
+
};
|
|
11769
|
+
case "DISMISS_TOAST": {
|
|
11770
|
+
const { toastId } = action;
|
|
11771
|
+
if (toastId) {
|
|
11772
|
+
addToRemoveQueue(toastId);
|
|
11773
|
+
} else {
|
|
11774
|
+
state.toasts.forEach((toast2) => {
|
|
11775
|
+
addToRemoveQueue(toast2.id);
|
|
11776
|
+
});
|
|
11777
|
+
}
|
|
11778
|
+
return {
|
|
11779
|
+
...state,
|
|
11780
|
+
toasts: state.toasts.map(
|
|
11781
|
+
(t2) => t2.id === toastId || toastId === void 0 ? {
|
|
11782
|
+
...t2,
|
|
11783
|
+
open: false
|
|
11784
|
+
} : t2
|
|
11785
|
+
)
|
|
11786
|
+
};
|
|
11787
|
+
}
|
|
11788
|
+
case "REMOVE_TOAST":
|
|
11789
|
+
if (action.toastId === void 0) {
|
|
11790
|
+
return {
|
|
11791
|
+
...state,
|
|
11792
|
+
toasts: []
|
|
11793
|
+
};
|
|
11794
|
+
}
|
|
11795
|
+
return {
|
|
11796
|
+
...state,
|
|
11797
|
+
toasts: state.toasts.filter((t2) => t2.id !== action.toastId)
|
|
11798
|
+
};
|
|
11799
|
+
}
|
|
11800
|
+
};
|
|
11801
|
+
var listeners = [];
|
|
11802
|
+
var memoryState = { toasts: [] };
|
|
11803
|
+
function dispatch(action) {
|
|
11804
|
+
memoryState = reducer(memoryState, action);
|
|
11805
|
+
listeners.forEach((listener) => {
|
|
11806
|
+
listener(memoryState);
|
|
11807
|
+
});
|
|
11808
|
+
}
|
|
11809
|
+
function toast({ ...props }) {
|
|
11810
|
+
const id2 = genId();
|
|
11811
|
+
const update = (props2) => dispatch({
|
|
11812
|
+
type: "UPDATE_TOAST",
|
|
11813
|
+
toast: { ...props2, id: id2 }
|
|
11814
|
+
});
|
|
11815
|
+
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id2 });
|
|
11816
|
+
dispatch({
|
|
11817
|
+
type: "ADD_TOAST",
|
|
11818
|
+
toast: {
|
|
11819
|
+
...props,
|
|
11820
|
+
id: id2,
|
|
11821
|
+
open: true,
|
|
11822
|
+
onOpenChange: (open2) => {
|
|
11823
|
+
if (!open2) dismiss();
|
|
11824
|
+
}
|
|
11825
|
+
}
|
|
11826
|
+
});
|
|
11827
|
+
return {
|
|
11828
|
+
id: id2,
|
|
11829
|
+
dismiss,
|
|
11830
|
+
update
|
|
11831
|
+
};
|
|
11832
|
+
}
|
|
11833
|
+
function useToast() {
|
|
11834
|
+
const [state, setState] = React97__namespace.useState(memoryState);
|
|
11835
|
+
React97__namespace.useEffect(() => {
|
|
11836
|
+
listeners.push(setState);
|
|
11837
|
+
return () => {
|
|
11838
|
+
const index3 = listeners.indexOf(setState);
|
|
11839
|
+
if (index3 > -1) {
|
|
11840
|
+
listeners.splice(index3, 1);
|
|
11841
|
+
}
|
|
11842
|
+
};
|
|
11843
|
+
}, [state]);
|
|
11844
|
+
return {
|
|
11845
|
+
...state,
|
|
11846
|
+
toast,
|
|
11847
|
+
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
11848
|
+
};
|
|
11849
|
+
}
|
|
11850
|
+
|
|
11732
11851
|
// src/react-ui/components/ui/QuestionRenderer.tsx
|
|
11733
11852
|
init_react_shim();
|
|
11734
11853
|
|
|
@@ -12076,11 +12195,11 @@ var useLayoutEffect2 = globalThis?.document ? React97__namespace.useLayoutEffect
|
|
|
12076
12195
|
|
|
12077
12196
|
// node_modules/@radix-ui/react-id/dist/index.mjs
|
|
12078
12197
|
var useReactId = React97__namespace[" useId ".trim().toString()] || (() => void 0);
|
|
12079
|
-
var
|
|
12198
|
+
var count2 = 0;
|
|
12080
12199
|
function useId(deterministicId) {
|
|
12081
12200
|
const [id2, setId] = React97__namespace.useState(useReactId());
|
|
12082
12201
|
useLayoutEffect2(() => {
|
|
12083
|
-
setId((reactId) => reactId ?? String(
|
|
12202
|
+
setId((reactId) => reactId ?? String(count2++));
|
|
12084
12203
|
}, [deterministicId]);
|
|
12085
12204
|
return (id2 ? `radix-${id2}` : "");
|
|
12086
12205
|
}
|
|
@@ -67423,18 +67542,18 @@ var Branch = DismissableLayerBranch;
|
|
|
67423
67542
|
|
|
67424
67543
|
// node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
67425
67544
|
init_react_shim();
|
|
67426
|
-
var
|
|
67545
|
+
var count3 = 0;
|
|
67427
67546
|
function useFocusGuards() {
|
|
67428
67547
|
React97__namespace.useEffect(() => {
|
|
67429
67548
|
const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
|
|
67430
67549
|
document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
|
|
67431
67550
|
document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
|
|
67432
|
-
|
|
67551
|
+
count3++;
|
|
67433
67552
|
return () => {
|
|
67434
|
-
if (
|
|
67553
|
+
if (count3 === 1) {
|
|
67435
67554
|
document.querySelectorAll("[data-radix-focus-guard]").forEach((node2) => node2.remove());
|
|
67436
67555
|
}
|
|
67437
|
-
|
|
67556
|
+
count3--;
|
|
67438
67557
|
};
|
|
67439
67558
|
}, []);
|
|
67440
67559
|
}
|
|
@@ -99111,125 +99230,6 @@ var TabsContent2 = React97__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
99111
99230
|
));
|
|
99112
99231
|
TabsContent2.displayName = Content3.displayName;
|
|
99113
99232
|
|
|
99114
|
-
// src/react-ui/hooks/use-toast.ts
|
|
99115
|
-
init_react_shim();
|
|
99116
|
-
var TOAST_LIMIT = 1;
|
|
99117
|
-
var TOAST_REMOVE_DELAY = 1e6;
|
|
99118
|
-
var count3 = 0;
|
|
99119
|
-
function genId() {
|
|
99120
|
-
count3 = (count3 + 1) % Number.MAX_SAFE_INTEGER;
|
|
99121
|
-
return count3.toString();
|
|
99122
|
-
}
|
|
99123
|
-
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
99124
|
-
var addToRemoveQueue = (toastId) => {
|
|
99125
|
-
if (toastTimeouts.has(toastId)) {
|
|
99126
|
-
return;
|
|
99127
|
-
}
|
|
99128
|
-
const timeout = setTimeout(() => {
|
|
99129
|
-
toastTimeouts.delete(toastId);
|
|
99130
|
-
dispatch({
|
|
99131
|
-
type: "REMOVE_TOAST",
|
|
99132
|
-
toastId
|
|
99133
|
-
});
|
|
99134
|
-
}, TOAST_REMOVE_DELAY);
|
|
99135
|
-
toastTimeouts.set(toastId, timeout);
|
|
99136
|
-
};
|
|
99137
|
-
var reducer = (state, action) => {
|
|
99138
|
-
switch (action.type) {
|
|
99139
|
-
case "ADD_TOAST":
|
|
99140
|
-
return {
|
|
99141
|
-
...state,
|
|
99142
|
-
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
99143
|
-
};
|
|
99144
|
-
case "UPDATE_TOAST":
|
|
99145
|
-
return {
|
|
99146
|
-
...state,
|
|
99147
|
-
toasts: state.toasts.map(
|
|
99148
|
-
(t2) => t2.id === action.toast.id ? { ...t2, ...action.toast } : t2
|
|
99149
|
-
)
|
|
99150
|
-
};
|
|
99151
|
-
case "DISMISS_TOAST": {
|
|
99152
|
-
const { toastId } = action;
|
|
99153
|
-
if (toastId) {
|
|
99154
|
-
addToRemoveQueue(toastId);
|
|
99155
|
-
} else {
|
|
99156
|
-
state.toasts.forEach((toast2) => {
|
|
99157
|
-
addToRemoveQueue(toast2.id);
|
|
99158
|
-
});
|
|
99159
|
-
}
|
|
99160
|
-
return {
|
|
99161
|
-
...state,
|
|
99162
|
-
toasts: state.toasts.map(
|
|
99163
|
-
(t2) => t2.id === toastId || toastId === void 0 ? {
|
|
99164
|
-
...t2,
|
|
99165
|
-
open: false
|
|
99166
|
-
} : t2
|
|
99167
|
-
)
|
|
99168
|
-
};
|
|
99169
|
-
}
|
|
99170
|
-
case "REMOVE_TOAST":
|
|
99171
|
-
if (action.toastId === void 0) {
|
|
99172
|
-
return {
|
|
99173
|
-
...state,
|
|
99174
|
-
toasts: []
|
|
99175
|
-
};
|
|
99176
|
-
}
|
|
99177
|
-
return {
|
|
99178
|
-
...state,
|
|
99179
|
-
toasts: state.toasts.filter((t2) => t2.id !== action.toastId)
|
|
99180
|
-
};
|
|
99181
|
-
}
|
|
99182
|
-
};
|
|
99183
|
-
var listeners = [];
|
|
99184
|
-
var memoryState = { toasts: [] };
|
|
99185
|
-
function dispatch(action) {
|
|
99186
|
-
memoryState = reducer(memoryState, action);
|
|
99187
|
-
listeners.forEach((listener) => {
|
|
99188
|
-
listener(memoryState);
|
|
99189
|
-
});
|
|
99190
|
-
}
|
|
99191
|
-
function toast({ ...props }) {
|
|
99192
|
-
const id2 = genId();
|
|
99193
|
-
const update = (props2) => dispatch({
|
|
99194
|
-
type: "UPDATE_TOAST",
|
|
99195
|
-
toast: { ...props2, id: id2 }
|
|
99196
|
-
});
|
|
99197
|
-
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id2 });
|
|
99198
|
-
dispatch({
|
|
99199
|
-
type: "ADD_TOAST",
|
|
99200
|
-
toast: {
|
|
99201
|
-
...props,
|
|
99202
|
-
id: id2,
|
|
99203
|
-
open: true,
|
|
99204
|
-
onOpenChange: (open2) => {
|
|
99205
|
-
if (!open2) dismiss();
|
|
99206
|
-
}
|
|
99207
|
-
}
|
|
99208
|
-
});
|
|
99209
|
-
return {
|
|
99210
|
-
id: id2,
|
|
99211
|
-
dismiss,
|
|
99212
|
-
update
|
|
99213
|
-
};
|
|
99214
|
-
}
|
|
99215
|
-
function useToast() {
|
|
99216
|
-
const [state, setState] = React97__namespace.useState(memoryState);
|
|
99217
|
-
React97__namespace.useEffect(() => {
|
|
99218
|
-
listeners.push(setState);
|
|
99219
|
-
return () => {
|
|
99220
|
-
const index3 = listeners.indexOf(setState);
|
|
99221
|
-
if (index3 > -1) {
|
|
99222
|
-
listeners.splice(index3, 1);
|
|
99223
|
-
}
|
|
99224
|
-
};
|
|
99225
|
-
}, [state]);
|
|
99226
|
-
return {
|
|
99227
|
-
...state,
|
|
99228
|
-
toast,
|
|
99229
|
-
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
99230
|
-
};
|
|
99231
|
-
}
|
|
99232
|
-
|
|
99233
99233
|
// src/react-ui/components/ui/CodingQuestionUI.tsx
|
|
99234
99234
|
var languageMap = {
|
|
99235
99235
|
cpp: cpp2(),
|