@iblai/iblai-js 2.62.0 → 2.62.2
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/web-containers/source/_virtual/index2.js +2 -2
- package/dist/web-containers/source/_virtual/index3.js +2 -2
- package/dist/web-containers/source/add-resource-modal.js +3 -2
- package/dist/web-containers/source/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/analytics/analytics-audit-log-stats.js +4 -1
- package/dist/web-containers/source/analytics/analytics-audit-log-stats.js.map +1 -1
- package/dist/web-containers/source/analytics/analytics-financial-stats.js +1 -0
- package/dist/web-containers/source/analytics/analytics-financial-stats.js.map +1 -1
- package/dist/web-containers/source/analytics/analytics-transcripts-stats.js +23 -8
- package/dist/web-containers/source/analytics/analytics-transcripts-stats.js.map +1 -1
- package/dist/web-containers/source/analytics/analytics-users-stats.js +3 -1
- package/dist/web-containers/source/analytics/analytics-users-stats.js.map +1 -1
- package/dist/web-containers/source/analytics/lti-user-tooltip.js +18 -0
- package/dist/web-containers/source/analytics/lti-user-tooltip.js.map +1 -0
- package/dist/web-containers/source/analytics/use-memory.js +15 -12
- package/dist/web-containers/source/analytics/use-memory.js.map +1 -1
- package/dist/web-containers/source/analytics/user-filter-select.js +28 -6
- package/dist/web-containers/source/analytics/user-filter-select.js.map +1 -1
- package/dist/web-containers/source/analytics-audit-log-stats.js +4 -1
- package/dist/web-containers/source/analytics-audit-log-stats.js.map +1 -1
- package/dist/web-containers/source/analytics-financial-stats.js +1 -0
- package/dist/web-containers/source/analytics-financial-stats.js.map +1 -1
- package/dist/web-containers/source/analytics-transcripts-stats.js +23 -8
- package/dist/web-containers/source/analytics-transcripts-stats.js.map +1 -1
- package/dist/web-containers/source/analytics-users-stats.js +3 -1
- package/dist/web-containers/source/analytics-users-stats.js.map +1 -1
- package/dist/web-containers/source/components/analytics/analytics-audit-log-stats.js +4 -1
- package/dist/web-containers/source/components/analytics/analytics-audit-log-stats.js.map +1 -1
- package/dist/web-containers/source/components/analytics/analytics-financial-stats.js +1 -0
- package/dist/web-containers/source/components/analytics/analytics-financial-stats.js.map +1 -1
- package/dist/web-containers/source/components/analytics/analytics-transcripts-stats.js +23 -8
- package/dist/web-containers/source/components/analytics/analytics-transcripts-stats.js.map +1 -1
- package/dist/web-containers/source/components/analytics/analytics-users-stats.js +3 -1
- package/dist/web-containers/source/components/analytics/analytics-users-stats.js.map +1 -1
- package/dist/web-containers/source/components/analytics/lti-user-tooltip.js +18 -0
- package/dist/web-containers/source/components/analytics/lti-user-tooltip.js.map +1 -0
- package/dist/web-containers/source/components/analytics/use-memory.js +15 -12
- package/dist/web-containers/source/components/analytics/use-memory.js.map +1 -1
- package/dist/web-containers/source/components/analytics/user-filter-select.js +28 -6
- package/dist/web-containers/source/components/analytics/user-filter-select.js.map +1 -1
- package/dist/web-containers/source/components/hooks/use-google-drive-picker.js +158 -54
- package/dist/web-containers/source/components/hooks/use-google-drive-picker.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab/labels.js +2 -0
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab/labels.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab.js +20 -15
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab.js.map +1 -1
- package/dist/web-containers/source/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab/labels.js +2 -0
- package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab/labels.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab.js +20 -15
- package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab.js.map +1 -1
- package/dist/web-containers/source/en.json.js +10 -3
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +10 -3
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +10 -3
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/history-tab/labels.js +2 -0
- package/dist/web-containers/source/history-tab/labels.js.map +1 -1
- package/dist/web-containers/source/history-tab.js +20 -15
- package/dist/web-containers/source/history-tab.js.map +1 -1
- package/dist/web-containers/source/hooks/use-google-drive-picker.js +158 -54
- package/dist/web-containers/source/hooks/use-google-drive-picker.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +10 -3
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +10 -3
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +10 -3
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +10 -3
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/index2.js +2 -2
- package/dist/web-containers/source/index3.js +2 -2
- package/dist/web-containers/source/lib/user-identity.js +54 -13
- package/dist/web-containers/source/lib/user-identity.js.map +1 -1
- package/dist/web-containers/source/lti-user-tooltip.js +18 -0
- package/dist/web-containers/source/lti-user-tooltip.js.map +1 -0
- package/dist/web-containers/source/messages/en.json.js +10 -3
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +10 -3
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +10 -3
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +10 -3
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab/labels.js +2 -0
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab/labels.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab.js +20 -15
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab.js.map +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/web-containers/source/tabs/datasets-tab/add-resource-modal.js +3 -2
- package/dist/web-containers/source/tabs/datasets-tab/add-resource-modal.js.map +1 -1
- package/dist/web-containers/source/tabs/history-tab/labels.js +2 -0
- package/dist/web-containers/source/tabs/history-tab/labels.js.map +1 -1
- package/dist/web-containers/source/tabs/history-tab.js +20 -15
- package/dist/web-containers/source/tabs/history-tab.js.map +1 -1
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/use-google-drive-picker.js +158 -54
- package/dist/web-containers/source/use-google-drive-picker.js.map +1 -1
- package/dist/web-containers/source/use-memory.js +15 -12
- package/dist/web-containers/source/use-memory.js.map +1 -1
- package/dist/web-containers/source/user-filter-select.js +28 -6
- package/dist/web-containers/source/user-filter-select.js.map +1 -1
- package/dist/web-containers/source/user-identity.js +54 -13
- package/dist/web-containers/source/user-identity.js.map +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +10 -3
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +3 -3
|
@@ -29,8 +29,7 @@ const identityKey = (value) => (value !== null && value !== void 0 ? value : '')
|
|
|
29
29
|
* Many payloads fill the name field with the username ("conradmugabe" →
|
|
30
30
|
* "Conrad Mugabe", "fayyaz_4_ibleducation_com"), which tells an admin nothing
|
|
31
31
|
* the email does not. A name that matches none of the usernames on the record
|
|
32
|
-
* is the most recognisable thing on it
|
|
33
|
-
* minted `<opaque-id>@edx-lti-1p3.com` address and username identify nobody.
|
|
32
|
+
* is the most recognisable thing on it.
|
|
34
33
|
*/
|
|
35
34
|
function hasDistinctName(name, ...usernames) {
|
|
36
35
|
const key = identityKey(name);
|
|
@@ -39,6 +38,19 @@ function hasDistinctName(name, ...usernames) {
|
|
|
39
38
|
return usernames.every((username) => key !== identityKey(username));
|
|
40
39
|
}
|
|
41
40
|
const DEFAULT_ANONYMOUS_LABEL = 'Anonymous';
|
|
41
|
+
const DEFAULT_LTI_USER_LABEL = 'LTI User';
|
|
42
|
+
/**
|
|
43
|
+
* The address edX mints for an LTI 1.3 launch that carried no email claim
|
|
44
|
+
* (`LTI_EMAIL_SUFFIX` in the backend's `core/models/users.py`). The backend
|
|
45
|
+
* already swaps in the real address when the LMS sent one, so a placeholder
|
|
46
|
+
* that reaches a client means the LMS provided nothing: it names nobody, and
|
|
47
|
+
* neither does the username minted beside it (the same opaque id). Both are
|
|
48
|
+
* treated as absent, so such a learner reads as the LTI-user label unless the
|
|
49
|
+
* launch carried a real name; the address itself is handed back as
|
|
50
|
+
* `ltiPlaceholderEmail` for a hover hint.
|
|
51
|
+
*/
|
|
52
|
+
const LTI_PLACEHOLDER_EMAIL_SUFFIX = '@edx-lti-1p3.com';
|
|
53
|
+
const isLtiPlaceholderEmail = (value) => value.trim().toLowerCase().endsWith(LTI_PLACEHOLDER_EMAIL_SUFFIX);
|
|
42
54
|
/** Values backends emit instead of "nothing". Compared case-insensitively. */
|
|
43
55
|
const PLACEHOLDERS = new Set([
|
|
44
56
|
'',
|
|
@@ -97,7 +109,9 @@ const nested = (source) => source.user && typeof source.user === 'object' ? sour
|
|
|
97
109
|
* - `profileUsername`: the first *platform* username (never an LTI claim).
|
|
98
110
|
*
|
|
99
111
|
* A string source is treated as an email when it looks like one, else as a
|
|
100
|
-
* username. Placeholder strings ("None", "-", "anonymous"…) count as absent
|
|
112
|
+
* username. Placeholder strings ("None", "-", "anonymous"…) count as absent,
|
|
113
|
+
* and so do the address and username edX mints for an LTI launch with no email
|
|
114
|
+
* claim (see {@link isLtiPlaceholderEmail}).
|
|
101
115
|
*
|
|
102
116
|
* The default order flips to name → email → username when the record carries a
|
|
103
117
|
* real name (see {@link hasDistinctName}): "Joseph Oti" is more use to an admin
|
|
@@ -107,19 +121,44 @@ const nested = (source) => source.user && typeof source.user === 'object' ? sour
|
|
|
107
121
|
function resolveUserIdentity(source, options = {}) {
|
|
108
122
|
var _a, _b;
|
|
109
123
|
const anonymousLabel = options.anonymousLabel || DEFAULT_ANONYMOUS_LABEL;
|
|
124
|
+
const ltiUserLabel = options.ltiUserLabel || DEFAULT_LTI_USER_LABEL;
|
|
110
125
|
const order = ((_a = options.order) === null || _a === void 0 ? void 0 : _a.length) ? options.order : DEFAULT_USER_IDENTITY_ORDER;
|
|
111
126
|
const record = source && typeof source === 'object' ? source : { user: source !== null && source !== void 0 ? source : null };
|
|
112
127
|
const inner = nested(record);
|
|
128
|
+
const emailCandidates = [
|
|
129
|
+
record.lti_email,
|
|
130
|
+
record.email,
|
|
131
|
+
record.user_email,
|
|
132
|
+
inner === null || inner === void 0 ? void 0 : inner.lti_email,
|
|
133
|
+
inner === null || inner === void 0 ? void 0 : inner.email,
|
|
134
|
+
inner === null || inner === void 0 ? void 0 : inner.user_email,
|
|
135
|
+
];
|
|
136
|
+
const bareRaw = typeof record.user === 'string' ? clean(record.user) : undefined;
|
|
137
|
+
const placeholder = [...emailCandidates, bareRaw]
|
|
138
|
+
.map(clean)
|
|
139
|
+
.find((value) => value && isLtiPlaceholderEmail(value));
|
|
140
|
+
const mintedId = placeholder ? identityKey(placeholder.slice(0, placeholder.indexOf('@'))) : '';
|
|
141
|
+
// `clean`, minus the minted address and any field that merely restates its opaque id.
|
|
142
|
+
const named = (value) => {
|
|
143
|
+
const text = clean(value);
|
|
144
|
+
if (!text || isLtiPlaceholderEmail(text))
|
|
145
|
+
return undefined;
|
|
146
|
+
return mintedId && identityKey(text) === mintedId ? undefined : text;
|
|
147
|
+
};
|
|
148
|
+
const pick = (...candidates) => firstOf(...candidates.map(named));
|
|
113
149
|
// A bare `user` value is a username — unless it is a numeric id, which
|
|
114
150
|
// names nobody: transcript rows carry `user: 1` beside `username: null`,
|
|
115
151
|
// and showing "1" for that person is worse than "Anonymous".
|
|
116
|
-
const bareString =
|
|
152
|
+
const bareString = named(bareRaw);
|
|
117
153
|
const bareUser = bareString && !/^\d+$/.test(bareString) ? bareString : undefined;
|
|
118
|
-
let email =
|
|
119
|
-
|
|
120
|
-
|
|
154
|
+
let email = pick(...emailCandidates);
|
|
155
|
+
// The profile still opens on the minted id, so it is kept raw here and only
|
|
156
|
+
// the displayed username drops it.
|
|
157
|
+
const profileUsername = firstOf(clean(record.username), clean(record.student), clean(record.user_username), clean(inner === null || inner === void 0 ? void 0 : inner.username), clean(inner === null || inner === void 0 ? void 0 : inner.student), clean(inner === null || inner === void 0 ? void 0 : inner.user_username), bareUser && !isEmailLike(bareUser) ? bareUser : undefined);
|
|
158
|
+
const platformUsername = named(profileUsername);
|
|
159
|
+
let username = pick(record.lti_username, inner === null || inner === void 0 ? void 0 : inner.lti_username, platformUsername);
|
|
121
160
|
const composed = [clean(record.first_name), clean(record.last_name)].filter(Boolean).join(' ');
|
|
122
|
-
const name =
|
|
161
|
+
const name = pick(record.user_full_name, record.full_name, record.name, composed, inner === null || inner === void 0 ? void 0 : inner.user_full_name, inner === null || inner === void 0 ? void 0 : inner.full_name, inner === null || inner === void 0 ? void 0 : inner.name);
|
|
123
162
|
// A bare string that looks like an email is an email, and so is a
|
|
124
163
|
// "username" field that actually carries one.
|
|
125
164
|
if (!email && bareUser && isEmailLike(bareUser))
|
|
@@ -135,16 +174,18 @@ function resolveUserIdentity(source, options = {}) {
|
|
|
135
174
|
? NAME_FIRST_ORDER
|
|
136
175
|
: order;
|
|
137
176
|
const label = labelOrder.map((field) => facts[field]).find(Boolean);
|
|
177
|
+
const fallback = placeholder ? ltiUserLabel : anonymousLabel;
|
|
138
178
|
return {
|
|
139
|
-
label: label !== null && label !== void 0 ? label :
|
|
179
|
+
label: label !== null && label !== void 0 ? label : fallback,
|
|
140
180
|
email,
|
|
141
181
|
username,
|
|
142
182
|
name,
|
|
143
|
-
profileUsername
|
|
144
|
-
|
|
145
|
-
|
|
183
|
+
profileUsername,
|
|
184
|
+
ltiPlaceholderEmail: placeholder,
|
|
185
|
+
initial: (label !== null && label !== void 0 ? label : fallback).charAt(0).toUpperCase() || 'A',
|
|
186
|
+
isAnonymous: !label && !placeholder,
|
|
146
187
|
};
|
|
147
188
|
}
|
|
148
189
|
|
|
149
|
-
export { DEFAULT_USER_IDENTITY_ORDER, hasDistinctName, isEmailLike, resolveUserIdentity };
|
|
190
|
+
export { DEFAULT_USER_IDENTITY_ORDER, hasDistinctName, isEmailLike, isLtiPlaceholderEmail, resolveUserIdentity };
|
|
150
191
|
//# sourceMappingURL=user-identity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity.js","sources":["../../../../../../src/lib/user-identity.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;AAaG;
|
|
1
|
+
{"version":3,"file":"user-identity.js","sources":["../../../../../../src/lib/user-identity.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;AAaG;AA4DI,MAAM,2BAA2B,GAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU;AAE5F;AACA,MAAM,gBAAgB,GAAwB,C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