@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.native.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.native.d.ts
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.native.js
CHANGED
|
@@ -2063,6 +2063,12 @@ var labels = {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
};
|
|
2065
2065
|
var getLabelPage = (pageType) => {
|
|
2066
|
+
if (!pageType) {
|
|
2067
|
+
return {
|
|
2068
|
+
short: "",
|
|
2069
|
+
long: ""
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2066
2072
|
const { isRepeat, isMC, isMediaPage, isShortAnswer, isRespondWritten, isRespondAudio } = checkTypePageActivity(pageType);
|
|
2067
2073
|
if (isRepeat) {
|
|
2068
2074
|
return labels.repeat;
|
|
@@ -2083,8 +2089,8 @@ var getLabelPage = (pageType) => {
|
|
|
2083
2089
|
return labels.respondAudio;
|
|
2084
2090
|
}
|
|
2085
2091
|
return {
|
|
2086
|
-
short: "
|
|
2087
|
-
long: "
|
|
2092
|
+
short: "",
|
|
2093
|
+
long: ""
|
|
2088
2094
|
};
|
|
2089
2095
|
};
|
|
2090
2096
|
|