@contractspec/module.learning-journey 3.7.6 → 3.7.10
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/README.md +65 -188
- package/dist/browser/contracts/index.js +148 -148
- package/dist/browser/contracts/models.js +1 -1
- package/dist/browser/contracts/onboarding.js +5 -5
- package/dist/browser/contracts/operations.js +4 -4
- package/dist/browser/engines/index.js +173 -173
- package/dist/browser/engines/xp.js +18 -18
- package/dist/browser/events.js +1 -1
- package/dist/browser/i18n/catalogs/index.js +18 -18
- package/dist/browser/i18n/index.js +26 -26
- package/dist/browser/i18n/locale.js +2 -2
- package/dist/browser/i18n/messages.js +18 -18
- package/dist/browser/index.js +336 -335
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +148 -148
- package/dist/contracts/models.js +1 -1
- package/dist/contracts/onboarding.js +5 -5
- package/dist/contracts/operations.js +4 -4
- package/dist/engines/index.d.ts +1 -1
- package/dist/engines/index.js +173 -173
- package/dist/engines/xp.js +18 -18
- package/dist/events.js +1 -1
- package/dist/i18n/catalogs/index.d.ts +1 -1
- package/dist/i18n/catalogs/index.js +18 -18
- package/dist/i18n/index.d.ts +7 -7
- package/dist/i18n/index.js +26 -26
- package/dist/i18n/locale.d.ts +1 -1
- package/dist/i18n/locale.js +2 -2
- package/dist/i18n/messages.js +18 -18
- package/dist/index.d.ts +3 -3
- package/dist/index.js +336 -335
- package/dist/node/contracts/index.js +148 -148
- package/dist/node/contracts/models.js +1 -1
- package/dist/node/contracts/onboarding.js +5 -5
- package/dist/node/contracts/operations.js +4 -4
- package/dist/node/engines/index.js +173 -173
- package/dist/node/engines/xp.js +18 -18
- package/dist/node/events.js +1 -1
- package/dist/node/i18n/catalogs/index.js +18 -18
- package/dist/node/i18n/index.js +26 -26
- package/dist/node/i18n/locale.js +2 -2
- package/dist/node/i18n/messages.js +18 -18
- package/dist/node/index.js +336 -335
- package/package.json +7 -7
package/dist/i18n/index.js
CHANGED
|
@@ -40,18 +40,18 @@ var enMessages = defineTranslation({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
// src/i18n/catalogs/
|
|
43
|
+
// src/i18n/catalogs/es.ts
|
|
44
44
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
45
|
-
var
|
|
45
|
+
var esMessages = defineTranslation2({
|
|
46
46
|
meta: {
|
|
47
47
|
key: "learning-journey.messages",
|
|
48
48
|
version: "1.0.0",
|
|
49
49
|
domain: "learning-journey",
|
|
50
|
-
description: "XP source labels (
|
|
50
|
+
description: "XP source labels (Spanish)",
|
|
51
51
|
owners: ["platform"],
|
|
52
52
|
stability: "experimental"
|
|
53
53
|
},
|
|
54
|
-
locale: "
|
|
54
|
+
locale: "es",
|
|
55
55
|
fallback: "en",
|
|
56
56
|
messages: {
|
|
57
57
|
"xp.source.base": {
|
|
@@ -59,40 +59,40 @@ var frMessages = defineTranslation2({
|
|
|
59
59
|
description: "XP breakdown label for base XP"
|
|
60
60
|
},
|
|
61
61
|
"xp.source.scoreBonus": {
|
|
62
|
-
value: "
|
|
62
|
+
value: "Bonificaci\xF3n por puntuaci\xF3n",
|
|
63
63
|
description: "XP breakdown label for score-based bonus"
|
|
64
64
|
},
|
|
65
65
|
"xp.source.perfectScore": {
|
|
66
|
-
value: "
|
|
66
|
+
value: "Puntuaci\xF3n perfecta",
|
|
67
67
|
description: "XP breakdown label for perfect score bonus"
|
|
68
68
|
},
|
|
69
69
|
"xp.source.firstAttempt": {
|
|
70
|
-
value: "
|
|
70
|
+
value: "Primer intento",
|
|
71
71
|
description: "XP breakdown label for first attempt bonus"
|
|
72
72
|
},
|
|
73
73
|
"xp.source.retryPenalty": {
|
|
74
|
-
value: "
|
|
74
|
+
value: "Penalizaci\xF3n por reintento",
|
|
75
75
|
description: "XP breakdown label for retry penalty"
|
|
76
76
|
},
|
|
77
77
|
"xp.source.streakBonus": {
|
|
78
|
-
value: "
|
|
78
|
+
value: "Bonificaci\xF3n por racha",
|
|
79
79
|
description: "XP breakdown label for streak bonus"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// src/i18n/catalogs/
|
|
84
|
+
// src/i18n/catalogs/fr.ts
|
|
85
85
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
86
|
-
var
|
|
86
|
+
var frMessages = defineTranslation3({
|
|
87
87
|
meta: {
|
|
88
88
|
key: "learning-journey.messages",
|
|
89
89
|
version: "1.0.0",
|
|
90
90
|
domain: "learning-journey",
|
|
91
|
-
description: "XP source labels (
|
|
91
|
+
description: "XP source labels (French)",
|
|
92
92
|
owners: ["platform"],
|
|
93
93
|
stability: "experimental"
|
|
94
94
|
},
|
|
95
|
-
locale: "
|
|
95
|
+
locale: "fr",
|
|
96
96
|
fallback: "en",
|
|
97
97
|
messages: {
|
|
98
98
|
"xp.source.base": {
|
|
@@ -100,23 +100,23 @@ var esMessages = defineTranslation3({
|
|
|
100
100
|
description: "XP breakdown label for base XP"
|
|
101
101
|
},
|
|
102
102
|
"xp.source.scoreBonus": {
|
|
103
|
-
value: "
|
|
103
|
+
value: "Bonus de score",
|
|
104
104
|
description: "XP breakdown label for score-based bonus"
|
|
105
105
|
},
|
|
106
106
|
"xp.source.perfectScore": {
|
|
107
|
-
value: "
|
|
107
|
+
value: "Score parfait",
|
|
108
108
|
description: "XP breakdown label for perfect score bonus"
|
|
109
109
|
},
|
|
110
110
|
"xp.source.firstAttempt": {
|
|
111
|
-
value: "
|
|
111
|
+
value: "Premier essai",
|
|
112
112
|
description: "XP breakdown label for first attempt bonus"
|
|
113
113
|
},
|
|
114
114
|
"xp.source.retryPenalty": {
|
|
115
|
-
value: "
|
|
115
|
+
value: "P\xE9nalit\xE9 de r\xE9essai",
|
|
116
116
|
description: "XP breakdown label for retry penalty"
|
|
117
117
|
},
|
|
118
118
|
"xp.source.streakBonus": {
|
|
119
|
-
value: "
|
|
119
|
+
value: "Bonus de s\xE9rie",
|
|
120
120
|
description: "XP breakdown label for streak bonus"
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -134,14 +134,6 @@ var createLearningJourneyI18n = factory.create;
|
|
|
134
134
|
var getDefaultI18n = factory.getDefault;
|
|
135
135
|
var resetI18nRegistry = factory.resetRegistry;
|
|
136
136
|
|
|
137
|
-
// src/i18n/locale.ts
|
|
138
|
-
import {
|
|
139
|
-
DEFAULT_LOCALE,
|
|
140
|
-
SUPPORTED_LOCALES,
|
|
141
|
-
resolveLocale,
|
|
142
|
-
isSupportedLocale
|
|
143
|
-
} from "@contractspec/lib.contracts-spec/translations";
|
|
144
|
-
|
|
145
137
|
// src/i18n/keys.ts
|
|
146
138
|
var XP_SOURCE_KEYS = {
|
|
147
139
|
"xp.source.base": "xp.source.base",
|
|
@@ -154,6 +146,14 @@ var XP_SOURCE_KEYS = {
|
|
|
154
146
|
var I18N_KEYS = {
|
|
155
147
|
...XP_SOURCE_KEYS
|
|
156
148
|
};
|
|
149
|
+
|
|
150
|
+
// src/i18n/locale.ts
|
|
151
|
+
import {
|
|
152
|
+
DEFAULT_LOCALE,
|
|
153
|
+
isSupportedLocale,
|
|
154
|
+
resolveLocale,
|
|
155
|
+
SUPPORTED_LOCALES
|
|
156
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
157
157
|
export {
|
|
158
158
|
resolveLocale,
|
|
159
159
|
resetI18nRegistry,
|
package/dist/i18n/locale.d.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module i18n/locale
|
|
7
7
|
*/
|
|
8
|
-
export { DEFAULT_LOCALE,
|
|
8
|
+
export { DEFAULT_LOCALE, isSupportedLocale, resolveLocale, SUPPORTED_LOCALES, type SupportedLocale, } from '@contractspec/lib.contracts-spec/translations';
|
package/dist/i18n/locale.js
CHANGED
package/dist/i18n/messages.js
CHANGED
|
@@ -40,18 +40,18 @@ var enMessages = defineTranslation({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
// src/i18n/catalogs/
|
|
43
|
+
// src/i18n/catalogs/es.ts
|
|
44
44
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
45
|
-
var
|
|
45
|
+
var esMessages = defineTranslation2({
|
|
46
46
|
meta: {
|
|
47
47
|
key: "learning-journey.messages",
|
|
48
48
|
version: "1.0.0",
|
|
49
49
|
domain: "learning-journey",
|
|
50
|
-
description: "XP source labels (
|
|
50
|
+
description: "XP source labels (Spanish)",
|
|
51
51
|
owners: ["platform"],
|
|
52
52
|
stability: "experimental"
|
|
53
53
|
},
|
|
54
|
-
locale: "
|
|
54
|
+
locale: "es",
|
|
55
55
|
fallback: "en",
|
|
56
56
|
messages: {
|
|
57
57
|
"xp.source.base": {
|
|
@@ -59,40 +59,40 @@ var frMessages = defineTranslation2({
|
|
|
59
59
|
description: "XP breakdown label for base XP"
|
|
60
60
|
},
|
|
61
61
|
"xp.source.scoreBonus": {
|
|
62
|
-
value: "
|
|
62
|
+
value: "Bonificaci\xF3n por puntuaci\xF3n",
|
|
63
63
|
description: "XP breakdown label for score-based bonus"
|
|
64
64
|
},
|
|
65
65
|
"xp.source.perfectScore": {
|
|
66
|
-
value: "
|
|
66
|
+
value: "Puntuaci\xF3n perfecta",
|
|
67
67
|
description: "XP breakdown label for perfect score bonus"
|
|
68
68
|
},
|
|
69
69
|
"xp.source.firstAttempt": {
|
|
70
|
-
value: "
|
|
70
|
+
value: "Primer intento",
|
|
71
71
|
description: "XP breakdown label for first attempt bonus"
|
|
72
72
|
},
|
|
73
73
|
"xp.source.retryPenalty": {
|
|
74
|
-
value: "
|
|
74
|
+
value: "Penalizaci\xF3n por reintento",
|
|
75
75
|
description: "XP breakdown label for retry penalty"
|
|
76
76
|
},
|
|
77
77
|
"xp.source.streakBonus": {
|
|
78
|
-
value: "
|
|
78
|
+
value: "Bonificaci\xF3n por racha",
|
|
79
79
|
description: "XP breakdown label for streak bonus"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// src/i18n/catalogs/
|
|
84
|
+
// src/i18n/catalogs/fr.ts
|
|
85
85
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
86
|
-
var
|
|
86
|
+
var frMessages = defineTranslation3({
|
|
87
87
|
meta: {
|
|
88
88
|
key: "learning-journey.messages",
|
|
89
89
|
version: "1.0.0",
|
|
90
90
|
domain: "learning-journey",
|
|
91
|
-
description: "XP source labels (
|
|
91
|
+
description: "XP source labels (French)",
|
|
92
92
|
owners: ["platform"],
|
|
93
93
|
stability: "experimental"
|
|
94
94
|
},
|
|
95
|
-
locale: "
|
|
95
|
+
locale: "fr",
|
|
96
96
|
fallback: "en",
|
|
97
97
|
messages: {
|
|
98
98
|
"xp.source.base": {
|
|
@@ -100,23 +100,23 @@ var esMessages = defineTranslation3({
|
|
|
100
100
|
description: "XP breakdown label for base XP"
|
|
101
101
|
},
|
|
102
102
|
"xp.source.scoreBonus": {
|
|
103
|
-
value: "
|
|
103
|
+
value: "Bonus de score",
|
|
104
104
|
description: "XP breakdown label for score-based bonus"
|
|
105
105
|
},
|
|
106
106
|
"xp.source.perfectScore": {
|
|
107
|
-
value: "
|
|
107
|
+
value: "Score parfait",
|
|
108
108
|
description: "XP breakdown label for perfect score bonus"
|
|
109
109
|
},
|
|
110
110
|
"xp.source.firstAttempt": {
|
|
111
|
-
value: "
|
|
111
|
+
value: "Premier essai",
|
|
112
112
|
description: "XP breakdown label for first attempt bonus"
|
|
113
113
|
},
|
|
114
114
|
"xp.source.retryPenalty": {
|
|
115
|
-
value: "
|
|
115
|
+
value: "P\xE9nalit\xE9 de r\xE9essai",
|
|
116
116
|
description: "XP breakdown label for retry penalty"
|
|
117
117
|
},
|
|
118
118
|
"xp.source.streakBonus": {
|
|
119
|
-
value: "
|
|
119
|
+
value: "Bonus de s\xE9rie",
|
|
120
120
|
description: "XP breakdown label for streak bonus"
|
|
121
121
|
}
|
|
122
122
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './entities';
|
|
2
1
|
export * from './contracts';
|
|
3
|
-
export * from './events';
|
|
4
2
|
export * from './engines';
|
|
5
|
-
export * from './
|
|
3
|
+
export * from './entities';
|
|
4
|
+
export * from './events';
|
|
6
5
|
export * from './learning-journey.feature';
|
|
6
|
+
export * from './track-spec';
|
|
7
7
|
import './docs';
|