@reqquest/ui 1.6.15 → 1.7.1

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.
@@ -56,8 +56,10 @@
56
56
  // People often put punctuation at the end or enclose url's in parentheses or quotes so do not include
57
57
  // https://www.youtube.com/watch?v=pYBrK1O4UEQ&list=UUHdD1ujwX1fCB0CiamefSWA.
58
58
  // => href="https://www.youtube.com/watch?v=pYBrK1O4UEQ&list=UUHdD1ujwX1fCB0CiamefSWA"
59
+ // This runs on htmlEncoded text, so quotes arrive as entities (", '). Treat & as a
60
+ // delimiter except for the & and = entities that legitimately appear inside urls.
59
61
  function clickableUrl(str: string) {
60
- return str.replace(/(\bhttps?:\/\/([^.,!?:)\n\r\t '"]+|[.,!?:)][^\n\r\t '")])+)/g, (m: string) => `<a href="${unencodeUrl(m)}" target="_blank">${m}</a>`)
62
+ return str.replace(/(\bhttps?:\/\/(&(?:amp|#x3D);|[^.,!?:&\n\r\t '")]+|[.,!?:][^&\n\r\t '")])+)/g, (m: string) => `<a href="${unencodeUrl(m)}" target="_blank">${m}</a>`)
61
63
  }
62
64
 
63
65
  </script>
@@ -146,6 +146,13 @@ export interface UIConfig {
146
146
  * Defaults to 30 if not specified.
147
147
  */
148
148
  applicantDashboardRecentDays?: number;
149
+ /**
150
+ * Applicant Review submission page title and subtitle text.
151
+ */
152
+ applicantReview?: {
153
+ title?: string;
154
+ subTitle?: string;
155
+ };
149
156
  /**
150
157
  * Whether to constrain the applicant review/submission page to a medium
151
158
  * screen-width container. Defaults to true.
@@ -180,6 +187,16 @@ export interface UIConfig {
180
187
  * Specify the components here.
181
188
  */
182
189
  slots?: {
190
+ /**
191
+ * This maps to the default slot available within the IntroPanel component and can be used
192
+ * to add additional context within IntroPanel directly below the applicantDashboardIntroHeader and
193
+ * applicantDashboardIntroDetail
194
+ *
195
+ * It will receive the following props
196
+ * - `appRequests` with all appRequests and their details
197
+ * - `api` which is an instance of the API client
198
+ */
199
+ applicantDashboardIntroSlot?: Component;
183
200
  /**
184
201
  * This will be placed inside the top card on the reviewer sidebar that displays applicant information.
185
202
  *
@@ -134,6 +134,7 @@ export interface AccessTagCategory {
134
134
  }
135
135
  /** A user that has or once had access to the system. */
136
136
  export interface AccessUser {
137
+ email: (Scalars['String'] | null);
137
138
  fullname: Scalars['String'];
138
139
  groups: Scalars['String'][];
139
140
  login: Scalars['ID'];
@@ -159,6 +160,8 @@ export interface AppRequest {
159
160
  actions: AppRequestActions;
160
161
  applicant: AccessUser;
161
162
  applications: Application[];
163
+ /** True when at least one reachable prompt anywhere on this request has been invalidated and must be re-answered. Status and phase are computed from the answers on file, so use this flag to explain that the request is held back awaiting a correction. */
164
+ awaitingCorrection: Scalars['Boolean'];
162
165
  /** Date that this request was considered closed and no longer editable. If active or re-opened, will be null. If closed again, will be the second closure date. */
163
166
  closedAt: (Scalars['DateTime'] | null);
164
167
  createdAt: Scalars['DateTime'];
@@ -272,6 +275,8 @@ export type AppRequestStatus = 'ACCEPTANCE' | 'ACCEPTED' | 'APPROVAL' | 'APPROVE
272
275
  /** An application represents the applicant applying to a specific program. Each appRequest has multiple applications - one per program defined in the system. Some applications are mutually exclusive and/or will be eliminated early based on PREQUAL requirements, but they all technically exist in the data model - there is no concept of picking one application over another, just two applications where one dies and the other survives. */
273
276
  export interface Application {
274
277
  actions: ApplicationActions;
278
+ /** True when at least one reachable prompt on this application has been invalidated and must be re-answered. Status is still computed from the answers on file, so pair status displays with this flag to indicate that a correction is outstanding. */
279
+ awaitingCorrection: Scalars['Boolean'];
275
280
  id: Scalars['ID'];
276
281
  /** The phase in which this application became ineligible for benefits. Useful for reporting / filtering. Null if the application is not (yet) ineligible. */
277
282
  ineligiblePhase: (IneligiblePhases | null);
@@ -929,6 +934,7 @@ export interface AccessTagInput {
929
934
  }
930
935
  /** A user that has or once had access to the system. */
931
936
  export interface AccessUserGenqlSelection {
937
+ email?: boolean | number;
932
938
  fullname?: boolean | number;
933
939
  groups?: boolean | number;
934
940
  login?: boolean | number;
@@ -979,6 +985,8 @@ export interface AppRequestGenqlSelection {
979
985
  actions?: AppRequestActionsGenqlSelection;
980
986
  applicant?: AccessUserGenqlSelection;
981
987
  applications?: ApplicationGenqlSelection;
988
+ /** True when at least one reachable prompt anywhere on this request has been invalidated and must be re-answered. Status and phase are computed from the answers on file, so use this flag to explain that the request is held back awaiting a correction. */
989
+ awaitingCorrection?: boolean | number;
982
990
  /** Date that this request was considered closed and no longer editable. If active or re-opened, will be null. If closed again, will be the second closure date. */
983
991
  closedAt?: boolean | number;
984
992
  createdAt?: boolean | number;
@@ -1172,6 +1180,8 @@ export interface AppRequestNoteFilters {
1172
1180
  /** An application represents the applicant applying to a specific program. Each appRequest has multiple applications - one per program defined in the system. Some applications are mutually exclusive and/or will be eliminated early based on PREQUAL requirements, but they all technically exist in the data model - there is no concept of picking one application over another, just two applications where one dies and the other survives. */
1173
1181
  export interface ApplicationGenqlSelection {
1174
1182
  actions?: ApplicationActionsGenqlSelection;
1183
+ /** True when at least one reachable prompt on this application has been invalidated and must be re-answered. Status is still computed from the answers on file, so pair status displays with this flag to indicate that a correction is outstanding. */
1184
+ awaitingCorrection?: boolean | number;
1175
1185
  id?: boolean | number;
1176
1186
  /** The phase in which this application became ineligible for benefits. Useful for reporting / filtering. Null if the application is not (yet) ineligible. */
1177
1187
  ineligiblePhase?: boolean | number;
@@ -211,6 +211,7 @@ input AccessTagInput {
211
211
 
212
212
  """A user that has or once had access to the system."""
213
213
  type AccessUser {
214
+ email: String
214
215
  fullname: String!
215
216
  groups: [String!]!
216
217
  login: ID!
@@ -284,6 +285,11 @@ type AppRequest {
284
285
  applicant: AccessUser!
285
286
  applications: [Application!]!
286
287
 
288
+ """
289
+ True when at least one reachable prompt anywhere on this request has been invalidated and must be re-answered. Status and phase are computed from the answers on file, so use this flag to explain that the request is held back awaiting a correction.
290
+ """
291
+ awaitingCorrection: Boolean!
292
+
287
293
  """
288
294
  Date that this request was considered closed and no longer editable. If active or re-opened, will be null. If closed again, will be the second closure date.
289
295
  """
@@ -734,6 +740,11 @@ An application represents the applicant applying to a specific program. Each app
734
740
  """
735
741
  type Application {
736
742
  actions: ApplicationActions!
743
+
744
+ """
745
+ True when at least one reachable prompt on this application has been invalidated and must be re-answered. Status is still computed from the answers on file, so pair status displays with this flag to indicate that a correction is outstanding.
746
+ """
747
+ awaitingCorrection: Boolean!
737
748
  id: ID!
738
749
 
739
750
  """
@@ -125,6 +125,7 @@ declare const _default: {
125
125
  __typename: number[];
126
126
  };
127
127
  AccessUser: {
128
+ email: number[];
128
129
  fullname: number[];
129
130
  groups: number[];
130
131
  login: number[];
@@ -163,6 +164,7 @@ declare const _default: {
163
164
  actions: number[];
164
165
  applicant: number[];
165
166
  applications: number[];
167
+ awaitingCorrection: number[];
166
168
  closedAt: number[];
167
169
  createdAt: number[];
168
170
  data: (number | {
@@ -279,6 +281,7 @@ declare const _default: {
279
281
  AppRequestStatus: {};
280
282
  Application: {
281
283
  actions: number[];
284
+ awaitingCorrection: number[];
282
285
  id: number[];
283
286
  ineligiblePhase: number[];
284
287
  navTitle: number[];
@@ -321,6 +321,9 @@ export default {
321
321
  ]
322
322
  },
323
323
  "AccessUser": {
324
+ "email": [
325
+ 85
326
+ ],
324
327
  "fullname": [
325
328
  85
326
329
  ],
@@ -415,6 +418,9 @@ export default {
415
418
  "applications": [
416
419
  33
417
420
  ],
421
+ "awaitingCorrection": [
422
+ 41
423
+ ],
418
424
  "closedAt": [
419
425
  47
420
426
  ],
@@ -721,6 +727,9 @@ export default {
721
727
  "actions": [
722
728
  34
723
729
  ],
730
+ "awaitingCorrection": [
731
+ 41
732
+ ],
724
733
  "id": [
725
734
  49
726
735
  ],
package/dist/types.d.ts CHANGED
@@ -64,3 +64,8 @@ export type PhaseChangeMutations = typeof phaseChangeMutations[number];
64
64
  export type OptOutApplication = ApplicationForDetails & {
65
65
  prompt: AnsweredPrompt;
66
66
  };
67
+ export declare enum PromptIndicators {
68
+ AUTOMATION = 1,
69
+ WARNING = 2,
70
+ DISQUALIFYING = 3
71
+ }
package/dist/types.js CHANGED
@@ -1 +1,7 @@
1
1
  export const phaseChangeMutations = ['submitAppRequest', 'returnToApplicant', 'completeReview', 'returnToReview', 'acceptOffer', 'returnToOffer', 'completeRequest', 'returnToNonBlocking'];
2
+ export var PromptIndicators;
3
+ (function (PromptIndicators) {
4
+ PromptIndicators[PromptIndicators["AUTOMATION"] = 1] = "AUTOMATION";
5
+ PromptIndicators[PromptIndicators["WARNING"] = 2] = "WARNING";
6
+ PromptIndicators[PromptIndicators["DISQUALIFYING"] = 3] = "DISQUALIFYING";
7
+ })(PromptIndicators || (PromptIndicators = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqquest/ui",
3
- "version": "1.6.15",
3
+ "version": "1.7.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",