@speakableio/core 1.0.48 → 1.0.49
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 +5 -2
- package/dist/index.native.d.ts +5 -2
- package/dist/index.native.js +12 -3
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +12 -3
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +5 -2
- package/dist/index.web.js +12 -3
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -1604,6 +1604,7 @@ var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
|
|
|
1604
1604
|
ActivityPageType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
1605
1605
|
ActivityPageType2["MEDIA_PAGE"] = "MEDIA_PAGE";
|
|
1606
1606
|
ActivityPageType2["SHORT_ANSWER"] = "SHORT_ANSWER";
|
|
1607
|
+
ActivityPageType2["CONVERSATION"] = "CONVERSATION";
|
|
1607
1608
|
return ActivityPageType2;
|
|
1608
1609
|
})(ActivityPageType || {});
|
|
1609
1610
|
var RESPOND_PAGE_ACTIVITY_TYPES = [
|
|
@@ -1951,6 +1952,10 @@ var checkIsShortAnswerPage = (cardType) => {
|
|
|
1951
1952
|
if (cardType === void 0) return false;
|
|
1952
1953
|
return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
|
|
1953
1954
|
};
|
|
1955
|
+
var checkIsConversationPage = (cardType) => {
|
|
1956
|
+
if (cardType === void 0) return false;
|
|
1957
|
+
return cardType === "CONVERSATION" /* CONVERSATION */;
|
|
1958
|
+
};
|
|
1954
1959
|
var checkTypePageActivity = (cardType) => {
|
|
1955
1960
|
const isRespondAudio = checkIsRespondAudioPage(cardType);
|
|
1956
1961
|
const isRespondWritten = checkIsRespondWrittenPage(cardType);
|
|
@@ -1959,7 +1964,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
1959
1964
|
const isRepeat = checkIsRepeatPage(cardType);
|
|
1960
1965
|
const isMediaPage = checkIsMediaPage(cardType);
|
|
1961
1966
|
const isShortAnswer = checkIsShortAnswerPage(cardType);
|
|
1962
|
-
const
|
|
1967
|
+
const isConversation = checkIsConversationPage(cardType);
|
|
1968
|
+
const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer && !isConversation;
|
|
1963
1969
|
if (isNoOneOfThem) {
|
|
1964
1970
|
return {
|
|
1965
1971
|
isRespondAudio: false,
|
|
@@ -1969,7 +1975,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
1969
1975
|
isRepeat: true,
|
|
1970
1976
|
isMediaPage: false,
|
|
1971
1977
|
isShortAnswer: false,
|
|
1972
|
-
hasSomeType: false
|
|
1978
|
+
hasSomeType: false,
|
|
1979
|
+
isConversation: false
|
|
1973
1980
|
};
|
|
1974
1981
|
}
|
|
1975
1982
|
return {
|
|
@@ -1980,7 +1987,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
1980
1987
|
isRepeat,
|
|
1981
1988
|
isMediaPage,
|
|
1982
1989
|
isShortAnswer,
|
|
1983
|
-
hasSomeType: true
|
|
1990
|
+
hasSomeType: true,
|
|
1991
|
+
isConversation
|
|
1984
1992
|
};
|
|
1985
1993
|
};
|
|
1986
1994
|
|
|
@@ -3783,6 +3791,7 @@ export {
|
|
|
3783
3791
|
VerificationCardStatus,
|
|
3784
3792
|
assignmentQueryKeys,
|
|
3785
3793
|
cardsQueryKeys,
|
|
3794
|
+
checkIsConversationPage,
|
|
3786
3795
|
checkIsMCPage,
|
|
3787
3796
|
checkIsMediaPage,
|
|
3788
3797
|
checkIsRepeatPage,
|