@iblai/iblai-js 2.3.5 → 2.3.7

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.
@@ -25,10 +25,11 @@ export declare const GRADER_LABELS: {
25
25
  readonly tabName: "Grader";
26
26
  readonly capabilityToggle: "Grading";
27
27
  readonly subTabs: {
28
- readonly setup: "Grading setup";
28
+ readonly setup: "Grading Setup";
29
29
  readonly rubric: "Rubric";
30
+ readonly results: "Results";
30
31
  };
31
- readonly addButton: "Add criterion";
32
+ readonly addButton: "Add Criterion";
32
33
  readonly menu: {
33
34
  /** aria-label template for a row's three-dots trigger. */
34
35
  readonly actionsAria: (name: string) => string;
@@ -43,18 +44,29 @@ export declare const GRADER_LABELS: {
43
44
  };
44
45
  readonly cancel: "Cancel";
45
46
  };
47
+ readonly results: {
48
+ readonly searchUserButton: "Search for User";
49
+ readonly searchUsersPlaceholder: "Search users...";
50
+ readonly overrideButton: "Override";
51
+ /** aria-label template for a result row's Override button. */
52
+ readonly overrideButtonAria: (email: string) => string;
53
+ readonly modal: {
54
+ readonly pointsLabel: "Override Points";
55
+ readonly feedbackLabel: "Override Feedback";
56
+ };
57
+ };
46
58
  readonly toasts: {
47
59
  readonly toggleOn: "Grading turned on";
48
60
  readonly toggleOff: "Grading turned off — your rubric is kept for next time";
49
61
  };
50
62
  readonly gradingModeOptions: {
51
- readonly submission: "A submission";
52
- readonly conversation: "The conversation";
63
+ readonly submission: "A Submission";
64
+ readonly conversation: "The Conversation";
53
65
  };
54
66
  readonly feedbackModeOptions: {
55
- readonly overall: "Overall feedback only";
56
- readonly per_criteria: "Feedback per criterion";
57
- readonly both: "Overall + per criterion";
67
+ readonly overall: "Overall Feedback Only";
68
+ readonly per_criteria: "Feedback per Criterion";
69
+ readonly both: "Overall + per Criterion";
58
70
  };
59
71
  };
60
72
  export type GraderSubTab = keyof typeof GRADER_LABELS.subTabs;
@@ -136,3 +148,25 @@ export declare function expectLastCriterionDeleteDisabled(page: Page, name: stri
136
148
  export declare function expectGraderMisconfiguredWarning(page: Page, visible: boolean): Promise<void>;
137
149
  /** Assert the rubric's live "total possible points" readout (Rubric sub-tab). */
138
150
  export declare function expectGraderTotalPoints(page: Page, total: number): Promise<void>;
151
+ /**
152
+ * Filter the grade-results list by learner via the "Search for User" picker
153
+ * (switches to the Results sub-tab first). Types into the picker's search box,
154
+ * selects the learner, and gates completion on the matching row rendering.
155
+ */
156
+ export declare function filterGradeResultsByEmail(page: Page, email: string): Promise<void>;
157
+ /** Assert a grade-result row for the given learner email is visible. */
158
+ export declare function expectGradeResultRow(page: Page, email: string): Promise<void>;
159
+ /**
160
+ * Override a learner's grade via the row's three-dots menu → Override grade
161
+ * popup. Points are in rubric points (0 to the rubric's total). Completion is
162
+ * gated on the popup closing, which only happens after the PATCH resolves.
163
+ */
164
+ export declare function overrideGradeResult(page: Page, email: string, values: {
165
+ points: number;
166
+ feedback?: string;
167
+ }): Promise<void>;
168
+ /**
169
+ * Clear a learner's grade override via the popup, restoring the AI score.
170
+ * Completion is gated on the popup closing after the PATCH resolves.
171
+ */
172
+ export declare function clearGradeResultOverride(page: Page, email: string): Promise<void>;
@@ -29,7 +29,7 @@ export { VOICE_LABELS, isVoiceTabVisible, switchToVoiceTab, switchToVoiceSubTab,
29
29
  export type { VoiceProvider, CallMode, TtsProvider, SttProvider, LlmProvider, } from './voice-tab-helpers';
30
30
  export { SCREENSHARE_LABELS, isScreenShareTabVisible, switchToScreenShareTab, openScreenSharePromptEditor, setScreenSharePrompt, saveScreenSharePrompts, expectScreenShareDisabledHint, } from './screenshare-tab-helpers';
31
31
  export type { ScreenSharePromptField } from './screenshare-tab-helpers';
32
- export { graderTabBody, isGraderTabVisible, switchToGraderTab, switchToGraderSubTab, isGradingEnabled, setGradingEnabled, saveGraderConfig, addGraderCriterion, editGraderCriterion, deleteGraderCriterion, expectLastCriterionDeleteDisabled, expectGraderMisconfiguredWarning, expectGraderTotalPoints, GRADER_LABELS, } from './grader-tab-helpers';
32
+ export { graderTabBody, isGraderTabVisible, switchToGraderTab, switchToGraderSubTab, isGradingEnabled, setGradingEnabled, saveGraderConfig, addGraderCriterion, editGraderCriterion, deleteGraderCriterion, expectLastCriterionDeleteDisabled, expectGraderMisconfiguredWarning, expectGraderTotalPoints, filterGradeResultsByEmail, expectGradeResultRow, overrideGradeResult, clearGradeResultOverride, GRADER_LABELS, } from './grader-tab-helpers';
33
33
  export type { GraderCriterionInput, GraderGradingMode, GraderFeedbackMode, GraderSubTab, } from './grader-tab-helpers';
34
34
  export { billingPlanSection, billingCreditsSection, billingAutoRechargeSection, getBillingPlanLabel, getBillingAutoRechargeStatus, waitForBillingTabReady, expectBillingPlanSection, expectBillingCreditsSection, expectBillingAutoRechargeSection, expectBillingTabForFreePlan, expectBillingTabForTrialPlan, expectBillingTabForPremiumPlan, expectBillingTabForCurrentPlan, clickBillingUpgrade, clickBillingAddCredits, clickBillingManageBilling, clickBillingManageUsage, } from './billing-tab-helpers';
35
35
  export type { BillingAutoRechargeStatus } from './billing-tab-helpers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-js",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
5
5
  "type": "module",
6
6
  "engines": {
@@ -76,10 +76,10 @@
76
76
  "axios": "1.13.6",
77
77
  "dotenv": "16.6.1",
78
78
  "winston": "3.19.0",
79
- "@iblai/mcp": "1.8.8",
80
- "@iblai/data-layer": "1.12.0",
81
- "@iblai/web-utils": "2.1.10",
82
- "@iblai/web-containers": "1.16.3"
79
+ "@iblai/web-containers": "1.16.5",
80
+ "@iblai/mcp": "1.8.9",
81
+ "@iblai/data-layer": "1.12.1",
82
+ "@iblai/web-utils": "2.1.11"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@iblai/iblai-api": "4.166.0-ai",