@nyaruka/temba-components 0.38.0 → 0.39.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.
@@ -179,6 +179,7 @@ export interface WebResponse {
179
179
  url?: string;
180
180
  headers: Headers;
181
181
  controller?: AbortController;
182
+ redirected?: boolean;
182
183
  }
183
184
 
184
185
  export const postUrl = (
@@ -213,6 +214,8 @@ export const postUrl = (
213
214
  json,
214
215
  headers: response.headers,
215
216
  status: response.status,
217
+ redirected: response.redirected,
218
+ url: response.url,
216
219
  });
217
220
  });
218
221
  })
@@ -43,6 +43,7 @@ export enum Icon {
43
43
  group = 'users-01',
44
44
  group_smart = 'atom-01',
45
45
  help = 'help-circle',
46
+ home = 'home-smile',
46
47
  inbox = 'inbox-01',
47
48
  label = 'tag-01',
48
49
  language = 'globe-01',
@@ -15,13 +15,13 @@ describe('temba-label', () => {
15
15
  });
16
16
 
17
17
  it('renders icon', async () => {
18
- const label: Label = await getLabel('Default', { icon: 'home' });
18
+ const label: Label = await getLabel('Default', { icon: 'check' });
19
19
  await assertScreenshot('label/default-icon', getClip(label));
20
20
  });
21
21
 
22
22
  it('renders shadow', async () => {
23
23
  const label: Label = await getLabel('Shadow', {
24
- icon: 'loader',
24
+ icon: 'check',
25
25
  shadow: true,
26
26
  });
27
27
  await assertScreenshot('label/shadow', getClip(label));
@@ -58,7 +58,7 @@ describe('temba-label', () => {
58
58
 
59
59
  it('renders danger', async () => {
60
60
  const label: Label = await getLabel('Danger', {
61
- icon: 'alert-triangle',
61
+ icon: 'check',
62
62
  danger: true,
63
63
  });
64
64
  await assertScreenshot('label/danger', getClip(label));
@@ -66,7 +66,7 @@ describe('temba-label', () => {
66
66
 
67
67
  it('renders custom', async () => {
68
68
  const label: Label = await getLabel('Custom Orange', {
69
- icon: 'tool',
69
+ icon: 'check',
70
70
  backgroundColor: 'rgb(240, 176, 29)',
71
71
  textColor: '#ffff',
72
72
  });