@superbuilders/primer-tives 5.0.2 → 5.1.0
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 +19 -26
- package/dist/client/auth-state.d.ts +4 -2
- package/dist/client/auth-state.d.ts.map +1 -1
- package/dist/client/choice-state.d.ts +2 -2
- package/dist/client/choice-state.d.ts.map +1 -1
- package/dist/client/extended-text-state.d.ts +2 -2
- package/dist/client/extended-text-state.d.ts.map +1 -1
- package/dist/client/feedback-state.d.ts +3 -3
- package/dist/client/feedback-state.d.ts.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +266 -103
- package/dist/client/index.js.map +19 -17
- package/dist/client/journey.d.ts +13 -0
- package/dist/client/journey.d.ts.map +1 -0
- package/dist/client/match-state.d.ts +2 -2
- package/dist/client/match-state.d.ts.map +1 -1
- package/dist/client/observation-state.d.ts +2 -2
- package/dist/client/observation-state.d.ts.map +1 -1
- package/dist/client/order-state.d.ts +2 -2
- package/dist/client/order-state.d.ts.map +1 -1
- package/dist/client/pci-state.d.ts +2 -2
- package/dist/client/pci-state.d.ts.map +1 -1
- package/dist/client/session.d.ts +2 -2
- package/dist/client/session.d.ts.map +1 -1
- package/dist/client/start.d.ts.map +1 -1
- package/dist/client/text-entry-state.d.ts +2 -2
- package/dist/client/text-entry-state.d.ts.map +1 -1
- package/dist/client/transport.d.ts +5 -1
- package/dist/client/transport.d.ts.map +1 -1
- package/dist/client/types.d.ts +55 -11
- package/dist/client/types.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +13 -32
- package/dist/contracts/index.js.map +3 -3
- package/dist/contracts/types.d.ts +3 -20
- package/dist/contracts/types.d.ts.map +1 -1
- package/dist/contracts/validation.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ bun add @superbuilders/primer-tives
|
|
|
19
19
|
|
|
20
20
|
## Version
|
|
21
21
|
|
|
22
|
-
The current SDK version is `5.0
|
|
22
|
+
The current SDK version is `5.1.0`.
|
|
23
23
|
|
|
24
24
|
## Entrypoints
|
|
25
25
|
|
|
@@ -145,6 +145,10 @@ function start<
|
|
|
145
145
|
|
|
146
146
|
Always switch on `state.phase`. Do not assume the first state is renderable learning content.
|
|
147
147
|
|
|
148
|
+
Every state also exposes `state.journey`, a read-only learner progress object. It reports Primer's current journey mode plus grade, course, and lesson progress when those concepts exist for the current state.
|
|
149
|
+
|
|
150
|
+
`state.journey` cannot be used to select content or change Primer routing. It is display data only.
|
|
151
|
+
|
|
148
152
|
```ts
|
|
149
153
|
import * as errors from "@superbuilders/errors"
|
|
150
154
|
import { logger } from "@/logger"
|
|
@@ -741,8 +745,8 @@ interface MatchState<Pcis extends PciId = PciId> {
|
|
|
741
745
|
readonly body: ContentBlock[]
|
|
742
746
|
readonly stimulus: RendererStimulus | null
|
|
743
747
|
readonly interaction: Extract<StandardRendererInteraction, { type: "match" }>
|
|
744
|
-
readonly sourceChoices:
|
|
745
|
-
readonly targetChoices:
|
|
748
|
+
readonly sourceChoices: RendererChoice[]
|
|
749
|
+
readonly targetChoices: RendererChoice[]
|
|
746
750
|
readonly minAssociations: number
|
|
747
751
|
readonly maxAssociations: number
|
|
748
752
|
submitMatch(pairs: MatchPair[]): Promise<PrimerState<Pcis>>
|
|
@@ -761,10 +765,8 @@ Valid `submitMatch` payloads:
|
|
|
761
765
|
| Every source identifier exists in `sourceChoices` | `ErrInvalidSubmission` |
|
|
762
766
|
| Every target identifier exists in `targetChoices` | `ErrInvalidSubmission` |
|
|
763
767
|
| No duplicate source-target pairs | `ErrInvalidSubmission` |
|
|
764
|
-
|
|
|
765
|
-
|
|
|
766
|
-
|
|
767
|
-
`matchMax: 0` means unbounded.
|
|
768
|
+
| No duplicate source identifiers | `ErrInvalidSubmission` |
|
|
769
|
+
| No duplicate target identifiers | `ErrInvalidSubmission` |
|
|
768
770
|
|
|
769
771
|
## `PciInteractionState`
|
|
770
772
|
|
|
@@ -899,6 +901,9 @@ Fatal sentinels:
|
|
|
899
901
|
| --- | --- |
|
|
900
902
|
| `ErrBadRequest` | Primer rejected the runtime request as invalid for the SDK contract. |
|
|
901
903
|
| `ErrCurriculumInstructionalUndeliverable` | The active curriculum instructional has no deliverable frame content. |
|
|
904
|
+
| `ErrNoActiveFrame` | Primer had no open frame for the submitted intent. |
|
|
905
|
+
| `ErrFrameAlreadyAnswered` | The targeted frame was already answered. |
|
|
906
|
+
| `ErrSessionStateConflict` | The learner intent does not match the active frame type. |
|
|
902
907
|
| `ErrNoRoutableContent` | The catalog has no routable bootstrap content for the learner's scope. |
|
|
903
908
|
| `ErrInvalidAccessToken` | The learner token was rejected. |
|
|
904
909
|
| `ErrTokenExpired` | The learner token expired. |
|
|
@@ -948,7 +953,6 @@ import type {
|
|
|
948
953
|
PciValue,
|
|
949
954
|
RendererChoice,
|
|
950
955
|
RendererInteraction,
|
|
951
|
-
RendererMatchChoice,
|
|
952
956
|
RendererStimulus,
|
|
953
957
|
RendererSubmission,
|
|
954
958
|
StandardRendererInteraction
|
|
@@ -998,12 +1002,12 @@ Standard interactions:
|
|
|
998
1002
|
|
|
999
1003
|
| Type | Key fields |
|
|
1000
1004
|
| --- | --- |
|
|
1001
|
-
| `choice` | `prompt`, `options`, `
|
|
1005
|
+
| `choice` | `prompt`, `options`, `minChoices`, `maxChoices` |
|
|
1002
1006
|
| `text-entry` | `prompt`, `base`, `expectedLength`, `patternMask`, `placeholderText` |
|
|
1003
1007
|
| `extended-text` single | `prompt`, `format`, `expectedLines`, `expectedLength`, `patternMask`, `placeholderText` |
|
|
1004
1008
|
| `extended-text` multiple | single fields plus `minStrings`, `maxStrings` |
|
|
1005
|
-
| `order` | `prompt`, `choices`, `
|
|
1006
|
-
| `match` | `prompt`, `sourceChoices`, `targetChoices`, `
|
|
1009
|
+
| `order` | `prompt`, `choices`, `minChoices`, `maxChoices` |
|
|
1010
|
+
| `match` | `prompt`, `sourceChoices`, `targetChoices`, `minAssociations`, `maxAssociations` |
|
|
1007
1011
|
| `portable-custom` | `prompt`, `pciId`, `properties` |
|
|
1008
1012
|
|
|
1009
1013
|
Choice objects:
|
|
@@ -1015,17 +1019,6 @@ interface RendererChoice {
|
|
|
1015
1019
|
}
|
|
1016
1020
|
```
|
|
1017
1021
|
|
|
1018
|
-
Match choice objects:
|
|
1019
|
-
|
|
1020
|
-
```ts
|
|
1021
|
-
interface RendererMatchChoice {
|
|
1022
|
-
identifier: string
|
|
1023
|
-
content: ContentInline[]
|
|
1024
|
-
matchMax: number
|
|
1025
|
-
matchMin: number
|
|
1026
|
-
}
|
|
1027
|
-
```
|
|
1028
|
-
|
|
1029
1022
|
## Submissions
|
|
1030
1023
|
|
|
1031
1024
|
```ts
|
|
@@ -1098,7 +1091,7 @@ Validation checks:
|
|
|
1098
1091
|
| `extended-text` single | type match, exactly one value |
|
|
1099
1092
|
| `extended-text` multiple | type match, min/max value count, duplicate values |
|
|
1100
1093
|
| `order` | type match, min/max selection count, duplicate identifiers, unknown identifiers |
|
|
1101
|
-
| `match` | type match, min/max association count, duplicate pairs,
|
|
1094
|
+
| `match` | type match, min/max association count, duplicate pairs, duplicate sources, duplicate targets, unknown sources, unknown targets |
|
|
1102
1095
|
| `portable-custom` | type match, PCI id match, PCI value schema |
|
|
1103
1096
|
|
|
1104
1097
|
The built-in standard interaction state methods call this before submitting. Custom renderer utilities that build `RendererSubmission` values directly should call it too.
|
|
@@ -1326,13 +1319,13 @@ Runtime errors are represented as `ErroredState` or `FatalState`.
|
|
|
1326
1319
|
| `ErrServiceUnavailable` | `ErroredState` | yes | Primer is temporarily unavailable. |
|
|
1327
1320
|
| `ErrRateLimited` | `ErroredState` | yes | Runtime work is temporarily rate limited. |
|
|
1328
1321
|
| `ErrConflict` | `ErroredState` | yes | The learner intent conflicts with another in-flight or current runtime action. |
|
|
1329
|
-
| `ErrNoActiveFrame` | `ResyncableErroredState` | no | Primer has no open frame for the submitted intent; call `resync()` to realign. |
|
|
1330
|
-
| `ErrFrameAlreadyAnswered` | `ResyncableErroredState` | no | The targeted frame was already answered; call `resync()` to realign. |
|
|
1331
|
-
| `ErrSessionStateConflict` | `ResyncableErroredState` | no | The learner intent does not match the active frame type; call `resync()` to realign. |
|
|
1332
1322
|
| `ErrJsonParse` | `ErroredState` | yes | Runtime data could not be interpreted as the SDK contract. |
|
|
1333
1323
|
| `ErrInvalidSubmission` | `ErroredState` | no | Renderer submitted a value that is invalid for the active interaction. |
|
|
1334
1324
|
| `ErrBadRequest` | `FatalState` | no | Runtime request violates the SDK contract. |
|
|
1335
1325
|
| `ErrCurriculumInstructionalUndeliverable` | `FatalState` | no | Curriculum routing reached an instructional with no deliverable frame content. |
|
|
1326
|
+
| `ErrNoActiveFrame` | `FatalState` | no | Primer had no open frame for the submitted intent. |
|
|
1327
|
+
| `ErrFrameAlreadyAnswered` | `FatalState` | no | The targeted frame was already answered. |
|
|
1328
|
+
| `ErrSessionStateConflict` | `FatalState` | no | The learner intent does not match the active frame type. |
|
|
1336
1329
|
| `ErrNoRoutableContent` | `FatalState` | no | Catalog bootstrap has no routable content for the learner scope. |
|
|
1337
1330
|
| `ErrInvalidAccessToken` | `FatalState` | no | Learner token is invalid. |
|
|
1338
1331
|
| `ErrTokenExpired` | `FatalState` | no | Learner token expired. |
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { AuthConfigInvalidState, AuthUnavailableState, ManagedStartState, SignInFailedState, SignInRequiredState } from "./types";
|
|
2
|
+
import type { Journey } from "./types";
|
|
2
3
|
import type { PciId } from "../contracts/pci";
|
|
3
4
|
type SignInStateConfig<Pcis extends PciId = PciId> = {
|
|
5
|
+
readonly journey: Journey;
|
|
4
6
|
login(): Promise<ManagedStartState<Pcis>>;
|
|
5
7
|
};
|
|
6
8
|
declare function signInRequiredState<Pcis extends PciId>(config: SignInStateConfig<Pcis>): SignInRequiredState<Pcis>;
|
|
7
9
|
declare function signInFailedState<Pcis extends PciId>(config: SignInStateConfig<Pcis> & {
|
|
8
10
|
readonly error: Error;
|
|
9
11
|
}): SignInFailedState<Pcis>;
|
|
10
|
-
declare function authUnavailableState(error: Error): AuthUnavailableState;
|
|
11
|
-
declare function authConfigInvalidState(error: Error): AuthConfigInvalidState;
|
|
12
|
+
declare function authUnavailableState(error: Error, journey: Journey): AuthUnavailableState;
|
|
13
|
+
declare function authConfigInvalidState(error: Error, journey: Journey): AuthConfigInvalidState;
|
|
12
14
|
export type { SignInStateConfig };
|
|
13
15
|
export { authConfigInvalidState, authUnavailableState, signInFailedState, signInRequiredState };
|
|
14
16
|
//# sourceMappingURL=auth-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/client/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AAEtE,KAAK,iBAAiB,CAAC,IAAI,SAAS,KAAK,GAAG,KAAK,IAAI;IACpD,KAAK,IAAI,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CACzC,CAAA;AAkBD,iBAAS,mBAAmB,CAAC,IAAI,SAAS,KAAK,EAC9C,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAC7B,mBAAmB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/client/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAA;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AAEtE,KAAK,iBAAiB,CAAC,IAAI,SAAS,KAAK,GAAG,KAAK,IAAI;IACpD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,KAAK,IAAI,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CACzC,CAAA;AAkBD,iBAAS,mBAAmB,CAAC,IAAI,SAAS,KAAK,EAC9C,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAC7B,mBAAmB,CAAC,IAAI,CAAC,CAO3B;AAED,iBAAS,iBAAiB,CAAC,IAAI,SAAS,KAAK,EAC5C,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GACzD,iBAAiB,CAAC,IAAI,CAAC,CAQzB;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,CAOlF;AAED,iBAAS,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,sBAAsB,CAOtF;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAA;AACjC,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SessionContext } from "./session-context";
|
|
2
|
-
import type { InteractionFeedback, PrimerState } from "./types";
|
|
2
|
+
import type { InteractionFeedback, Journey, PrimerState } from "./types";
|
|
3
3
|
import type { ContentBlock } from "../contracts/content";
|
|
4
4
|
import type { PciId } from "../contracts/pci";
|
|
5
5
|
import type { RendererChoice, RendererInteraction, RendererStimulus } from "../contracts/types";
|
|
6
|
-
declare function choiceState<Pcis extends PciId>(ctx: SessionContext<Pcis>, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: Extract<RendererInteraction<Pcis>, {
|
|
6
|
+
declare function choiceState<Pcis extends PciId>(ctx: SessionContext<Pcis>, journey: Journey, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: Extract<RendererInteraction<Pcis>, {
|
|
7
7
|
type: "choice";
|
|
8
8
|
}>, options: RendererChoice[], maxChoices: number, minChoices: number, feedback: InteractionFeedback | null): PrimerState<Pcis>;
|
|
9
9
|
export { choiceState };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choice-state.d.ts","sourceRoot":"","sources":["../../src/client/choice-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"choice-state.d.ts","sourceRoot":"","sources":["../../src/client/choice-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,KAAK,EACX,mBAAmB,EACnB,OAAO,EACP,WAAW,EACX,MAAM,0CAA0C,CAAA;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AACjF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AACtE,OAAO,KAAK,EACX,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,MAAM,6CAA6C,CAAA;AAGpD,iBAAS,WAAW,CAAC,IAAI,SAAS,KAAK,EACtC,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,EACzB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,EACjC,WAAW,EAAE,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,EACnE,OAAO,EAAE,cAAc,EAAE,EACzB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAClC,WAAW,CAAC,IAAI,CAAC,CAwFnB;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SessionContext } from "./session-context";
|
|
2
|
-
import type { InteractionFeedback, PrimerState } from "./types";
|
|
2
|
+
import type { InteractionFeedback, Journey, PrimerState } from "./types";
|
|
3
3
|
import type { ContentBlock } from "../contracts/content";
|
|
4
4
|
import type { PciId } from "../contracts/pci";
|
|
5
5
|
import type { RendererStimulus, StandardRendererInteraction } from "../contracts/types";
|
|
6
|
-
declare function extendedTextState<Pcis extends PciId>(ctx: SessionContext<Pcis>, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: Extract<StandardRendererInteraction, {
|
|
6
|
+
declare function extendedTextState<Pcis extends PciId>(ctx: SessionContext<Pcis>, journey: Journey, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: Extract<StandardRendererInteraction, {
|
|
7
7
|
type: "extended-text";
|
|
8
8
|
}>, feedback: InteractionFeedback | null): PrimerState<Pcis>;
|
|
9
9
|
export { extendedTextState };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extended-text-state.d.ts","sourceRoot":"","sources":["../../src/client/extended-text-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"extended-text-state.d.ts","sourceRoot":"","sources":["../../src/client/extended-text-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,KAAK,EACX,mBAAmB,EACnB,OAAO,EACP,WAAW,EACX,MAAM,0CAA0C,CAAA;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AACjF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AACtE,OAAO,KAAK,EACX,gBAAgB,EAChB,2BAA2B,EAC3B,MAAM,6CAA6C,CAAA;AAGpD,iBAAS,iBAAiB,CAAC,IAAI,SAAS,KAAK,EAC5C,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,EACzB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,EACjC,WAAW,EAAE,OAAO,CAAC,2BAA2B,EAAE;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,EAC5E,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAClC,WAAW,CAAC,IAAI,CAAC,CA2KnB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SessionContext } from "./session-context";
|
|
2
|
-
import type { AssessmentOutcome, PrimerState } from "./types";
|
|
2
|
+
import type { AssessmentOutcome, Journey, PrimerState } from "./types";
|
|
3
3
|
import type { ContentBlock, ContentInline } from "../contracts/content";
|
|
4
4
|
import type { PciId } from "../contracts/pci";
|
|
5
5
|
import type { InteractionReview } from "../contracts/review";
|
|
6
6
|
import type { RendererInteraction, RendererStimulus, RendererSubmission } from "../contracts/types";
|
|
7
|
-
declare function submittedFeedbackState<Pcis extends PciId>(ctx: SessionContext<Pcis>, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: RendererInteraction<Pcis>, submission: RendererSubmission<Pcis>, assessmentOutcome: AssessmentOutcome, feedbackContent: ContentInline[], review: InteractionReview<Pcis> | null): PrimerState<Pcis>;
|
|
8
|
-
declare function timedOutFeedbackState<Pcis extends PciId>(ctx: SessionContext<Pcis>, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: RendererInteraction<Pcis>, feedbackContent: ContentInline[]): PrimerState<Pcis>;
|
|
7
|
+
declare function submittedFeedbackState<Pcis extends PciId>(ctx: SessionContext<Pcis>, journey: Journey, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: RendererInteraction<Pcis>, submission: RendererSubmission<Pcis>, assessmentOutcome: AssessmentOutcome, feedbackContent: ContentInline[], review: InteractionReview<Pcis> | null): PrimerState<Pcis>;
|
|
8
|
+
declare function timedOutFeedbackState<Pcis extends PciId>(ctx: SessionContext<Pcis>, journey: Journey, body: ContentBlock[], stimulus: RendererStimulus | null, interaction: RendererInteraction<Pcis>, feedbackContent: ContentInline[]): PrimerState<Pcis>;
|
|
9
9
|
export { submittedFeedbackState, timedOutFeedbackState };
|
|
10
10
|
//# sourceMappingURL=feedback-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-state.d.ts","sourceRoot":"","sources":["../../src/client/feedback-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"feedback-state.d.ts","sourceRoot":"","sources":["../../src/client/feedback-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,KAAK,EACX,iBAAiB,EACjB,OAAO,EACP,WAAW,EACX,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAA;AAChG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,OAAO,KAAK,EACX,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,6CAA6C,CAAA;AAapD,iBAAS,sBAAsB,CAAC,IAAI,SAAS,KAAK,EACjD,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,EACzB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,EACjC,WAAW,EAAE,mBAAmB,CAAC,IAAI,CAAC,EACtC,UAAU,EAAE,kBAAkB,CAAC,IAAI,CAAC,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,aAAa,EAAE,EAChC,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,GACpC,WAAW,CAAC,IAAI,CAAC,CAenB;AAED,iBAAS,qBAAqB,CAAC,IAAI,SAAS,KAAK,EAChD,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,EACzB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,EACjC,WAAW,EAAE,mBAAmB,CAAC,IAAI,CAAC,EACtC,eAAe,EAAE,aAAa,EAAE,GAC9B,WAAW,CAAC,IAAI,CAAC,CAYnB;AAED,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAA"}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { PrimerOptions, PrimerOptionsWithAccessToken, PrimerOptionsWithManagedAuth } from "./start";
|
|
2
2
|
export { start } from "./start";
|
|
3
|
-
export type { AccessTokenStartState, AssessmentOutcome, AssessmentOutcomeValue, AuthConfigInvalidState, AuthUnavailableState, ChoiceState, CompletedState, ErroredState, ExtendedTextMultipleState, ExtendedTextSingleState, ExtendedTextState, FatalState, FeedbackKind, FeedbackState, InteractionFeedback, InteractionState, ManagedStartState, MatchState, NonRetriableErroredState, NonSerializable, ObservationState, OrderState, PciInteractionState, PciPendingRenderProps, PciRenderProps, PciSubmittedRenderProps,
|
|
3
|
+
export type { AccessTokenStartState, AssessmentOutcome, AssessmentOutcomeValue, AuthConfigInvalidState, AuthUnavailableState, ChoiceState, CompletedState, ErroredState, ExtendedTextMultipleState, ExtendedTextSingleState, ExtendedTextState, FatalState, FeedbackKind, FeedbackState, InteractionFeedback, InteractionState, ManagedStartState, MatchState, NonRetriableErroredState, NonSerializable, ObservationState, OrderState, PciInteractionState, PciPendingRenderProps, PciRenderProps, PciSubmittedRenderProps, Journey, JourneyProgress, PrimerState, RetriableErroredState, RuntimeState, SignInFailedState, SignInRequiredState, SubmittedFeedbackState, TextEntryState, TimedOutFeedbackState } from "./types";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,aAAa,EACb,4BAA4B,EAC5B,4BAA4B,EAC5B,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAEhE,YAAY,EACX,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,aAAa,EACb,4BAA4B,EAC5B,4BAA4B,EAC5B,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAEhE,YAAY,EACX,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,OAAO,EACP,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,qBAAqB,EACrB,MAAM,0CAA0C,CAAA"}
|