@reqquest/ui 1.5.0 → 1.6.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.
@@ -30,12 +30,12 @@
30
30
  $: effectiveIntroAlignment = introTextAlignment ?? align
31
31
  </script>
32
32
  {#if $$slots.intro}
33
- <div id="questionnaire-intro" class="prompt-intro flow max-w-screen-md px-6" class:mx-auto={align === 'center'} class:text-center={effectiveIntroAlignment === 'center'} class:text-right={effectiveIntroAlignment === 'right'} style:color="var(--cds-text-02)">
33
+ <div id="questionnaire-intro" class="prompt-intro flow max-w-screen-md px-px-3 sm:px-6" class:mx-auto={align === 'center'} class:text-center={effectiveIntroAlignment === 'center'} class:text-right={effectiveIntroAlignment === 'right'} style:color="var(--cds-text-02)">
34
34
  <slot name="intro" />
35
35
  </div>
36
36
  {/if}
37
37
  {#if externalLinks.length > 0}
38
- <div class="prompt-intro-links flow max-w-screen-md px-6" class:mx-auto={align === 'center'}>
38
+ <div class="prompt-intro-links flow max-w-screen-md px-3 sm:px-6" class:mx-auto={align === 'center'}>
39
39
  <ul class="flex gap-4 flex-wrap mb-4" class:justify-center={align === 'center'}>
40
40
  {#each externalLinks.slice(0, 3) as link (link.url)}
41
41
  <li><Button kind="ghost" icon={Launch} href={link.url} target={link.target ?? '_blank'} rel={link.rel ?? 'noopener noreferrer'}>{link.label}{#if (link.target ?? '_blank') === '_blank'}<span class="sr-only"> (opens in a new tab)</span>{/if}</Button></li>
@@ -44,6 +44,6 @@
44
44
  </div>
45
45
  {/if}
46
46
 
47
- <div class="px-6 prompt-form flow" class:max-w-screen-md={!fullWidth} class:w-full={fullWidth} class:mx-auto={align === 'center'}>
47
+ <div class="prompt-form flow px-3 sm:px-6" class:max-w-screen-md={!fullWidth} class:w-full={fullWidth} class:mx-auto={align === 'center'}>
48
48
  <slot />
49
49
  </div>
@@ -1596,6 +1596,7 @@ export interface MutationGenqlSelection {
1596
1596
  data: Scalars['JsonData'];
1597
1597
  /** The data version of the app request at the time this prompt was loaded. If provided, the API will perform an optimistic concurrency check and fail the update if someone else has updated the data in the meantime. */
1598
1598
  dataVersion?: (Scalars['Int'] | null);
1599
+ overrideInvalidated?: (Scalars['Boolean'] | null);
1599
1600
  promptId: Scalars['ID'];
1600
1601
  validateOnly?: (Scalars['Boolean'] | null);
1601
1602
  };
@@ -1306,6 +1306,7 @@ type Mutation {
1306
1306
  The data version of the app request at the time this prompt was loaded. If provided, the API will perform an optimistic concurrency check and fail the update if someone else has updated the data in the meantime.
1307
1307
  """
1308
1308
  dataVersion: Int
1309
+ overrideInvalidated: Boolean
1309
1310
  promptId: ID!
1310
1311
  validateOnly: Boolean
1311
1312
  ): ValidatedAppRequestResponse!
@@ -557,6 +557,7 @@ declare const _default: {
557
557
  updatePrompt: (number | {
558
558
  data: (string | number)[];
559
559
  dataVersion: number[];
560
+ overrideInvalidated: number[];
560
561
  promptId: (string | number)[];
561
562
  validateOnly: number[];
562
563
  })[];
@@ -1483,6 +1483,9 @@ export default {
1483
1483
  "dataVersion": [
1484
1484
  53
1485
1485
  ],
1486
+ "overrideInvalidated": [
1487
+ 41
1488
+ ],
1486
1489
  "promptId": [
1487
1490
  49,
1488
1491
  "ID!"
package/dist/types.d.ts CHANGED
@@ -11,6 +11,7 @@ export interface AnsweredPrompt {
11
11
  moot: boolean | null;
12
12
  visibility: string;
13
13
  optOut?: boolean | null;
14
+ prestageData: Record<string, any>;
14
15
  configurationData: Record<string, any>;
15
16
  gatheredConfigData: Record<string, any>;
16
17
  statusReasons: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqquest/ui",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",