@speakableio/core 1.0.7 → 1.0.8
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.native.d.mts +4 -16
- package/dist/index.native.d.ts +4 -16
- package/dist/index.native.js +15 -15
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +15 -15
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +4 -16
- package/dist/index.web.js +15 -15
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.web.d.mts
CHANGED
|
@@ -153,30 +153,16 @@ interface PageActivity {
|
|
|
153
153
|
max_attempts?: number;
|
|
154
154
|
rich_text?: string;
|
|
155
155
|
}
|
|
156
|
-
declare enum ActivityPageType {
|
|
156
|
+
declare const enum ActivityPageType {
|
|
157
157
|
READ_REPEAT = "READ_REPEAT",
|
|
158
|
-
VIDEO = "VIDEO",
|
|
159
|
-
TEXT = "TEXT",
|
|
160
158
|
READ_RESPOND = "READ_RESPOND",
|
|
161
159
|
FREE_RESPONSE = "FREE_RESPONSE",
|
|
162
160
|
REPEAT = "REPEAT",
|
|
163
161
|
RESPOND = "RESPOND",
|
|
164
162
|
RESPOND_WRITE = "RESPOND_WRITE",
|
|
165
|
-
TEXT_TO_SPEECH = "TEXT_TO_SPEECH",
|
|
166
163
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
167
|
-
PODCAST = "PODCAST",
|
|
168
164
|
MEDIA_PAGE = "MEDIA_PAGE",
|
|
169
|
-
|
|
170
|
-
SHORT_ANSWER = "SHORT_ANSWER",
|
|
171
|
-
SHORT_STORY = "SHORT_STORY",
|
|
172
|
-
SPEAK = "SPEAK",
|
|
173
|
-
CONVERSATION = "CONVERSATION",
|
|
174
|
-
CONVERSATION_WRITE = "CONVERSATION_WRITE",
|
|
175
|
-
DIALOGUE = "DIALOGUE",
|
|
176
|
-
INSTRUCTION = "INSTRUCTION",
|
|
177
|
-
LISTEN = "LISTEN",
|
|
178
|
-
READ = "READ",
|
|
179
|
-
ANSWER = "ANSWER"
|
|
165
|
+
SHORT_ANSWER = "SHORT_ANSWER"
|
|
180
166
|
}
|
|
181
167
|
declare const RESPOND_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
182
168
|
declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
@@ -386,6 +372,7 @@ declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) =>
|
|
|
386
372
|
isRepeat: boolean;
|
|
387
373
|
isMediaPage: boolean;
|
|
388
374
|
isShortAnswer: boolean;
|
|
375
|
+
hasSomeType: boolean;
|
|
389
376
|
};
|
|
390
377
|
|
|
391
378
|
declare function getPagePrompt(card: PageActivityWithId | undefined): {
|
|
@@ -585,6 +572,7 @@ interface PageScore {
|
|
|
585
572
|
}[];
|
|
586
573
|
target_proficiency_level?: string;
|
|
587
574
|
hint?: string[];
|
|
575
|
+
reviewed?: boolean;
|
|
588
576
|
}
|
|
589
577
|
|
|
590
578
|
declare enum AssignmentAnalyticsType {
|
package/dist/index.web.js
CHANGED
|
@@ -1625,28 +1625,14 @@ import { v4 } from "uuid";
|
|
|
1625
1625
|
// src/domains/cards/card.model.ts
|
|
1626
1626
|
var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
|
|
1627
1627
|
ActivityPageType2["READ_REPEAT"] = "READ_REPEAT";
|
|
1628
|
-
ActivityPageType2["VIDEO"] = "VIDEO";
|
|
1629
|
-
ActivityPageType2["TEXT"] = "TEXT";
|
|
1630
1628
|
ActivityPageType2["READ_RESPOND"] = "READ_RESPOND";
|
|
1631
1629
|
ActivityPageType2["FREE_RESPONSE"] = "FREE_RESPONSE";
|
|
1632
1630
|
ActivityPageType2["REPEAT"] = "REPEAT";
|
|
1633
1631
|
ActivityPageType2["RESPOND"] = "RESPOND";
|
|
1634
1632
|
ActivityPageType2["RESPOND_WRITE"] = "RESPOND_WRITE";
|
|
1635
|
-
ActivityPageType2["TEXT_TO_SPEECH"] = "TEXT_TO_SPEECH";
|
|
1636
1633
|
ActivityPageType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
1637
|
-
ActivityPageType2["PODCAST"] = "PODCAST";
|
|
1638
1634
|
ActivityPageType2["MEDIA_PAGE"] = "MEDIA_PAGE";
|
|
1639
|
-
ActivityPageType2["WRITE"] = "WRITE";
|
|
1640
1635
|
ActivityPageType2["SHORT_ANSWER"] = "SHORT_ANSWER";
|
|
1641
|
-
ActivityPageType2["SHORT_STORY"] = "SHORT_STORY";
|
|
1642
|
-
ActivityPageType2["SPEAK"] = "SPEAK";
|
|
1643
|
-
ActivityPageType2["CONVERSATION"] = "CONVERSATION";
|
|
1644
|
-
ActivityPageType2["CONVERSATION_WRITE"] = "CONVERSATION_WRITE";
|
|
1645
|
-
ActivityPageType2["DIALOGUE"] = "DIALOGUE";
|
|
1646
|
-
ActivityPageType2["INSTRUCTION"] = "INSTRUCTION";
|
|
1647
|
-
ActivityPageType2["LISTEN"] = "LISTEN";
|
|
1648
|
-
ActivityPageType2["READ"] = "READ";
|
|
1649
|
-
ActivityPageType2["ANSWER"] = "ANSWER";
|
|
1650
1636
|
return ActivityPageType2;
|
|
1651
1637
|
})(ActivityPageType || {});
|
|
1652
1638
|
var RESPOND_PAGE_ACTIVITY_TYPES = [
|
|
@@ -1887,6 +1873,19 @@ var checkTypePageActivity = (cardType) => {
|
|
|
1887
1873
|
const isRepeat = checkIsRepeatPage(cardType);
|
|
1888
1874
|
const isMediaPage = checkIsMediaPage(cardType);
|
|
1889
1875
|
const isShortAnswer = checkIsShortAnswerPage(cardType);
|
|
1876
|
+
const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer;
|
|
1877
|
+
if (isNoOneOfThem) {
|
|
1878
|
+
return {
|
|
1879
|
+
isRespondAudio: false,
|
|
1880
|
+
isRespondWritten: false,
|
|
1881
|
+
isRespond: false,
|
|
1882
|
+
isMC: false,
|
|
1883
|
+
isRepeat: true,
|
|
1884
|
+
isMediaPage: false,
|
|
1885
|
+
isShortAnswer: false,
|
|
1886
|
+
hasSomeType: false
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
1890
1889
|
return {
|
|
1891
1890
|
isRespondAudio,
|
|
1892
1891
|
isRespondWritten,
|
|
@@ -1894,7 +1893,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
1894
1893
|
isMC,
|
|
1895
1894
|
isRepeat,
|
|
1896
1895
|
isMediaPage,
|
|
1897
|
-
isShortAnswer
|
|
1896
|
+
isShortAnswer,
|
|
1897
|
+
hasSomeType: true
|
|
1898
1898
|
};
|
|
1899
1899
|
};
|
|
1900
1900
|
|