@confidencesystemsinc/sdk 1.2.0 → 1.2.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.
Files changed (61) hide show
  1. package/dist/components/playbook/confidence-playbook.d.ts +12 -5
  2. package/dist/components/playbook/playbook-header.d.ts +3 -1
  3. package/dist/components/playbook-button/ConfidencePlaybookButton.d.ts +2 -1
  4. package/dist/components/task/confidence-task.d.ts +10 -3
  5. package/dist/components/task/task-buttons.d.ts +2 -1
  6. package/dist/components/task/task-expanded-content.d.ts +3 -0
  7. package/dist/components/ui/button.d.ts +1 -0
  8. package/dist/confidence_logo.png +0 -0
  9. package/dist/constants/settings.constants.d.ts +2 -2
  10. package/dist/context/confidence-context.d.ts +10 -0
  11. package/dist/hooks/task/useTaskDetails.d.ts +173 -0
  12. package/dist/hooks/usePlaybookExpandedTasks.d.ts +4 -0
  13. package/dist/hooks/useTaskButtons.d.ts +2 -1
  14. package/dist/index.cjs +15 -15
  15. package/dist/index.js +3596 -3336
  16. package/dist/services/task-details.service.d.ts +4 -0
  17. package/dist/stories/confidence-task.stories.d.ts +50 -0
  18. package/dist/theme.css +1 -1
  19. package/package.json +3 -2
  20. package/src/components/badge.tsx +116 -0
  21. package/src/components/initiate-playbook-modal/InitiatePlaybookModal.tsx +53 -0
  22. package/src/components/playbook/confidence-playbook.tsx +309 -0
  23. package/src/components/playbook/playbook-header.tsx +34 -0
  24. package/src/components/playbook-button/ConfidencePlaybookButton.tsx +79 -0
  25. package/src/components/task/confidence-task.tsx +297 -0
  26. package/src/components/task/task-buttons.tsx +35 -0
  27. package/src/components/task/task-dropdown-badge.tsx +121 -0
  28. package/src/components/task/task-expanded-content.tsx +46 -0
  29. package/src/components/task/task-left-panel.tsx +60 -0
  30. package/src/components/task/task-status-badge.tsx +23 -0
  31. package/src/components/ui/button.tsx +272 -0
  32. package/src/components/ui/header.tsx +12 -0
  33. package/src/components/ui/input.tsx +39 -0
  34. package/src/components/ui/modal.tsx +88 -0
  35. package/src/components/ui/ui-wrapper.tsx +7 -0
  36. package/src/constants/settings.constants.ts +4 -0
  37. package/src/context/confidence-context.tsx +25 -0
  38. package/src/hooks/task/useCompleteTask.ts +32 -0
  39. package/src/hooks/task/useStartTask.ts +35 -0
  40. package/src/hooks/task/useTaskDetails.ts +42 -0
  41. package/src/hooks/usePlaybook.ts +54 -0
  42. package/src/hooks/usePlaybookActions.ts +69 -0
  43. package/src/hooks/usePlaybookExpandedTasks.ts +35 -0
  44. package/src/hooks/useTaskButtons.ts +47 -0
  45. package/src/index.ts +7 -0
  46. package/src/services/complete-task.service.ts +25 -0
  47. package/src/services/initiate-playbook.service.ts +26 -0
  48. package/src/services/start-task.services.ts +27 -0
  49. package/src/services/task-details.service.ts +17 -0
  50. package/src/stories/confidence-playbook.stories.tsx +124 -0
  51. package/src/stories/confidence-task.stories.tsx +63 -0
  52. package/src/stories/initiate-playbook-modal.stories.tsx +31 -0
  53. package/src/stories/modal.stories.tsx +50 -0
  54. package/src/task-description.css +629 -0
  55. package/src/theme.css +11 -0
  56. package/src/types/playbook.types.ts +22 -0
  57. package/src/types/task.types.ts +20 -0
  58. package/src/utils/cn.ts +6 -0
  59. package/src/vite-env.d.ts +1 -0
  60. /package/dist/hooks/{task-events → task}/useCompleteTask.d.ts +0 -0
  61. /package/dist/hooks/{task-events → task}/useStartTask.d.ts +0 -0
@@ -0,0 +1,629 @@
1
+ /* start: Lexical editable View mode */
2
+ .lexical-view-mode {
3
+ width: 100%;
4
+ word-break: break-word;
5
+ }
6
+
7
+ .lexical-view-mode ul {
8
+ list-style: revert !important;
9
+ }
10
+
11
+ .editable .lexical-view-mode:hover {
12
+ cursor: text;
13
+ background-color: rgba(0,0,0,0.07);
14
+ border-radius: 1px;
15
+ outline: 4px solid rgba(0,0,0,0.07);
16
+ }
17
+
18
+ /* end: Lexical editable View mode */
19
+
20
+ /* start: collapsible container - Additional Information (view mode) */
21
+
22
+ .lexical-view-mode .Collapsible__container {
23
+ width: fit-content;
24
+ }
25
+
26
+ .lexical-view-mode .Collapsible__title {
27
+ color: #007bff !important;
28
+ cursor: pointer;
29
+ list-style: none;
30
+ display: flex;
31
+ align-items: center;
32
+ padding: 0px;
33
+ background-color: transparent !important;
34
+ margin-bottom: 4px;
35
+ }
36
+
37
+ .lexical-view-mode .Collapsible__title:hover {
38
+ color: #0069D9 !important;
39
+ }
40
+ .lexical-view-mode .Collapsible__title:hover .editor-paragraph {
41
+ text-decoration: underline !important;
42
+ }
43
+
44
+ .lexical-view-mode .Collapsible__title::marker,
45
+ .lexical-view-mode .Collapsible__title::-webkit-details-marker {
46
+ display: none;
47
+ }
48
+
49
+ .lexical-view-mode .Collapsible__title:before {
50
+ content: '\f05a';
51
+ font-family: "Font Awesome 5 Pro";
52
+ -moz-osx-font-smoothing: grayscale;
53
+ -webkit-font-smoothing: antialiased;
54
+ display: var(--fa-display, inline-block);
55
+ font-style: normal;
56
+ font-variant: normal;
57
+ line-height: 1;
58
+ text-rendering: auto;
59
+ font-weight: 900;
60
+ background: white;
61
+ margin-right: 4px;
62
+ border-radius: 30px;
63
+ }
64
+
65
+ .lexical-view-mode .Collapsible__title:hover:before {
66
+ border: 3px solid white;
67
+ margin-left: -3px;
68
+ margin-right: 1px;
69
+ color: #0069D9 !important;
70
+ }
71
+
72
+ /* end: collapsible container - Additional Information (view mode) */
73
+
74
+ /* start: horizontal rule (view mode) */
75
+
76
+ .lexical-view-mode hr {
77
+ padding: 3px 0;
78
+ border: none;
79
+ margin: 5px 0;
80
+ }
81
+
82
+ .lexical-view-mode hr:after {
83
+ content: "";
84
+ display: block;
85
+ height: 2px;
86
+ background-color: rgba(0, 0, 0, 0.1);
87
+ line-height: 2px;
88
+ }
89
+
90
+ /* end: horizontal rule (view mode) */
91
+
92
+ /* start: line spacer (view mode) */
93
+
94
+ .lexical-view-mode .editor-line-spacer {
95
+ line-height: 6px;
96
+ background: transparent;
97
+ border: 1px dashed transparent;
98
+ }
99
+
100
+ /* end: line spacer (view mode) */
101
+
102
+ /* start: Content styles */
103
+ .lexical-view-mode .other h2 {
104
+ font-size: 18px;
105
+ color: #444;
106
+ margin-bottom: 7px
107
+ }
108
+
109
+ .lexical-view-mode .other a {
110
+ color: #777;
111
+ text-decoration: underline;
112
+ font-size: 14px
113
+ }
114
+
115
+ .lexical-view-mode .other ul {
116
+ padding: 0;
117
+ margin: 0;
118
+ list-style-type: none
119
+ }
120
+
121
+ .lexical-view-mode .ltr {
122
+ text-align: left
123
+ }
124
+
125
+ .lexical-view-mode .rtl {
126
+ text-align: right
127
+ }
128
+
129
+ .lexical-view-mode .editor-shell {
130
+ border-radius: 4px;
131
+ width: 100%;
132
+ color: #1C232D;
133
+ position: relative;
134
+ font-weight: 400;
135
+ }
136
+
137
+ .lexical-view-mode .editor {
138
+ background: #fff;
139
+ position: relative
140
+ }
141
+
142
+ .lexical-view-mode .editor-input {
143
+ min-height: 150px;
144
+ resize: none;
145
+ position: relative;
146
+ -moz-tab-size: 1;
147
+ tab-size: 1;
148
+ outline: 0;
149
+ padding: 12px;
150
+ caret-color: #444
151
+ }
152
+
153
+ .lexical-view-mode .editor-placeholder {
154
+ color: #999;
155
+ overflow: hidden;
156
+ position: absolute;
157
+ text-overflow: ellipsis;
158
+ top: 15px;
159
+ left: 10px;
160
+ font-size: 15px;
161
+ -webkit-user-select: none;
162
+ user-select: none;
163
+ display: inline-block;
164
+ pointer-events: none
165
+ }
166
+
167
+ .lexical-view-mode .editor-text-bold,
168
+ .lexical-view-mode strong {
169
+ font-weight: 700 !important
170
+ }
171
+
172
+ .lexical-view-mode .editor-text-italic {
173
+ font-style: italic
174
+ }
175
+
176
+ .lexical-view-mode .editor-text-code {
177
+ background-color: rgba(0,0,0,0.1);
178
+ padding: 1px 0.25rem;
179
+ font-family: Menlo, Consolas, Monaco, monospace;
180
+ font-size: 85%;
181
+ border-radius: 4px;
182
+ color: #D70C69
183
+ }
184
+
185
+ .lexical-view-mode .editor-link {
186
+ color: #007BFF;
187
+ text-decoration: underline;
188
+ cursor: pointer;
189
+ background-color: transparent;
190
+ word-break: break-word
191
+ }
192
+
193
+ .lexical-view-mode .editor-link:hover {
194
+ color: #0062CC;
195
+ text-decoration: underline !important;
196
+ }
197
+
198
+ .lexical-view-mode .editor-code,
199
+ .lexical-view-mode pre {
200
+ background-color: #f0f2f5;
201
+ font-family: Menlo, Consolas, Monaco, monospace;
202
+ display: block;
203
+ padding: 8px 8px 8px 52px;
204
+ line-height: 1.53;
205
+ font-size: 13px;
206
+ margin: 8px 0;
207
+ border-radius: 4px;
208
+ -moz-tab-size: 2;
209
+ tab-size: 2;
210
+ overflow-x: auto;
211
+ position: relative;
212
+ word-break: break-word
213
+ }
214
+
215
+ .lexical-view-mode .editor-code:before {
216
+ content: attr(data-gutter);
217
+ position: absolute;
218
+ background-color: #eee;
219
+ left: 0;
220
+ top: 0;
221
+ border-right: 1px solid #ccc;
222
+ padding: 8px;
223
+ color: #777;
224
+ white-space: pre-wrap;
225
+ text-align: right;
226
+ min-width: 25px
227
+ }
228
+
229
+ .lexical-view-mode pre {
230
+ padding-left: 8px;
231
+ white-space: pre-wrap;
232
+ }
233
+
234
+ .lexical-view-mode pre:before {
235
+ width: 100%;
236
+ height: 23px;
237
+ border-right: 0;
238
+ }
239
+
240
+ .lexical-view-mode .editor-code:after,
241
+ .lexical-view-mode pre:after {
242
+ content: attr(data-highlight-language);
243
+ top: 0;
244
+ right: 3px;
245
+ padding: 3px;
246
+ font-size: 10px;
247
+ text-transform: uppercase;
248
+ position: absolute;
249
+ color: #00000080
250
+ }
251
+
252
+ .lexical-view-mode .editor-tokenComment {
253
+ color: #708090
254
+ }
255
+
256
+ .lexical-view-mode .editor-tokenPunctuation {
257
+ color: #999
258
+ }
259
+
260
+ .lexical-view-mode .editor-tokenProperty {
261
+ color: #905
262
+ }
263
+
264
+ .lexical-view-mode .editor-tokenSelector {
265
+ color: #690
266
+ }
267
+
268
+ .lexical-view-mode .editor-tokenOperator {
269
+ color: #9a6e3a
270
+ }
271
+
272
+ .lexical-view-mode .editor-tokenAttr {
273
+ color: #07a
274
+ }
275
+
276
+ .lexical-view-mode .editor-tokenVariable {
277
+ color: #e90
278
+ }
279
+
280
+ .lexical-view-mode .editor-tokenFunction {
281
+ color: #dd4a68
282
+ }
283
+
284
+ .lexical-view-mode .editor-paragraph,
285
+ .lexical-view-mode p {
286
+ margin: 0;
287
+ margin-bottom: .3rem;
288
+ padding: 0;
289
+ word-break: break-word
290
+ }
291
+
292
+ .lexical-view-mode .editor-paragraph:last-child {
293
+ margin-bottom: 0
294
+ }
295
+
296
+ .lexical-view-mode .editor-heading-h1,
297
+ .lexical-view-mode h1 {
298
+ font-size: 24px;
299
+ border-bottom: thin solid rgba(0, 0, 0, .1);
300
+ padding-bottom: 6px;
301
+ margin-bottom: .6em;
302
+ margin-top: 1.2em; /* remove this later */
303
+ line-height: 100%
304
+ }
305
+
306
+ .lexical-view-mode .editor-heading-h2:first-child,
307
+ .lexical-view-mode .editor-heading-h1:first-child,
308
+ .lexical-view-mode h2:first-child,
309
+ .lexical-view-mode h1:first-child {
310
+ margin-top: 0
311
+ }
312
+
313
+ .lexical-view-mode .editor-heading-h2,
314
+ .lexical-view-mode h2 {
315
+ font-size: 20px;
316
+ border-bottom: thin solid rgba(0, 0, 0, .1);
317
+ padding-bottom: 6px;
318
+ margin-bottom: .6em;
319
+ margin-top: 1.2em; /* remove this later */
320
+ line-height: 100%
321
+ }
322
+
323
+ .lexical-view-mode .editor-list-ol,
324
+ .lexical-view-mode ol {
325
+ padding: 0 0 0 15px;
326
+ margin: 0 0 0 15px;
327
+ list-style-position: outside;
328
+ margin-bottom: .3rem;
329
+ list-style-type: decimal;
330
+ }
331
+
332
+ .lexical-view-mode li ol {
333
+ margin: 0 0 0 20px;
334
+ }
335
+
336
+ .lexical-view-mode .editor-list-ol2,
337
+ .lexical-view-mode .editor-list-ol3,
338
+ .lexical-view-mode .editor-list-ol4,
339
+ .lexical-view-mode .editor-list-ol5,
340
+ .lexical-view-mode .editor-list-ol6,
341
+ .lexical-view-mode .editor-list-ol7 {
342
+ padding: 0;
343
+ list-style-position: outside
344
+ }
345
+
346
+ .lexical-view-mode .editor-list-ol2 { list-style-type: lower-alpha }
347
+ .lexical-view-mode .editor-list-ol3 { list-style-type: lower-roman }
348
+ .lexical-view-mode .editor-list-ol4 { list-style-type: decimal }
349
+ .lexical-view-mode .editor-list-ol5 { list-style-type: lower-alpha }
350
+ .lexical-view-mode .editor-list-ol6 { list-style-type: lower-roman }
351
+ .lexical-view-mode .editor-list-ol7 { list-style-type: decimal }
352
+
353
+ .lexical-view-mode .editor-list-ul,
354
+ .lexical-view-mode ul {
355
+ padding: 0 0 0 5px;
356
+ margin: 0 0 0 15px;
357
+ list-style-position: outside;
358
+ margin-bottom: .3rem
359
+ }
360
+
361
+ .lexical-view-mode li ul {
362
+ padding: 0 0 0 3px;
363
+ margin: 0 0 0 15px;
364
+ }
365
+
366
+ .lexical-view-mode .editor-list-item {
367
+ margin-bottom: 12px;
368
+ vertical-align: top;
369
+ line-height: 1.3;
370
+ padding-left: 0
371
+ }
372
+
373
+ .lexical-view-mode .editor-nested-list-item {
374
+ list-style-type: none
375
+ }
376
+
377
+ .lexical-view-mode code {
378
+ color: inherit;
379
+ word-wrap: break-word;
380
+ white-space: break-spaces !important
381
+ }
382
+
383
+ .lexical-view-mode a>code {
384
+ color: inherit
385
+ }
386
+
387
+ .lexical-view-mode pre::-webkit-scrollbar {
388
+ background: transparent;
389
+ width: 10px
390
+ }
391
+
392
+ .lexical-view-mode pre::-webkit-scrollbar-thumb {
393
+ background: #999
394
+ }
395
+
396
+ .lexical-view-mode img {
397
+ cursor: zoom-in !important;
398
+ width: auto;
399
+ height: auto;
400
+ display: block;
401
+ max-width: 250px;
402
+ max-height: 250px;
403
+ border-radius: 4px;
404
+ border: 1px solid #ccc;
405
+ }
406
+
407
+ .lexical-view-mode img:hover,
408
+ .lexical-view-mode img:focus {
409
+ outline: 3px solid rgba(0, 123,255,.3)
410
+ }
411
+
412
+ .lexical-view-mode iframe {
413
+ max-width: 100%;
414
+ height: fit-content;
415
+ width: fit-content;
416
+ border: 1px solid #ccc;
417
+ background: black;
418
+ }
419
+
420
+ /* end: Content styles */
421
+
422
+ /* start: Backwards compatibility with Quill */
423
+ .lexical-view-mode .ql-align-left {
424
+ text-align: left;
425
+ }
426
+
427
+ .lexical-view-mode .ql-align-right {
428
+ text-align: right;
429
+ }
430
+
431
+ .lexical-view-mode .ql-align-center {
432
+ text-align: center;
433
+ }
434
+
435
+ .lexical-view-mode .ql-align-justify {
436
+ text-align: justify;
437
+ }
438
+
439
+ .lexical-view-mode .ql-size-small {
440
+ font-size: 0.75em;
441
+ }
442
+
443
+ .lexical-view-mode p > a,
444
+ .lexical-view-mode li > a {
445
+ color: #007BFF;
446
+ text-decoration: underline;
447
+ cursor: pointer;
448
+ background-color: transparent;
449
+ }
450
+
451
+ .lexical-view-mode p > a:hover,
452
+ .lexical-view-mode li > a:hover {
453
+ color: #0062CC !important;
454
+ text-decoration: underline !important;
455
+ }
456
+
457
+ .lexical-view-mode .ql-size-large {
458
+ font-size: 1.25rem;
459
+ }
460
+
461
+ .lexical-view-mode .ql-indent-1 { margin-left: 20px; }
462
+ .lexical-view-mode .ql-indent-2 { margin-left: 40px; }
463
+ .lexical-view-mode .ql-indent-3 { margin-left: 60px; }
464
+ .lexical-view-mode .ql-indent-4 { margin-left: 80px; }
465
+ .lexical-view-mode .ql-indent-5 { margin-left: 100px; }
466
+ .lexical-view-mode .ql-indent-6 { margin-left: 120px; }
467
+ .lexical-view-mode .ql-indent-7 { margin-left: 140px; }
468
+ .lexical-view-mode .ql-indent-8 { margin-left: 160px; }
469
+
470
+ .lexical-view-mode ol li.ql-indent-1,
471
+ .lexical-view-mode ol li.ql-indent-2,
472
+ .lexical-view-mode ol li.ql-indent-3,
473
+ .lexical-view-mode ol li.ql-indent-4,
474
+ .lexical-view-mode ol li.ql-indent-5,
475
+ .lexical-view-mode ol li.ql-indent-6,
476
+ .lexical-view-mode ol li.ql-indent-7,
477
+ .lexical-view-mode ol li.ql-indent-8 {
478
+ margin-bottom: .3em;
479
+ }
480
+
481
+ .lexical-view-mode ul li.ql-indent-1,
482
+ .lexical-view-mode ul li.ql-indent-2,
483
+ .lexical-view-mode ul li.ql-indent-3,
484
+ .lexical-view-mode ul li.ql-indent-4,
485
+ .lexical-view-mode ul li.ql-indent-5,
486
+ .lexical-view-mode ul li.ql-indent-6,
487
+ .lexical-view-mode ul li.ql-indent-7,
488
+ .lexical-view-mode ul li.ql-indent-8 {
489
+ margin-bottom: .3em;
490
+ }
491
+
492
+ .lexical-view-mode ol li.ql-indent-1 {
493
+ counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
494
+ counter-increment: list-1;
495
+ margin-left: 0;
496
+ list-style-type: none;
497
+ }
498
+
499
+ .lexical-view-mode ol li.ql-indent-1::marker {
500
+ display: none
501
+ }
502
+
503
+ .lexical-view-mode ol li.ql-indent-1:before {
504
+ content: counter(list-1, lower-alpha) '. ';
505
+ }
506
+
507
+ .lexical-view-mode ol li.ql-indent-2 {
508
+ counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
509
+ counter-increment: list-2;
510
+ margin-left: 20px;
511
+ list-style-type: none;
512
+ }
513
+
514
+ .lexical-view-mode ol li.ql-indent-2::marker {
515
+ display: none
516
+ }
517
+
518
+ .lexical-view-mode ol li.ql-indent-2:before {
519
+ content: counter(list-2, lower-roman) '. ';
520
+ }
521
+
522
+ .lexical-view-mode ol li.ql-indent-3 {
523
+ counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
524
+ counter-increment: list-3;
525
+ margin-left: 40px;
526
+ list-style-type: none;
527
+ }
528
+
529
+ .lexical-view-mode ol li.ql-indent-3::marker {
530
+ display: none
531
+ }
532
+
533
+ .lexical-view-mode ol li.ql-indent-3:before {
534
+ content: counter(list-3, decimal) '. ';
535
+ }
536
+
537
+ .lexical-view-mode ol li.ql-indent-4 {
538
+ counter-reset: list-5 list-6 list-7 list-8 list-9;
539
+ counter-increment: list-4;
540
+ margin-left: 60px;
541
+ list-style-type: none;
542
+ }
543
+
544
+ .lexical-view-mode ol li.ql-indent-4::marker {
545
+ display: none
546
+ }
547
+
548
+ .lexical-view-mode ol li.ql-indent-4:before {
549
+ content: counter(list-4, lower-alpha) '. ';
550
+ }
551
+
552
+ .lexical-view-mode ol li.ql-indent-5 {
553
+ counter-reset: list-6 list-7 list-8 list-9;
554
+ counter-increment: list-5;
555
+ margin-left: 80px;
556
+ list-style-type: none;
557
+ }
558
+
559
+ .lexical-view-mode ol li.ql-indent-5::marker {
560
+ display: none
561
+ }
562
+
563
+ .lexical-view-mode ol li.ql-indent-5:before {
564
+ content: counter(list-5, lower-roman) '. ';
565
+ }
566
+
567
+ .lexical-view-mode ol li.ql-indent-6 {
568
+ counter-reset: list-7 list-8 list-9;
569
+ counter-increment: list-6;
570
+ margin-left: 100px;
571
+ list-style-type: none;
572
+ }
573
+
574
+ .lexical-view-mode ol li.ql-indent-6::marker {
575
+ display: none
576
+ }
577
+
578
+ .lexical-view-mode ol li.ql-indent-6:before {
579
+ content: counter(list-6, decimal) '. ';
580
+ }
581
+
582
+ .lexical-view-mode ol li.ql-indent-7 {
583
+ counter-reset: list-8 list-9;
584
+ counter-increment: list-7;
585
+ margin-left: 120px;
586
+ list-style-type: none;
587
+ }
588
+
589
+ .lexical-view-mode ol li.ql-indent-7::marker {
590
+ display: none
591
+ }
592
+
593
+ .lexical-view-mode ol li.ql-indent-7:before {
594
+ content: counter(list-7, lower-alpha) '. ';
595
+ }
596
+
597
+ .lexical-view-mode ol li.ql-indent-8 {
598
+ counter-reset: list-9;
599
+ counter-increment: list-8;
600
+ margin-left: 140px;
601
+ list-style-type: none;
602
+ }
603
+
604
+ .lexical-view-mode ol li.ql-indent-8::marker {
605
+ display: none
606
+ }
607
+
608
+ .lexical-view-mode ol li.ql-indent-8:before {
609
+ content: counter(list-8, lower-roman) '. ';
610
+ }
611
+
612
+
613
+ .lexical-view-mode ul li.ql-indent-3,
614
+ .lexical-view-mode ul li.ql-indent-6 {
615
+ list-style-type: disc
616
+ }
617
+
618
+ .lexical-view-mode ul li.ql-indent-1,
619
+ .lexical-view-mode ul li.ql-indent-4,
620
+ .lexical-view-mode ul li.ql-indent-7 {
621
+ list-style-type: circle
622
+ }
623
+
624
+ .lexical-view-mode ul li.ql-indent-2,
625
+ .lexical-view-mode ul li.ql-indent-5,
626
+ .lexical-view-mode ul li.ql-indent-8 {
627
+ list-style-type: square
628
+ }
629
+ /* end: Backwards compatibility with Quill */
package/src/theme.css ADDED
@@ -0,0 +1,11 @@
1
+ @layer theme, custom-base, custom-components, custom-utilities;
2
+
3
+ @import "tailwindcss/preflight.css" layer(custom-base);
4
+ @import "tailwindcss/theme.css" layer(theme);
5
+
6
+ .confidence-ui, .confidence-ui *, .confidence-ui *::before, .confidence-ui *::after {
7
+ @import "tailwindcss/utilities.css" layer(custom-utilities);
8
+ @import "./task-description.css" layer(custom-components);
9
+ }
10
+
11
+ @config "../tailwind.config.ts"
@@ -0,0 +1,22 @@
1
+ import { Task } from "./task.types";
2
+ export interface Playbook {
3
+ playbookInstanceId: number;
4
+ playbookInstanceName: string;
5
+ playbookId: number;
6
+ type: string;
7
+ quickComplete: boolean;
8
+ autoExpandTask: boolean;
9
+ autoStart: boolean;
10
+ leadEmail: string;
11
+ workflowStatus: string;
12
+ numberofTasks: number;
13
+ nextTaskId?: number;
14
+ tasks: Task[];
15
+ }
16
+
17
+ export const PLAYBOOK_TYPES = {
18
+ NON_SEQUENTIAL: "Non-Sequential",
19
+ SEQUENTIAL: "Sequential",
20
+ } as const;
21
+
22
+ export type PlaybookType = (typeof PLAYBOOK_TYPES)[keyof typeof PLAYBOOK_TYPES];
@@ -0,0 +1,20 @@
1
+ export const TASK_STATUS = {
2
+ OPEN: "Open",
3
+ IN_PROGRESS: "In progress",
4
+ IN_REVIEW: "In review",
5
+ COMPLETED: "Completed",
6
+ } as const;
7
+
8
+ export type TaskStatus = (typeof TASK_STATUS)[keyof typeof TASK_STATUS];
9
+
10
+ export interface Task {
11
+ taskInstanceId: number;
12
+ taskId: number;
13
+ sequenceOrder: number;
14
+ workflowStatus: TaskStatus;
15
+ taskInstanceName: string;
16
+ imageRequired: number;
17
+ hasDescription: boolean;
18
+ taskStartTime?: string;
19
+ taskCompletedTime?: string;
20
+ }
@@ -0,0 +1,6 @@
1
+ import { twMerge } from "tailwind-merge";
2
+ import { clsx, type ClassValue } from "clsx";
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />