@edpire/sdk 0.6.4 → 0.6.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.
- package/README.md +445 -443
- package/bin/create.js +0 -0
- package/dist/chunk-76CZ6Z7T.mjs +1 -0
- package/dist/client.d.mts +44 -3
- package/dist/client.mjs +15 -5
- package/dist/core.d.mts +149 -0
- package/dist/core.mjs +1 -0
- package/dist/dist-UCCG7PHU.mjs +11 -0
- package/dist/esm-RQP7AIMT.mjs +136 -0
- package/dist/index.d.mts +8 -1
- package/dist/index.mjs +52 -7
- package/dist/react.d.mts +9 -1
- package/dist/react.mjs +52 -7
- package/dist/sql-wasm-browser-NICPVFVD.mjs +2 -0
- package/dist/umd/index.global.js +454 -251
- package/examples/nextjs/README.md +66 -66
- package/examples/vite-express/README.md +69 -69
- package/examples/vite-express/server.ts +96 -90
- package/examples/vite-express/src/App.tsx +56 -56
- package/package.json +17 -11
- package/src/styles/runtime-utilities.css +1 -1
- package/src/styles/shell.css +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -363,6 +363,14 @@ interface AssessmentShellProps {
|
|
|
363
363
|
/** Media upload handler — required for file-upload and recording modes in
|
|
364
364
|
* OpenResponse questions. */
|
|
365
365
|
mediaHandler?: QuestionRuntimeProps["mediaHandler"];
|
|
366
|
+
/**
|
|
367
|
+
* BUILDER PREVIEW ONLY. When the assessment has no annex and this callback
|
|
368
|
+
* is supplied, the shell renders a dashed "add reference" ghost slot where
|
|
369
|
+
* the annex would appear, and calls this on click. Never pass it in a
|
|
370
|
+
* learner-facing mount — its absence keeps the empty state invisible to
|
|
371
|
+
* students (they simply see the questions).
|
|
372
|
+
*/
|
|
373
|
+
onAddAnnex?: () => void;
|
|
366
374
|
/**
|
|
367
375
|
* Logo shown when the org has no `branding.logoUrl`.
|
|
368
376
|
* Defaults to an inline Edpire SVG so the SDK has zero asset dependencies.
|
|
@@ -371,6 +379,6 @@ interface AssessmentShellProps {
|
|
|
371
379
|
*/
|
|
372
380
|
fallbackLogoUrl?: string;
|
|
373
381
|
}
|
|
374
|
-
declare function AssessmentShell({ assessment, meta, locale, branding, timeLimitMinutes, startedAt, onSubmit, onViewReport, reportLabel, onBack, backLabel, allowReset, onReset, overlayConfig, contained, onClose, mediaHandler, fallbackLogoUrl, }: AssessmentShellProps): react_jsx_runtime.JSX.Element;
|
|
382
|
+
declare function AssessmentShell({ assessment, meta, locale, branding, timeLimitMinutes, startedAt, onSubmit, onViewReport, reportLabel, onBack, backLabel, allowReset, onReset, overlayConfig, contained, onClose, mediaHandler, onAddAnnex, fallbackLogoUrl, }: AssessmentShellProps): react_jsx_runtime.JSX.Element;
|
|
375
383
|
|
|
376
384
|
export { AssessmentShell, type AssessmentShellProps, EdpireAssessmentPlayer, type EdpireAssessmentPlayerProps, EdpireQuestion, type EdpireQuestionProps, type ExerciseFeedbackData, type NodeDetail, type NodeFeedback, type OverlayConfig, type QuestionFeedback, type ShellLocale, type SpinnerTheme, type SubmitResult, type TakeBranding };
|