@arbidocs/blocks 0.4.121 → 0.4.123
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.
- package/dist/{StreamedArtifactEditor-IZWYNFMM.cjs → StreamedArtifactEditor-DNBDUNP2.cjs} +5 -5
- package/dist/{StreamedArtifactEditor-IZWYNFMM.cjs.map → StreamedArtifactEditor-DNBDUNP2.cjs.map} +1 -1
- package/dist/{StreamedArtifactEditor-HTNPG4NB.js → StreamedArtifactEditor-WDHPTWX7.js} +3 -3
- package/dist/{StreamedArtifactEditor-HTNPG4NB.js.map → StreamedArtifactEditor-WDHPTWX7.js.map} +1 -1
- package/dist/agents/index.cjs +392 -328
- package/dist/agents/index.js +11 -11
- package/dist/agents/tasks/ConversationListView.d.ts +2 -1
- package/dist/agents/tasks/ConversationTurnSpeaker.d.ts +3 -1
- package/dist/agents/tasks/TaskFlow.d.ts +17 -0
- package/dist/agents/tasks/ThreadLauncher.d.ts +51 -0
- package/dist/agents/tasks/ThreadStatusLine.d.ts +33 -0
- package/dist/agents/tasks/WorkflowRunStatus.d.ts +32 -0
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +29 -3
- package/dist/agents/tasks/compact-thread-activity.d.ts +5 -2
- package/dist/agents/tasks/index.d.ts +3 -0
- package/dist/agents/workflows/StepBarFrame.d.ts +18 -17
- package/dist/agents/workflows/StepChip.d.ts +37 -0
- package/dist/agents/workflows/StepDocuments.d.ts +64 -0
- package/dist/agents/workflows/WorkflowStepBar.d.ts +1 -2
- package/dist/agents/workflows/index.d.ts +2 -0
- package/dist/agents/workflows/stepKinds.d.ts +24 -0
- package/dist/artifacts/VersionTimeline.d.ts +7 -0
- package/dist/artifacts/index.cjs +21 -21
- package/dist/artifacts/index.js +1 -1
- package/dist/calls/index.cjs +1 -1
- package/dist/calls/index.js +1 -1
- package/dist/chat/ChatPage.d.ts +1 -1
- package/dist/chat/DraftingDocChip.d.ts +22 -0
- package/dist/chat/WorkflowStepChip.d.ts +23 -5
- package/dist/chat/chat-page-types.d.ts +18 -2
- package/dist/chat/flashMessage.d.ts +6 -0
- package/dist/chat/index.cjs +144 -131
- package/dist/chat/index.d.ts +2 -0
- package/dist/chat/index.js +4 -3
- package/dist/{chunk-UDK553WP.cjs → chunk-4VCKYR4D.cjs} +4 -4
- package/dist/{chunk-UDK553WP.cjs.map → chunk-4VCKYR4D.cjs.map} +1 -1
- package/dist/{chunk-5JVPLVDT.cjs → chunk-7FZWNDPU.cjs} +163 -837
- package/dist/chunk-7FZWNDPU.cjs.map +1 -0
- package/dist/chunk-7HAM7Y5U.js +907 -0
- package/dist/chunk-7HAM7Y5U.js.map +1 -0
- package/dist/{chunk-TCNYKDYE.js → chunk-CXLVI3SB.js} +73 -40
- package/dist/chunk-CXLVI3SB.js.map +1 -0
- package/dist/chunk-HM23LXUP.cjs +976 -0
- package/dist/chunk-HM23LXUP.cjs.map +1 -0
- package/dist/{chunk-WN64RF46.js → chunk-HQH35JWC.js} +3 -3
- package/dist/{chunk-WN64RF46.js.map → chunk-HQH35JWC.js.map} +1 -1
- package/dist/{chunk-DFHDWO6U.js → chunk-MD7RVFKA.js} +132 -752
- package/dist/chunk-MD7RVFKA.js.map +1 -0
- package/dist/{chunk-65HZ36MY.js → chunk-OTDGTBAS.js} +20 -3
- package/dist/chunk-OTDGTBAS.js.map +1 -0
- package/dist/{chunk-5Y7JRY7Y.js → chunk-P5ST47VY.js} +3 -3
- package/dist/{chunk-5Y7JRY7Y.js.map → chunk-P5ST47VY.js.map} +1 -1
- package/dist/{chunk-N5S6JG7S.js → chunk-RARHNGKM.js} +735 -187
- package/dist/chunk-RARHNGKM.js.map +1 -0
- package/dist/{chunk-4MRQKBD2.js → chunk-SOZNA52K.js} +3 -3
- package/dist/{chunk-4MRQKBD2.js.map → chunk-SOZNA52K.js.map} +1 -1
- package/dist/{chunk-GIEHWHVO.cjs → chunk-U2F4SSJR.cjs} +5 -5
- package/dist/{chunk-GIEHWHVO.cjs.map → chunk-U2F4SSJR.cjs.map} +1 -1
- package/dist/{chunk-SCLMCCMU.cjs → chunk-V4V2CVNE.cjs} +778 -224
- package/dist/chunk-V4V2CVNE.cjs.map +1 -0
- package/dist/{chunk-CK4C3IQR.cjs → chunk-VMZXFYHK.cjs} +47 -6
- package/dist/chunk-VMZXFYHK.cjs.map +1 -0
- package/dist/{chunk-SVJQWLOF.cjs → chunk-W4GXDARU.cjs} +20 -3
- package/dist/chunk-W4GXDARU.cjs.map +1 -0
- package/dist/{chunk-S2KVJYBD.cjs → chunk-WV4IDVDQ.cjs} +76 -43
- package/dist/chunk-WV4IDVDQ.cjs.map +1 -0
- package/dist/{chunk-2FUJXMGO.js → chunk-Y4X3RBFI.js} +44 -6
- package/dist/{chunk-CK4C3IQR.cjs.map → chunk-Y4X3RBFI.js.map} +1 -1
- package/dist/{chunk-NYHGG2IA.cjs → chunk-ZV3BKLFY.cjs} +3 -3
- package/dist/{chunk-NYHGG2IA.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +10 -10
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/index.cjs +66 -49
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +36 -19
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/WorkflowRunThread.d.ts +4 -4
- package/dist/connection/ai.d.ts +2 -0
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +17 -17
- package/dist/home/index.js +3 -3
- package/dist/index.cjs +790 -714
- package/dist/index.js +19 -19
- package/dist/settings/index.cjs +12 -12
- package/dist/settings/index.js +4 -4
- package/dist/shell/index.cjs +10 -10
- package/dist/shell/index.js +2 -2
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +6 -5
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +5 -4
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +0 -9
- package/dist/workflow-canvas/edit.d.ts +2 -11
- package/dist/workflow-canvas/index.cjs +65 -89
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +16 -40
- package/dist/workflow-canvas/index.js.map +1 -1
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/src/blocks.css +168 -0
- package/src/workflow-canvas/canvas.css +2 -40
- package/dist/chunk-2FUJXMGO.js.map +0 -1
- package/dist/chunk-5JVPLVDT.cjs.map +0 -1
- package/dist/chunk-65HZ36MY.js.map +0 -1
- package/dist/chunk-B4SRYJLM.cjs +0 -107
- package/dist/chunk-B4SRYJLM.cjs.map +0 -1
- package/dist/chunk-DFHDWO6U.js.map +0 -1
- package/dist/chunk-HOXKR26S.js +0 -103
- package/dist/chunk-HOXKR26S.js.map +0 -1
- package/dist/chunk-N5S6JG7S.js.map +0 -1
- package/dist/chunk-S2KVJYBD.cjs.map +0 -1
- package/dist/chunk-SCLMCCMU.cjs.map +0 -1
- package/dist/chunk-SVJQWLOF.cjs.map +0 -1
- package/dist/chunk-TCNYKDYE.js.map +0 -1
|
@@ -5,8 +5,8 @@ var chunkXZIYRKLW_cjs = require('../chunk-XZIYRKLW.cjs');
|
|
|
5
5
|
var chunkXAJIKT6Y_cjs = require('../chunk-XAJIKT6Y.cjs');
|
|
6
6
|
var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
|
|
7
7
|
var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
|
|
8
|
-
require('../chunk-C54XEN5T.cjs');
|
|
9
8
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
9
|
+
require('../chunk-C54XEN5T.cjs');
|
|
10
10
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
11
11
|
require('../chunk-DES3K4SD.cjs');
|
|
12
12
|
var react = require('react');
|
package/dist/workspaces/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { CollapsibleSection, KeyValueRow } from '../chunk-LGBAZD37.js';
|
|
|
3
3
|
import { MemberAvatarStack } from '../chunk-XNOASBGW.js';
|
|
4
4
|
export { RoleBadge, WorkspaceTypeBadgeView } from '../chunk-NBV56SGU.js';
|
|
5
5
|
import { ActionLink } from '../chunk-S7PSMMRG.js';
|
|
6
|
-
import '../chunk-76JDDMSP.js';
|
|
7
6
|
import { ModalHeader } from '../chunk-TX2ZICS7.js';
|
|
7
|
+
import '../chunk-76JDDMSP.js';
|
|
8
8
|
import { fromNow, fmtDate } from '../chunk-OXF2IFXG.js';
|
|
9
9
|
import '../chunk-VUNV25KB.js';
|
|
10
10
|
import { createContext, useContext, useMemo, useState, useCallback, useId } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/coedit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.123",
|
|
4
4
|
"description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/blocks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.123",
|
|
4
4
|
"description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
"example:test:e2e": "playwright test -c examples/custom-ui/playwright.config.ts"
|
|
281
281
|
},
|
|
282
282
|
"dependencies": {
|
|
283
|
-
"@arbidocs/client": "0.4.
|
|
284
|
-
"@arbidocs/coedit": "0.4.
|
|
283
|
+
"@arbidocs/client": "0.4.123",
|
|
284
|
+
"@arbidocs/coedit": "0.4.123",
|
|
285
285
|
"@dnd-kit/core": "^6.3.1",
|
|
286
286
|
"@dnd-kit/sortable": "^10.0.0",
|
|
287
287
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
"y-protocols": "^1.0.6"
|
|
324
324
|
},
|
|
325
325
|
"peerDependencies": {
|
|
326
|
-
"@arbidocs/react": "0.4.
|
|
326
|
+
"@arbidocs/react": "0.4.123",
|
|
327
327
|
"@lexical/html": "0.35.0",
|
|
328
328
|
"@lexical/link": "0.35.0",
|
|
329
329
|
"@lexical/list": "0.35.0",
|
package/src/blocks.css
CHANGED
|
@@ -396,3 +396,171 @@
|
|
|
396
396
|
opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
|
|
397
397
|
transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
|
|
398
398
|
}
|
|
399
|
+
|
|
400
|
+
/*
|
|
401
|
+
* Workflow steps: one accent per kind of step, the same wherever a step appears — the builder's
|
|
402
|
+
* canvas, the runner's stepper, a thread's top bar, the threads list. Override the `--wf-*`
|
|
403
|
+
* variables to retheme them. `--wf-start` is the run's start (and finish); `--wf-adhoc` is what
|
|
404
|
+
* happens on a thread outside any step (messages, notifications).
|
|
405
|
+
*/
|
|
406
|
+
:root {
|
|
407
|
+
--wf-start: 262 83% 58%;
|
|
408
|
+
--wf-form: 217 91% 55%;
|
|
409
|
+
--wf-upload: 173 70% 38%;
|
|
410
|
+
--wf-agent: 280 70% 56%;
|
|
411
|
+
--wf-review: 32 95% 48%;
|
|
412
|
+
--wf-sign: 346 77% 50%;
|
|
413
|
+
--wf-email: 199 89% 44%;
|
|
414
|
+
--wf-grid: 142 64% 36%;
|
|
415
|
+
--wf-adhoc: var(--muted-foreground);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.dark {
|
|
419
|
+
--wf-start: 262 85% 72%;
|
|
420
|
+
--wf-form: 217 91% 68%;
|
|
421
|
+
--wf-upload: 173 60% 52%;
|
|
422
|
+
--wf-agent: 280 75% 72%;
|
|
423
|
+
--wf-review: 32 95% 62%;
|
|
424
|
+
--wf-sign: 346 80% 66%;
|
|
425
|
+
--wf-email: 199 85% 60%;
|
|
426
|
+
--wf-grid: 142 55% 52%;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.wf-kind-start { --wf-accent: var(--wf-start); }
|
|
430
|
+
.wf-kind-form { --wf-accent: var(--wf-form); }
|
|
431
|
+
.wf-kind-upload { --wf-accent: var(--wf-upload); }
|
|
432
|
+
.wf-kind-agent { --wf-accent: var(--wf-agent); }
|
|
433
|
+
.wf-kind-review { --wf-accent: var(--wf-review); }
|
|
434
|
+
.wf-kind-sign { --wf-accent: var(--wf-sign); }
|
|
435
|
+
.wf-kind-email_draft { --wf-accent: var(--wf-email); }
|
|
436
|
+
.wf-kind-tabular_review { --wf-accent: var(--wf-grid); }
|
|
437
|
+
.wf-kind-adhoc { --wf-accent: var(--wf-adhoc); }
|
|
438
|
+
|
|
439
|
+
.wf-badge {
|
|
440
|
+
color: hsl(var(--wf-accent));
|
|
441
|
+
background: hsl(var(--wf-accent) / 0.12);
|
|
442
|
+
}
|
|
443
|
+
.wf-kind-text { color: hsl(var(--wf-accent)); }
|
|
444
|
+
|
|
445
|
+
/*
|
|
446
|
+
* A step on a bar (`StepChip`): the canvas card in miniature — the kind's accent down its left
|
|
447
|
+
* edge and its icon in a tinted badge. Done fills the badge; running and waiting take the accent
|
|
448
|
+
* border; not reached yet is dashed and quiet; the step in view is ringed like a selected card.
|
|
449
|
+
*/
|
|
450
|
+
.wf-chip {
|
|
451
|
+
position: relative;
|
|
452
|
+
display: flex;
|
|
453
|
+
min-width: 0;
|
|
454
|
+
align-items: center;
|
|
455
|
+
gap: 0.375rem;
|
|
456
|
+
height: 2rem;
|
|
457
|
+
white-space: nowrap;
|
|
458
|
+
border-radius: 0.5rem;
|
|
459
|
+
border: 1px solid hsl(var(--border));
|
|
460
|
+
background: hsl(var(--card));
|
|
461
|
+
padding: 0 0.5rem 0 0.5625rem;
|
|
462
|
+
font-size: 0.75rem;
|
|
463
|
+
line-height: 1rem;
|
|
464
|
+
font-weight: 500;
|
|
465
|
+
color: hsl(var(--foreground));
|
|
466
|
+
box-shadow: 0 1px 2px hsl(var(--foreground) / 0.05);
|
|
467
|
+
transition: box-shadow 150ms, border-color 150ms, background-color 150ms;
|
|
468
|
+
}
|
|
469
|
+
.wf-chip::before {
|
|
470
|
+
content: '';
|
|
471
|
+
position: absolute;
|
|
472
|
+
inset: 4px auto 4px -1px;
|
|
473
|
+
width: 3px;
|
|
474
|
+
border-radius: 0 3px 3px 0;
|
|
475
|
+
background: hsl(var(--wf-accent));
|
|
476
|
+
}
|
|
477
|
+
button.wf-chip:hover { border-color: hsl(var(--wf-accent) / 0.55); }
|
|
478
|
+
.wf-chip .wf-badge {
|
|
479
|
+
display: flex;
|
|
480
|
+
width: 1.25rem;
|
|
481
|
+
height: 1.25rem;
|
|
482
|
+
flex-shrink: 0;
|
|
483
|
+
align-items: center;
|
|
484
|
+
justify-content: center;
|
|
485
|
+
border-radius: 0.375rem;
|
|
486
|
+
}
|
|
487
|
+
.wf-chip .wf-badge svg { width: 0.8125rem; height: 0.8125rem; }
|
|
488
|
+
.wf-chip[data-phase='done'] {
|
|
489
|
+
border-color: hsl(var(--wf-accent) / 0.3);
|
|
490
|
+
background: linear-gradient(hsl(var(--wf-accent) / 0.07), hsl(var(--wf-accent) / 0.07)), hsl(var(--card));
|
|
491
|
+
}
|
|
492
|
+
.wf-chip[data-phase='done'] .wf-badge {
|
|
493
|
+
color: hsl(var(--card));
|
|
494
|
+
background: hsl(var(--wf-accent));
|
|
495
|
+
}
|
|
496
|
+
.wf-chip[data-phase='running'],
|
|
497
|
+
.wf-chip[data-phase='waiting'] { border-color: hsl(var(--wf-accent) / 0.75); }
|
|
498
|
+
.wf-chip[data-phase='blocked'] {
|
|
499
|
+
border-style: dashed;
|
|
500
|
+
box-shadow: none;
|
|
501
|
+
color: hsl(var(--muted-foreground));
|
|
502
|
+
}
|
|
503
|
+
.wf-chip[data-phase='blocked']::before { opacity: 0.35; }
|
|
504
|
+
.wf-chip[data-phase='blocked'] .wf-badge { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
|
|
505
|
+
.wf-chip[data-phase='skipped'] { color: hsl(var(--muted-foreground)); box-shadow: none; }
|
|
506
|
+
.wf-chip[data-phase='skipped'] .wf-chip-label { text-decoration: line-through; }
|
|
507
|
+
.wf-chip[data-phase='skipped']::before { opacity: 0.35; }
|
|
508
|
+
.wf-chip[data-phase='failed'] { border-color: hsl(var(--destructive) / 0.6); }
|
|
509
|
+
.wf-chip[data-phase='failed'] .wf-badge { color: hsl(var(--destructive)); background: hsl(var(--destructive) / 0.12); }
|
|
510
|
+
.wf-chip[aria-current='step'] {
|
|
511
|
+
border-color: hsl(var(--wf-accent));
|
|
512
|
+
box-shadow: 0 0 0 3px hsl(var(--wf-accent) / 0.18), 0 4px 12px -6px hsl(var(--foreground) / 0.2);
|
|
513
|
+
}
|
|
514
|
+
.wf-chip[aria-current='step'][data-phase='failed'] { box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.18); }
|
|
515
|
+
|
|
516
|
+
/* The line between two steps: the finished step's colour, dashed while the next is ahead. */
|
|
517
|
+
.wf-link {
|
|
518
|
+
height: 0;
|
|
519
|
+
min-width: 0.5rem;
|
|
520
|
+
flex: 1 1 0%;
|
|
521
|
+
border-top: 1.5px dashed hsl(var(--border));
|
|
522
|
+
}
|
|
523
|
+
.wf-link[data-done] { border-top-style: solid; border-color: hsl(var(--wf-accent) / 0.5); }
|
|
524
|
+
|
|
525
|
+
/* Who acted during a step: their faces, overlapping, each ringed off the chip behind it. */
|
|
526
|
+
.wf-beads { display: flex; align-items: center; flex-shrink: 0; }
|
|
527
|
+
.wf-beads > * {
|
|
528
|
+
display: flex;
|
|
529
|
+
border-radius: 9999px;
|
|
530
|
+
box-shadow: 0 0 0 1.5px hsl(var(--card));
|
|
531
|
+
}
|
|
532
|
+
.wf-beads > * + * { margin-left: -0.3rem; }
|
|
533
|
+
|
|
534
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
535
|
+
.wf-chip[data-phase='waiting'][aria-current='step'] .wf-badge { animation: wf-waiting 2.4s ease-in-out infinite; }
|
|
536
|
+
}
|
|
537
|
+
@keyframes wf-waiting {
|
|
538
|
+
50% { box-shadow: 0 0 0 3px hsl(var(--wf-accent) / 0.25); }
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/*
|
|
542
|
+
* The message a link took the reader to (`flashMessage`): a gentle highlight on the message
|
|
543
|
+
* itself, on the theme's accent and ring, that fades out.
|
|
544
|
+
*/
|
|
545
|
+
[data-deep-link-target] [data-slot='message'],
|
|
546
|
+
[data-slot='message'][data-deep-link-target] {
|
|
547
|
+
border-radius: var(--radius);
|
|
548
|
+
animation: deep-link-flash 1.6s ease-out;
|
|
549
|
+
}
|
|
550
|
+
@keyframes deep-link-flash {
|
|
551
|
+
from {
|
|
552
|
+
background-color: hsl(var(--accent));
|
|
553
|
+
box-shadow: 0 0 0 2px hsl(var(--ring) / 0.45);
|
|
554
|
+
}
|
|
555
|
+
to {
|
|
556
|
+
background-color: hsl(var(--background));
|
|
557
|
+
box-shadow: 0 0 0 2px transparent;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
@media (prefers-reduced-motion: reduce) {
|
|
561
|
+
[data-deep-link-target] [data-slot='message'],
|
|
562
|
+
[data-slot='message'][data-deep-link-target] {
|
|
563
|
+
animation: none;
|
|
564
|
+
box-shadow: 0 0 0 2px hsl(var(--ring) / 0.45);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @arbidocs/blocks/workflow-canvas.css: the workflow builder's canvas. Import it once, next to
|
|
3
3
|
* `blocks.css`, where `@arbidocs/blocks/workflow-canvas` is used. The graph library's structural
|
|
4
|
-
* rules
|
|
5
|
-
*
|
|
4
|
+
* rules and its surfaces on the theme tokens. Each kind of step's accent (`.wf-kind-*`, the `--wf-*`
|
|
5
|
+
* variables) is in `blocks.css`: the thread bar and the threads list show the same colours.
|
|
6
6
|
*/
|
|
7
7
|
@import '@xyflow/react/dist/base.css';
|
|
8
8
|
|
|
9
|
-
:root {
|
|
10
|
-
--wf-start: 262 83% 58%;
|
|
11
|
-
--wf-form: 217 91% 55%;
|
|
12
|
-
--wf-upload: 173 70% 38%;
|
|
13
|
-
--wf-agent: 280 70% 56%;
|
|
14
|
-
--wf-review: 32 95% 48%;
|
|
15
|
-
--wf-sign: 346 77% 50%;
|
|
16
|
-
--wf-email: 199 89% 44%;
|
|
17
|
-
--wf-grid: 142 64% 36%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.dark {
|
|
21
|
-
--wf-start: 262 85% 72%;
|
|
22
|
-
--wf-form: 217 91% 68%;
|
|
23
|
-
--wf-upload: 173 60% 52%;
|
|
24
|
-
--wf-agent: 280 75% 72%;
|
|
25
|
-
--wf-review: 32 95% 62%;
|
|
26
|
-
--wf-sign: 346 80% 66%;
|
|
27
|
-
--wf-email: 199 85% 60%;
|
|
28
|
-
--wf-grid: 142 55% 52%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
9
|
.react-flow {
|
|
32
10
|
--xy-edge-stroke-default: hsl(var(--muted-foreground) / 0.45);
|
|
33
11
|
--xy-edge-stroke-width-default: 1.5;
|
|
@@ -43,16 +21,6 @@
|
|
|
43
21
|
--xy-minimap-node-background-color-default: hsl(var(--muted-foreground) / 0.35);
|
|
44
22
|
}
|
|
45
23
|
|
|
46
|
-
/* A step's accent: its kind's colour. */
|
|
47
|
-
.wf-kind-start { --wf-accent: var(--wf-start); }
|
|
48
|
-
.wf-kind-form { --wf-accent: var(--wf-form); }
|
|
49
|
-
.wf-kind-upload { --wf-accent: var(--wf-upload); }
|
|
50
|
-
.wf-kind-agent { --wf-accent: var(--wf-agent); }
|
|
51
|
-
.wf-kind-review { --wf-accent: var(--wf-review); }
|
|
52
|
-
.wf-kind-sign { --wf-accent: var(--wf-sign); }
|
|
53
|
-
.wf-kind-email_draft { --wf-accent: var(--wf-email); }
|
|
54
|
-
.wf-kind-tabular_review { --wf-accent: var(--wf-grid); }
|
|
55
|
-
|
|
56
24
|
.wf-node {
|
|
57
25
|
position: relative;
|
|
58
26
|
border-radius: 0.75rem;
|
|
@@ -77,12 +45,6 @@
|
|
|
77
45
|
border-color: hsl(var(--wf-accent));
|
|
78
46
|
box-shadow: 0 0 0 3px hsl(var(--wf-accent) / 0.22), 0 10px 24px -8px hsl(var(--foreground) / 0.18);
|
|
79
47
|
}
|
|
80
|
-
.wf-badge {
|
|
81
|
-
color: hsl(var(--wf-accent));
|
|
82
|
-
background: hsl(var(--wf-accent) / 0.12);
|
|
83
|
-
}
|
|
84
|
-
.wf-kind-text { color: hsl(var(--wf-accent)); }
|
|
85
|
-
|
|
86
48
|
/* The start: a pill in its own colour. */
|
|
87
49
|
.wf-start {
|
|
88
50
|
border-radius: 9999px;
|