@truedat/audit 7.5.9 → 7.5.11

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.
Files changed (65) hide show
  1. package/package.json +45 -71
  2. package/src/components/ContentFilters.js +3 -1
  3. package/src/components/NotificationEvent.js +2 -2
  4. package/src/components/NotificationsMenu.js +2 -10
  5. package/src/components/ShareLinkForm.js +33 -32
  6. package/src/components/ShareLinkPopup.js +1 -1
  7. package/src/components/Subscription.js +0 -1
  8. package/src/components/SubscriptionActions.js +11 -7
  9. package/src/components/SubscriptionCrumbs.js +2 -3
  10. package/src/components/SubscriptionEdit.js +0 -1
  11. package/src/components/SubscriptionForm.js +305 -310
  12. package/src/components/SubscriptionLoader.js +2 -2
  13. package/src/components/SubscriptionNew.js +0 -1
  14. package/src/components/SubscriptionRoutes.js +58 -56
  15. package/src/components/SubscriptionWatchForm.js +0 -1
  16. package/src/components/Subscriptions.js +4 -7
  17. package/src/components/SubscriptionsLoader.js +1 -1
  18. package/src/components/__tests__/NotificationEvent.spec.js +1 -4
  19. package/src/components/__tests__/NotificationsMenu.spec.js +0 -1
  20. package/src/components/__tests__/ShareLinkForm.spec.js +23 -17
  21. package/src/components/__tests__/ShareLinkPopup.spec.js +0 -1
  22. package/src/components/__tests__/Subscription.spec.js +0 -1
  23. package/src/components/__tests__/SubscriptionActions.spec.js +0 -1
  24. package/src/components/__tests__/SubscriptionCrumbs.spec.js +5 -5
  25. package/src/components/__tests__/SubscriptionEdit.spec.js +9 -8
  26. package/src/components/__tests__/SubscriptionForm.spec.js +141 -125
  27. package/src/components/__tests__/SubscriptionLoader.spec.js +0 -1
  28. package/src/components/__tests__/SubscriptionNew.spec.js +5 -5
  29. package/src/components/__tests__/SubscriptionRoutes.spec.js +44 -6
  30. package/src/components/__tests__/SubscriptionWatchForm.spec.js +37 -34
  31. package/src/components/__tests__/Subscriptions.spec.js +0 -1
  32. package/src/components/__tests__/SubscriptionsLoader.spec.js +0 -1
  33. package/src/components/__tests__/__snapshots__/NotificationEvent.spec.js.snap +6 -6
  34. package/src/components/__tests__/__snapshots__/NotificationsMenu.spec.js.snap +7 -7
  35. package/src/components/__tests__/__snapshots__/ShareLinkForm.spec.js.snap +6 -6
  36. package/src/components/__tests__/__snapshots__/Subscription.spec.js.snap +4 -5
  37. package/src/components/__tests__/__snapshots__/SubscriptionActions.spec.js.snap +0 -1
  38. package/src/components/__tests__/__snapshots__/SubscriptionCrumbs.spec.js.snap +20 -30
  39. package/src/components/__tests__/__snapshots__/SubscriptionEdit.spec.js.snap +75 -25
  40. package/src/components/__tests__/__snapshots__/SubscriptionForm.spec.js.snap +23 -23
  41. package/src/components/__tests__/__snapshots__/SubscriptionNew.spec.js.snap +64 -25
  42. package/src/components/__tests__/__snapshots__/SubscriptionRoutes.spec.js.snap +710 -23
  43. package/src/components/__tests__/__snapshots__/SubscriptionWatchForm.spec.js.snap +83 -80
  44. package/src/components/__tests__/__snapshots__/Subscriptions.spec.js.snap +28 -37
  45. package/src/index.js +1 -2
  46. package/src/reducers/__tests__/auditMessage.spec.js +3 -3
  47. package/src/reducers/__tests__/auditRedirect.spec.js +2 -2
  48. package/src/reducers/__tests__/events.spec.js +1 -1
  49. package/src/reducers/__tests__/searchSubscription.spec.js +5 -5
  50. package/src/reducers/__tests__/subscription.spec.js +1 -1
  51. package/src/reducers/__tests__/subscriptionUpdating.spec.js +6 -6
  52. package/src/reducers/__tests__/subscriptions.spec.js +1 -1
  53. package/src/reducers/auditMessage.js +1 -1
  54. package/src/reducers/events.js +1 -1
  55. package/src/sagas/__tests__/deleteSubscription.spec.js +7 -7
  56. package/src/sagas/__tests__/fetchSubscription.spec.js +2 -2
  57. package/src/sagas/__tests__/readNotification.spec.js +2 -2
  58. package/src/sagas/__tests__/updateSubscription.spec.js +8 -8
  59. package/src/sagas/createSubscription.js +3 -3
  60. package/src/sagas/deleteSubscription.js +1 -1
  61. package/src/sagas/readNotification.js +1 -1
  62. package/src/sagas/updateSubscription.js +4 -4
  63. package/src/selectors/__tests__/getRecipients.spec.js +0 -32
  64. package/src/selectors/getRecipients.js +0 -34
  65. package/src/selectors/index.js +0 -1
@@ -1,26 +1,713 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<SubscriptionRoutes /> matches the latest snapshot 1`] = `
4
- <Switch>
5
- <Route
6
- exact={true}
7
- path="/subscriptions"
8
- render={[Function]}
9
- />
10
- <Route
11
- exact={true}
12
- path="/subscriptions/new"
13
- render={[Function]}
14
- />
15
- <Route
16
- exact={true}
17
- path="/subscriptions/:id/edit"
18
- render={[Function]}
19
- />
20
- <Route
21
- exact={true}
22
- path="/subscriptions/:id"
23
- render={[Function]}
24
- />
25
- </Switch>
3
+ exports[`<SubscriptionRoutes /> matches the latest snapshot for route SUBSCRIPTION 1`] = `<div />`;
4
+
5
+ exports[`<SubscriptionRoutes /> matches the latest snapshot for route SUBSCRIPTION_EDIT 1`] = `<div />`;
6
+
7
+ exports[`<SubscriptionRoutes /> matches the latest snapshot for route SUBSCRIPTION_NEW 1`] = `
8
+ <div>
9
+ <div
10
+ class="ui breadcrumb"
11
+ >
12
+ <a
13
+ class="section"
14
+ data-discover="true"
15
+ href="/subscriptions"
16
+ >
17
+ subscriptions.header
18
+ </a>
19
+ <i
20
+ aria-hidden="true"
21
+ class="right angle icon divider"
22
+ />
23
+ <div
24
+ class="active section"
25
+ >
26
+ subscriptions.actions.create
27
+ </div>
28
+ </div>
29
+ <div
30
+ class="ui segment ui container"
31
+ >
32
+ <h2
33
+ class="ui header"
34
+ >
35
+ <i
36
+ aria-hidden="true"
37
+ class="check icon"
38
+ />
39
+ <div
40
+ class="content"
41
+ >
42
+ subscriptions.actions.create
43
+ </div>
44
+ </h2>
45
+ <form
46
+ class="ui form"
47
+ >
48
+ <div
49
+ class="required field subscription-form-radio-group"
50
+ >
51
+ <label>
52
+ subscriptions.subscriber
53
+ </label>
54
+ <div
55
+ class="ui checked radio checkbox"
56
+ >
57
+ <input
58
+ checked=""
59
+ class="hidden"
60
+ name="role"
61
+ readonly=""
62
+ role="radio"
63
+ tabindex="0"
64
+ type="radio"
65
+ value="role"
66
+ />
67
+ <label>
68
+ <i
69
+ aria-hidden="true"
70
+ class="student icon"
71
+ />
72
+ role
73
+ </label>
74
+ </div>
75
+ <div
76
+ class="ui radio checkbox"
77
+ >
78
+ <input
79
+ class="hidden"
80
+ name="taxonomy_role"
81
+ readonly=""
82
+ role="radio"
83
+ tabindex="0"
84
+ type="radio"
85
+ value="taxonomy_role"
86
+ />
87
+ <label>
88
+ <i
89
+ aria-hidden="true"
90
+ class="student icon"
91
+ />
92
+ taxonomy_role
93
+ </label>
94
+ </div>
95
+ <div
96
+ class="ui radio checkbox"
97
+ >
98
+ <input
99
+ class="hidden"
100
+ name="email"
101
+ readonly=""
102
+ role="radio"
103
+ tabindex="0"
104
+ type="radio"
105
+ value="email"
106
+ />
107
+ <label>
108
+ <i
109
+ aria-hidden="true"
110
+ class="envelope icon"
111
+ />
112
+ email
113
+ </label>
114
+ </div>
115
+ <div
116
+ class="ui radio checkbox"
117
+ >
118
+ <input
119
+ class="hidden"
120
+ name="user"
121
+ readonly=""
122
+ role="radio"
123
+ tabindex="0"
124
+ type="radio"
125
+ value="user"
126
+ />
127
+ <label>
128
+ <i
129
+ aria-hidden="true"
130
+ class="user icon"
131
+ />
132
+ user
133
+ </label>
134
+ </div>
135
+ </div>
136
+ <div
137
+ aria-disabled="false"
138
+ aria-expanded="false"
139
+ class="ui search selection dropdown"
140
+ role="combobox"
141
+ >
142
+ <input
143
+ aria-autocomplete="list"
144
+ autocomplete="off"
145
+ class="search"
146
+ tabindex="0"
147
+ type="text"
148
+ value=""
149
+ />
150
+ <div
151
+ aria-atomic="true"
152
+ aria-live="polite"
153
+ class="divider default text"
154
+ role="alert"
155
+ >
156
+ role.search.placeholder
157
+ </div>
158
+ <i
159
+ aria-hidden="true"
160
+ class="dropdown icon"
161
+ />
162
+ <div
163
+ aria-multiselectable="false"
164
+ class="menu transition"
165
+ role="listbox"
166
+ >
167
+ <div
168
+ class="message"
169
+ >
170
+ No results found.
171
+ </div>
172
+ </div>
173
+ </div>
174
+ <div
175
+ class="required field subscription-form-radio-group"
176
+ >
177
+ <label>
178
+ subscriptions.resource
179
+ </label>
180
+ <div
181
+ class="ui radio checkbox"
182
+ >
183
+ <input
184
+ class="hidden"
185
+ readonly=""
186
+ role="radio"
187
+ tabindex="0"
188
+ type="radio"
189
+ value="domain"
190
+ />
191
+ <label>
192
+ <i
193
+ aria-hidden="true"
194
+ class="sitemap icon"
195
+ />
196
+ domain
197
+ </label>
198
+ </div>
199
+ <div
200
+ class="ui radio checkbox"
201
+ >
202
+ <input
203
+ class="hidden"
204
+ readonly=""
205
+ role="radio"
206
+ tabindex="0"
207
+ type="radio"
208
+ value="domains"
209
+ />
210
+ <label>
211
+ <i
212
+ aria-hidden="true"
213
+ class="sitemap icon"
214
+ />
215
+ domains
216
+ </label>
217
+ </div>
218
+ <div
219
+ class="ui radio checkbox"
220
+ >
221
+ <input
222
+ class="hidden"
223
+ readonly=""
224
+ role="radio"
225
+ tabindex="0"
226
+ type="radio"
227
+ value="concept"
228
+ />
229
+ <label>
230
+ <i
231
+ aria-hidden="true"
232
+ class="book icon"
233
+ />
234
+ concept
235
+ </label>
236
+ </div>
237
+ <div
238
+ class="ui radio checkbox"
239
+ >
240
+ <input
241
+ class="hidden"
242
+ readonly=""
243
+ role="radio"
244
+ tabindex="0"
245
+ type="radio"
246
+ value="data_structure"
247
+ />
248
+ <label>
249
+ <i
250
+ aria-hidden="true"
251
+ class="block layout icon"
252
+ />
253
+ data_structure
254
+ </label>
255
+ </div>
256
+ <div
257
+ class="ui disabled radio checkbox"
258
+ >
259
+ <input
260
+ class="hidden"
261
+ disabled=""
262
+ readonly=""
263
+ role="radio"
264
+ tabindex="-1"
265
+ type="radio"
266
+ value="source"
267
+ />
268
+ <label>
269
+ <i
270
+ aria-hidden="true"
271
+ class="plug icon"
272
+ />
273
+ source
274
+ </label>
275
+ </div>
276
+ <div
277
+ class="ui disabled radio checkbox"
278
+ >
279
+ <input
280
+ class="hidden"
281
+ disabled=""
282
+ readonly=""
283
+ role="radio"
284
+ tabindex="-1"
285
+ type="radio"
286
+ value="rule"
287
+ />
288
+ <label>
289
+ <i
290
+ aria-hidden="true"
291
+ class="clipboard check icon"
292
+ />
293
+ rule
294
+ </label>
295
+ </div>
296
+ </div>
297
+ <div
298
+ class="required field"
299
+ >
300
+ <label>
301
+ subscriptions.periodicity
302
+ </label>
303
+ <div
304
+ aria-expanded="false"
305
+ class="ui selection dropdown"
306
+ required=""
307
+ role="listbox"
308
+ tabindex="0"
309
+ >
310
+ <div
311
+ aria-atomic="true"
312
+ aria-live="polite"
313
+ class="divider default text"
314
+ role="alert"
315
+ >
316
+ subscriptions.periodicity
317
+ </div>
318
+ <i
319
+ aria-hidden="true"
320
+ class="dropdown icon"
321
+ />
322
+ <div
323
+ class="menu transition"
324
+ >
325
+ <div
326
+ aria-checked="false"
327
+ aria-selected="true"
328
+ class="selected item"
329
+ role="option"
330
+ style="pointer-events: all;"
331
+ >
332
+ <span
333
+ class="text"
334
+ >
335
+ daily
336
+ </span>
337
+ </div>
338
+ <div
339
+ aria-checked="false"
340
+ aria-selected="false"
341
+ class="item"
342
+ role="option"
343
+ style="pointer-events: all;"
344
+ >
345
+ <span
346
+ class="text"
347
+ >
348
+ minutely
349
+ </span>
350
+ </div>
351
+ <div
352
+ aria-checked="false"
353
+ aria-selected="false"
354
+ class="item"
355
+ role="option"
356
+ style="pointer-events: all;"
357
+ >
358
+ <span
359
+ class="text"
360
+ >
361
+ hourly
362
+ </span>
363
+ </div>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ <div
368
+ class="disabled required field"
369
+ >
370
+ <label>
371
+ subscriptions.events
372
+ </label>
373
+ <div
374
+ aria-disabled="true"
375
+ aria-expanded="false"
376
+ aria-multiselectable="true"
377
+ class="ui disabled multiple selection dropdown"
378
+ required=""
379
+ role="listbox"
380
+ tabindex="-1"
381
+ >
382
+ <div
383
+ aria-atomic="true"
384
+ aria-live="polite"
385
+ class="divider default text"
386
+ role="alert"
387
+ >
388
+ subscriptions.events
389
+ </div>
390
+ <i
391
+ aria-hidden="true"
392
+ class="dropdown icon"
393
+ />
394
+ <div
395
+ class="menu transition"
396
+ />
397
+ </div>
398
+ </div>
399
+ <div
400
+ class="actions"
401
+ >
402
+ <a
403
+ class="ui secondary button"
404
+ data-discover="true"
405
+ href="/subscriptions/new"
406
+ role="button"
407
+ >
408
+ actions.cancel
409
+ </a>
410
+ <button
411
+ class="ui primary disabled button"
412
+ disabled=""
413
+ tabindex="-1"
414
+ type="submit"
415
+ >
416
+ actions.save
417
+ </button>
418
+ </div>
419
+ </form>
420
+ </div>
421
+ </div>
422
+ `;
423
+
424
+ exports[`<SubscriptionRoutes /> matches the latest snapshot for route SUBSCRIPTIONS 1`] = `
425
+ <div>
426
+ <div
427
+ class="ui segment"
428
+ >
429
+ <h2
430
+ class="ui header subscription-header"
431
+ >
432
+ <a
433
+ class="ui primary button"
434
+ data-discover="true"
435
+ href="/subscriptions/new"
436
+ role="button"
437
+ >
438
+ subscriptions.actions.create
439
+ </a>
440
+ <i
441
+ aria-hidden="true"
442
+ class="check circular icon"
443
+ />
444
+ <div
445
+ class="content"
446
+ >
447
+ subscriptions.header
448
+ <div
449
+ class="sub header"
450
+ >
451
+ subscriptions.subheader
452
+ </div>
453
+ </div>
454
+ </h2>
455
+ <form
456
+ class="ui form"
457
+ >
458
+ <h5
459
+ class="ui header"
460
+ >
461
+ subscriptions.filters
462
+ </h5>
463
+ <div
464
+ class="field subscriptions-checkbox-filters"
465
+ >
466
+ <label>
467
+ subscriptions.subscriber
468
+ </label>
469
+ <div
470
+ class="ui checked checkbox"
471
+ >
472
+ <input
473
+ checked=""
474
+ class="hidden"
475
+ readonly=""
476
+ tabindex="0"
477
+ type="checkbox"
478
+ />
479
+ <label>
480
+ <i
481
+ aria-hidden="true"
482
+ class="student icon"
483
+ />
484
+ role
485
+ </label>
486
+ </div>
487
+ <div
488
+ class="ui checked checkbox"
489
+ >
490
+ <input
491
+ checked=""
492
+ class="hidden"
493
+ readonly=""
494
+ tabindex="0"
495
+ type="checkbox"
496
+ />
497
+ <label>
498
+ <i
499
+ aria-hidden="true"
500
+ class="envelope icon"
501
+ />
502
+ email
503
+ </label>
504
+ </div>
505
+ <div
506
+ class="ui checked checkbox"
507
+ >
508
+ <input
509
+ checked=""
510
+ class="hidden"
511
+ readonly=""
512
+ tabindex="0"
513
+ type="checkbox"
514
+ />
515
+ <label>
516
+ <i
517
+ aria-hidden="true"
518
+ class="user icon"
519
+ />
520
+ user
521
+ </label>
522
+ </div>
523
+ <div
524
+ class="ui checked checkbox"
525
+ >
526
+ <input
527
+ checked=""
528
+ class="hidden"
529
+ readonly=""
530
+ tabindex="0"
531
+ type="checkbox"
532
+ />
533
+ <label>
534
+ <i
535
+ aria-hidden="true"
536
+ class="student icon"
537
+ />
538
+ taxonomy_role
539
+ </label>
540
+ </div>
541
+ </div>
542
+ <div
543
+ class="field subscriptions-checkbox-filters"
544
+ >
545
+ <label>
546
+ subscriptions.resource
547
+ </label>
548
+ <div
549
+ class="ui checked checkbox"
550
+ >
551
+ <input
552
+ checked=""
553
+ class="hidden"
554
+ readonly=""
555
+ tabindex="0"
556
+ type="checkbox"
557
+ />
558
+ <label>
559
+ <i
560
+ aria-hidden="true"
561
+ class="block layout icon"
562
+ />
563
+ data_structure
564
+ </label>
565
+ </div>
566
+ <div
567
+ class="ui checked checkbox"
568
+ >
569
+ <input
570
+ checked=""
571
+ class="hidden"
572
+ readonly=""
573
+ tabindex="0"
574
+ type="checkbox"
575
+ />
576
+ <label>
577
+ <i
578
+ aria-hidden="true"
579
+ class="sitemap icon"
580
+ />
581
+ domain
582
+ </label>
583
+ </div>
584
+ <div
585
+ class="ui checked checkbox"
586
+ >
587
+ <input
588
+ checked=""
589
+ class="hidden"
590
+ readonly=""
591
+ tabindex="0"
592
+ type="checkbox"
593
+ />
594
+ <label>
595
+ <i
596
+ aria-hidden="true"
597
+ class="sitemap icon"
598
+ />
599
+ domains
600
+ </label>
601
+ </div>
602
+ <div
603
+ class="ui checked checkbox"
604
+ >
605
+ <input
606
+ checked=""
607
+ class="hidden"
608
+ readonly=""
609
+ tabindex="0"
610
+ type="checkbox"
611
+ />
612
+ <label>
613
+ <i
614
+ aria-hidden="true"
615
+ class="book icon"
616
+ />
617
+ concept
618
+ </label>
619
+ </div>
620
+ <div
621
+ class="ui checked checkbox"
622
+ >
623
+ <input
624
+ checked=""
625
+ class="hidden"
626
+ readonly=""
627
+ tabindex="0"
628
+ type="checkbox"
629
+ />
630
+ <label>
631
+ <i
632
+ aria-hidden="true"
633
+ class="clipboard check icon"
634
+ />
635
+ rule
636
+ </label>
637
+ </div>
638
+ <div
639
+ class="ui checked checkbox"
640
+ >
641
+ <input
642
+ checked=""
643
+ class="hidden"
644
+ readonly=""
645
+ tabindex="0"
646
+ type="checkbox"
647
+ />
648
+ <label>
649
+ <i
650
+ aria-hidden="true"
651
+ class="tags icon"
652
+ />
653
+ implementation
654
+ </label>
655
+ </div>
656
+ <div
657
+ class="ui checked checkbox"
658
+ >
659
+ <input
660
+ checked=""
661
+ class="hidden"
662
+ readonly=""
663
+ tabindex="0"
664
+ type="checkbox"
665
+ />
666
+ <label>
667
+ <i
668
+ aria-hidden="true"
669
+ class="plug icon"
670
+ />
671
+ source
672
+ </label>
673
+ </div>
674
+ </div>
675
+ </form>
676
+ <div
677
+ class="ui label rules-label-results"
678
+ >
679
+ subscriptions.retrieved.results
680
+ </div>
681
+ <table
682
+ class="ui selectable table subscription-table"
683
+ >
684
+ <thead
685
+ class=""
686
+ >
687
+ <tr
688
+ class=""
689
+ >
690
+ <th
691
+ class=""
692
+ >
693
+ subscriptions.subscriber
694
+ </th>
695
+ <th
696
+ class=""
697
+ >
698
+ subscriptions.resource
699
+ </th>
700
+ <th
701
+ class=""
702
+ >
703
+ subscriptions.periodicity
704
+ </th>
705
+ </tr>
706
+ </thead>
707
+ <tbody
708
+ class=""
709
+ />
710
+ </table>
711
+ </div>
712
+ </div>
26
713
  `;