@speakableio/core 1.0.6 → 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 +15 -16
- package/dist/index.native.d.ts +15 -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 +15 -16
- package/dist/index.web.js +15 -15
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
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
|
|