@speakableio/core 0.1.84 → 0.1.85
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 +1 -1
- package/dist/index.native.d.ts +1 -1
- package/dist/index.native.js +8 -2
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +8 -2
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +1 -1
- package/dist/index.web.js +8 -2
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.web.d.mts
CHANGED
|
@@ -386,7 +386,7 @@ declare function getPagePrompt(card: PageActivityWithId | undefined): {
|
|
|
386
386
|
|
|
387
387
|
declare const getTotalCompletedCards: (pageScores: Score["cards"] | undefined) => number;
|
|
388
388
|
|
|
389
|
-
declare const getLabelPage: (pageType: ActivityPageType) => {
|
|
389
|
+
declare const getLabelPage: (pageType: ActivityPageType | undefined) => {
|
|
390
390
|
short: string;
|
|
391
391
|
long: string;
|
|
392
392
|
};
|
package/dist/index.web.js
CHANGED
|
@@ -1958,6 +1958,12 @@ var labels = {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
};
|
|
1960
1960
|
var getLabelPage = (pageType) => {
|
|
1961
|
+
if (!pageType) {
|
|
1962
|
+
return {
|
|
1963
|
+
short: "",
|
|
1964
|
+
long: ""
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1961
1967
|
const { isRepeat, isMC, isMediaPage, isShortAnswer, isRespondWritten, isRespondAudio } = checkTypePageActivity(pageType);
|
|
1962
1968
|
if (isRepeat) {
|
|
1963
1969
|
return labels.repeat;
|
|
@@ -1978,8 +1984,8 @@ var getLabelPage = (pageType) => {
|
|
|
1978
1984
|
return labels.respondAudio;
|
|
1979
1985
|
}
|
|
1980
1986
|
return {
|
|
1981
|
-
short: "
|
|
1982
|
-
long: "
|
|
1987
|
+
short: "",
|
|
1988
|
+
long: ""
|
|
1983
1989
|
};
|
|
1984
1990
|
};
|
|
1985
1991
|
|