@thanh01.pmt/interactive-quiz-kit 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/authoring.cjs +8 -5
- package/dist/authoring.mjs +8 -5
- package/dist/index.cjs +8 -5
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +8 -5
- package/dist/react-ui.cjs +8 -5
- package/dist/react-ui.mjs +8 -5
- package/package.json +1 -1
package/dist/authoring.cjs
CHANGED
|
@@ -4077,6 +4077,14 @@ var PracticeHistoryService = class {
|
|
|
4077
4077
|
}
|
|
4078
4078
|
static getPracticeStats() {
|
|
4079
4079
|
const history2 = this.getPracticeHistory();
|
|
4080
|
+
return this.calculateStatsFromHistory(history2);
|
|
4081
|
+
}
|
|
4082
|
+
static clearHistory() {
|
|
4083
|
+
if (typeof window !== "undefined") {
|
|
4084
|
+
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
4085
|
+
}
|
|
4086
|
+
}
|
|
4087
|
+
static calculateStatsFromHistory(history2) {
|
|
4080
4088
|
if (history2.length === 0) {
|
|
4081
4089
|
return {
|
|
4082
4090
|
totalSessions: 0,
|
|
@@ -4185,11 +4193,6 @@ var PracticeHistoryService = class {
|
|
|
4185
4193
|
performanceByTopic: formatPerf(topicPerf)
|
|
4186
4194
|
};
|
|
4187
4195
|
}
|
|
4188
|
-
static clearHistory() {
|
|
4189
|
-
if (typeof window !== "undefined") {
|
|
4190
|
-
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
4191
|
-
}
|
|
4192
|
-
}
|
|
4193
4196
|
};
|
|
4194
4197
|
// NEW: A static property to hold the injected sync provider
|
|
4195
4198
|
PracticeHistoryService.syncProvider = null;
|
package/dist/authoring.mjs
CHANGED
|
@@ -4051,6 +4051,14 @@ var PracticeHistoryService = class {
|
|
|
4051
4051
|
}
|
|
4052
4052
|
static getPracticeStats() {
|
|
4053
4053
|
const history2 = this.getPracticeHistory();
|
|
4054
|
+
return this.calculateStatsFromHistory(history2);
|
|
4055
|
+
}
|
|
4056
|
+
static clearHistory() {
|
|
4057
|
+
if (typeof window !== "undefined") {
|
|
4058
|
+
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
static calculateStatsFromHistory(history2) {
|
|
4054
4062
|
if (history2.length === 0) {
|
|
4055
4063
|
return {
|
|
4056
4064
|
totalSessions: 0,
|
|
@@ -4159,11 +4167,6 @@ var PracticeHistoryService = class {
|
|
|
4159
4167
|
performanceByTopic: formatPerf(topicPerf)
|
|
4160
4168
|
};
|
|
4161
4169
|
}
|
|
4162
|
-
static clearHistory() {
|
|
4163
|
-
if (typeof window !== "undefined") {
|
|
4164
|
-
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
4165
|
-
}
|
|
4166
|
-
}
|
|
4167
4170
|
};
|
|
4168
4171
|
// NEW: A static property to hold the injected sync provider
|
|
4169
4172
|
PracticeHistoryService.syncProvider = null;
|
package/dist/index.cjs
CHANGED
|
@@ -2043,6 +2043,14 @@ var PracticeHistoryService = class {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
static getPracticeStats() {
|
|
2045
2045
|
const history = this.getPracticeHistory();
|
|
2046
|
+
return this.calculateStatsFromHistory(history);
|
|
2047
|
+
}
|
|
2048
|
+
static clearHistory() {
|
|
2049
|
+
if (typeof window !== "undefined") {
|
|
2050
|
+
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
static calculateStatsFromHistory(history) {
|
|
2046
2054
|
if (history.length === 0) {
|
|
2047
2055
|
return {
|
|
2048
2056
|
totalSessions: 0,
|
|
@@ -2151,11 +2159,6 @@ var PracticeHistoryService = class {
|
|
|
2151
2159
|
performanceByTopic: formatPerf(topicPerf)
|
|
2152
2160
|
};
|
|
2153
2161
|
}
|
|
2154
|
-
static clearHistory() {
|
|
2155
|
-
if (typeof window !== "undefined") {
|
|
2156
|
-
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
2162
|
};
|
|
2160
2163
|
// NEW: A static property to hold the injected sync provider
|
|
2161
2164
|
PracticeHistoryService.syncProvider = null;
|
package/dist/index.d.cts
CHANGED
|
@@ -246,6 +246,7 @@ declare class PracticeHistoryService {
|
|
|
246
246
|
static getPracticeHistorySummary(): PracticeSessionSummary[];
|
|
247
247
|
static getPracticeStats(): PracticeStats;
|
|
248
248
|
static clearHistory(): void;
|
|
249
|
+
static calculateStatsFromHistory(history: PracticeSession[]): PracticeStats;
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
declare class AchievementService {
|
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,7 @@ declare class PracticeHistoryService {
|
|
|
246
246
|
static getPracticeHistorySummary(): PracticeSessionSummary[];
|
|
247
247
|
static getPracticeStats(): PracticeStats;
|
|
248
248
|
static clearHistory(): void;
|
|
249
|
+
static calculateStatsFromHistory(history: PracticeSession[]): PracticeStats;
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
declare class AchievementService {
|
package/dist/index.mjs
CHANGED
|
@@ -2037,6 +2037,14 @@ var PracticeHistoryService = class {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
static getPracticeStats() {
|
|
2039
2039
|
const history = this.getPracticeHistory();
|
|
2040
|
+
return this.calculateStatsFromHistory(history);
|
|
2041
|
+
}
|
|
2042
|
+
static clearHistory() {
|
|
2043
|
+
if (typeof window !== "undefined") {
|
|
2044
|
+
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
static calculateStatsFromHistory(history) {
|
|
2040
2048
|
if (history.length === 0) {
|
|
2041
2049
|
return {
|
|
2042
2050
|
totalSessions: 0,
|
|
@@ -2145,11 +2153,6 @@ var PracticeHistoryService = class {
|
|
|
2145
2153
|
performanceByTopic: formatPerf(topicPerf)
|
|
2146
2154
|
};
|
|
2147
2155
|
}
|
|
2148
|
-
static clearHistory() {
|
|
2149
|
-
if (typeof window !== "undefined") {
|
|
2150
|
-
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
2156
|
};
|
|
2154
2157
|
// NEW: A static property to hold the injected sync provider
|
|
2155
2158
|
PracticeHistoryService.syncProvider = null;
|
package/dist/react-ui.cjs
CHANGED
|
@@ -139667,6 +139667,14 @@ var PracticeHistoryService = class {
|
|
|
139667
139667
|
}
|
|
139668
139668
|
static getPracticeStats() {
|
|
139669
139669
|
const history2 = this.getPracticeHistory();
|
|
139670
|
+
return this.calculateStatsFromHistory(history2);
|
|
139671
|
+
}
|
|
139672
|
+
static clearHistory() {
|
|
139673
|
+
if (typeof window !== "undefined") {
|
|
139674
|
+
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
139675
|
+
}
|
|
139676
|
+
}
|
|
139677
|
+
static calculateStatsFromHistory(history2) {
|
|
139670
139678
|
if (history2.length === 0) {
|
|
139671
139679
|
return {
|
|
139672
139680
|
totalSessions: 0,
|
|
@@ -139775,11 +139783,6 @@ var PracticeHistoryService = class {
|
|
|
139775
139783
|
performanceByTopic: formatPerf(topicPerf)
|
|
139776
139784
|
};
|
|
139777
139785
|
}
|
|
139778
|
-
static clearHistory() {
|
|
139779
|
-
if (typeof window !== "undefined") {
|
|
139780
|
-
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
139781
|
-
}
|
|
139782
|
-
}
|
|
139783
139786
|
};
|
|
139784
139787
|
// NEW: A static property to hold the injected sync provider
|
|
139785
139788
|
PracticeHistoryService.syncProvider = null;
|
package/dist/react-ui.mjs
CHANGED
|
@@ -139640,6 +139640,14 @@ var PracticeHistoryService = class {
|
|
|
139640
139640
|
}
|
|
139641
139641
|
static getPracticeStats() {
|
|
139642
139642
|
const history2 = this.getPracticeHistory();
|
|
139643
|
+
return this.calculateStatsFromHistory(history2);
|
|
139644
|
+
}
|
|
139645
|
+
static clearHistory() {
|
|
139646
|
+
if (typeof window !== "undefined") {
|
|
139647
|
+
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
139648
|
+
}
|
|
139649
|
+
}
|
|
139650
|
+
static calculateStatsFromHistory(history2) {
|
|
139643
139651
|
if (history2.length === 0) {
|
|
139644
139652
|
return {
|
|
139645
139653
|
totalSessions: 0,
|
|
@@ -139748,11 +139756,6 @@ var PracticeHistoryService = class {
|
|
|
139748
139756
|
performanceByTopic: formatPerf(topicPerf)
|
|
139749
139757
|
};
|
|
139750
139758
|
}
|
|
139751
|
-
static clearHistory() {
|
|
139752
|
-
if (typeof window !== "undefined") {
|
|
139753
|
-
localStorage.removeItem(LOCAL_STORAGE_KEY);
|
|
139754
|
-
}
|
|
139755
|
-
}
|
|
139756
139759
|
};
|
|
139757
139760
|
// NEW: A static property to hold the injected sync provider
|
|
139758
139761
|
PracticeHistoryService.syncProvider = null;
|
package/package.json
CHANGED