@eworkbase/plugin-ai-rules 0.8.1 → 0.8.3

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/ui/style.css CHANGED
@@ -2515,20 +2515,41 @@
2515
2515
  line-height: 1.5;
2516
2516
  }
2517
2517
 
2518
- .workbase-plugin-error {
2519
- border: 1px solid color-mix(in srgb, var(--color-danger) 24%, var(--color-border));
2518
+ .workbase-plugin-error, .workbase-inline-error, .workbase-error-alert {
2519
+ --workbase-notice-accent: var(--color-danger);
2520
+ --workbase-error-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5m0 3h.01'/%3E%3C/svg%3E");
2521
+ border: 1px solid color-mix(in srgb, var(--workbase-notice-accent) 16%, var(--color-border));
2522
+ border-radius: var(--workbase-panel-radius);
2520
2523
  min-width: 0;
2521
- max-height: 100%;
2522
2524
  color: var(--color-foreground);
2523
- background: color-mix(in srgb, var(--color-danger) 5%, var(--color-surface));
2524
- text-align: left;
2525
+ background: color-mix(in srgb, var(--workbase-notice-accent) 2%, var(--color-surface));
2526
+ text-align: start;
2525
2527
  overflow-wrap: anywhere;
2528
+ flex-shrink: 0;
2529
+ padding: 12px 16px;
2530
+ }
2531
+
2532
+ .workbase-feedback-page > :is(.workbase-plugin-error, .workbase-inline-error, .mantine-Alert-root, .workbase-error-reopen, .workbase-page-notice) {
2533
+ margin: 0 var(--workbase-page-inset) var(--workbase-panel-gap);
2534
+ }
2535
+
2536
+ .workbase-feedback-page > :is(.workbase-plugin-error, .workbase-inline-error, .mantine-Alert-root, .workbase-error-reopen, .workbase-page-notice):first-child {
2537
+ margin-block-start: var(--workbase-panel-gap);
2538
+ }
2539
+
2540
+ .workbase-error-header:before, .workbase-inline-error:before, .workbase-error-alert > .mantine-Alert-wrapper:not(:has( > .mantine-Alert-icon)):before {
2541
+ content: "";
2542
+ background: var(--workbase-notice-accent);
2543
+ height: 18px;
2544
+ mask: var(--workbase-error-icon) center / contain no-repeat;
2545
+ flex: 0 0 18px;
2546
+ }
2547
+
2548
+ .workbase-plugin-error {
2526
2549
  scrollbar-color: var(--color-border-strong) transparent;
2527
2550
  scrollbar-width: thin;
2528
- border-radius: 8px;
2529
- flex-shrink: 0;
2530
- padding: 16px 20px;
2531
- overflow-y: auto;
2551
+ max-height: 100%;
2552
+ overflow: auto;
2532
2553
  }
2533
2554
 
2534
2555
  .workbase-plugin-error:focus-visible {
@@ -2537,116 +2558,182 @@
2537
2558
  }
2538
2559
 
2539
2560
  .workbase-error-header {
2540
- justify-content: space-between;
2541
- align-items: baseline;
2542
- gap: 12px;
2561
+ align-items: center;
2562
+ gap: 10px;
2543
2563
  display: flex;
2544
2564
  }
2545
2565
 
2546
2566
  .workbase-plugin-error .workbase-error-title {
2547
- color: var(--color-danger);
2567
+ min-width: 0;
2568
+ color: var(--color-foreground);
2569
+ font-size: var(--workbase-type-body);
2570
+ flex: 1;
2548
2571
  margin: 0;
2549
- font-size: 14px;
2550
- font-weight: 600;
2551
- line-height: 1.5;
2572
+ font-weight: 650;
2573
+ line-height: 1.45;
2552
2574
  }
2553
2575
 
2554
- .workbase-error-toggle {
2555
- min-height: 24px;
2576
+ .workbase-error-body {
2577
+ margin-inline-start: 28px;
2578
+ }
2579
+
2580
+ .workbase-plugin-error .workbase-error-cause {
2581
+ max-width: 75ch;
2582
+ color: var(--color-foreground);
2583
+ font-size: var(--workbase-type-body);
2584
+ white-space: pre-wrap;
2585
+ margin: 0;
2586
+ font-weight: 400;
2587
+ line-height: 1.55;
2588
+ }
2589
+
2590
+ .workbase-error-actions, .workbase-inline-error {
2591
+ flex-wrap: wrap;
2592
+ align-items: center;
2593
+ gap: 6px 10px;
2594
+ display: flex;
2595
+ }
2596
+
2597
+ .workbase-error-actions {
2598
+ margin-block-start: 10px;
2599
+ }
2600
+
2601
+ .workbase-error-toggle, .workbase-error-disclosure, .workbase-inline-error > button {
2602
+ min-height: 28px;
2556
2603
  color: var(--color-muted);
2557
2604
  font: inherit;
2605
+ font-size: var(--workbase-type-meta);
2558
2606
  cursor: pointer;
2559
2607
  background: none;
2560
2608
  border: 0;
2561
- border-radius: 4px;
2562
- flex: none;
2563
- padding: 0 4px;
2564
- font-size: 12px;
2609
+ border-radius: 6px;
2610
+ justify-content: center;
2611
+ align-items: center;
2612
+ gap: 5px;
2613
+ padding: 3px 7px;
2614
+ line-height: 1.4;
2615
+ display: inline-flex;
2565
2616
  }
2566
2617
 
2567
- .workbase-error-toggle:hover {
2568
- color: var(--color-foreground);
2569
- text-decoration: underline;
2618
+ .workbase-error-toggle {
2619
+ flex: none;
2620
+ min-width: 28px;
2570
2621
  }
2571
2622
 
2572
- .workbase-error-toggle:focus-visible {
2573
- outline: 2px solid var(--color-accent);
2574
- outline-offset: 2px;
2623
+ .workbase-error-close {
2624
+ min-width: 28px;
2575
2625
  }
2576
2626
 
2577
- .workbase-error-header + .workbase-error-cause {
2578
- margin-top: 8px;
2627
+ .workbase-error-close:before {
2628
+ content: "";
2629
+ background: currentColor;
2630
+ width: 16px;
2631
+ height: 16px;
2632
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M6 18 18 6'/%3E%3C/svg%3E") center / contain no-repeat;
2579
2633
  }
2580
2634
 
2581
- .workbase-plugin-error .workbase-error-cause {
2635
+ .workbase-inline-error > button:not(.workbase-error-close) {
2636
+ border: 1px solid var(--color-border-strong);
2637
+ background: var(--color-surface);
2582
2638
  color: var(--color-foreground);
2583
- white-space: pre-wrap;
2584
- margin: 0;
2585
- font-size: 14px;
2586
- font-weight: 500;
2587
- line-height: 1.65;
2588
2639
  }
2589
2640
 
2590
- .workbase-plugin-error .workbase-error-context {
2641
+ .workbase-error-disclosure:only-child {
2642
+ margin-inline-start: -7px;
2643
+ }
2644
+
2645
+ .workbase-error-disclosure[aria-expanded="true"] svg {
2646
+ transform: rotate(180deg);
2647
+ }
2648
+
2649
+ :is(.workbase-error-toggle, .workbase-error-disclosure, .workbase-inline-error > button, .mantine-Alert-closeButton):hover {
2650
+ background: var(--color-surface-muted);
2591
2651
  color: var(--color-foreground);
2592
- margin: 8px 0 0;
2593
- font-size: 12px;
2594
- font-weight: 400;
2595
- line-height: 1.65;
2596
2652
  }
2597
2653
 
2598
- .workbase-error-context strong {
2599
- margin-right: 8px;
2600
- font-weight: 600;
2654
+ :is(.workbase-error-toggle, .workbase-error-disclosure, .workbase-inline-error > button, .mantine-Alert-closeButton):focus-visible {
2655
+ outline: 2px solid var(--color-accent);
2656
+ outline-offset: 2px;
2601
2657
  }
2602
2658
 
2603
- .workbase-error-actions {
2604
- flex-wrap: wrap;
2659
+ .workbase-error-details:not([hidden]) {
2605
2660
  gap: 8px;
2606
- margin-top: 12px;
2607
- display: flex;
2661
+ display: grid;
2608
2662
  }
2609
2663
 
2610
2664
  .workbase-error-details {
2611
- color: var(--color-foreground);
2612
- margin-top: 12px;
2613
- font-size: 12px;
2614
- font-weight: 400;
2665
+ border-top: 1px solid var(--color-border);
2666
+ font-size: var(--workbase-type-body);
2667
+ margin: 12px 0 0;
2668
+ padding-block-start: 12px;
2669
+ line-height: 1.6;
2615
2670
  }
2616
2671
 
2617
- .workbase-error-details summary {
2618
- cursor: pointer;
2619
- text-underline-offset: 3px;
2620
- width: fit-content;
2672
+ .workbase-error-details > div {
2673
+ grid-template-columns: max-content minmax(0, 1fr);
2674
+ gap: 12px;
2675
+ display: grid;
2621
2676
  }
2622
2677
 
2623
- .workbase-error-details summary:hover {
2624
- text-decoration: underline;
2678
+ .workbase-error-details dt {
2679
+ color: var(--color-muted);
2680
+ font-weight: 500;
2625
2681
  }
2626
2682
 
2627
- .workbase-error-details summary:focus-visible {
2628
- outline: 2px solid var(--color-accent);
2629
- outline-offset: 3px;
2630
- border-radius: 4px;
2683
+ .workbase-error-details dd {
2684
+ min-width: 0;
2685
+ margin: 0;
2631
2686
  }
2632
2687
 
2633
2688
  .workbase-error-details pre {
2634
- max-width: 100%;
2635
- max-height: 240px;
2689
+ background: var(--color-surface-muted);
2690
+ max-height: 15rem;
2636
2691
  color: var(--color-foreground);
2637
- background: var(--color-surface);
2692
+ font-size: var(--workbase-type-meta);
2638
2693
  white-space: pre-wrap;
2639
2694
  overflow-wrap: anywhere;
2640
- scrollbar-color: var(--color-border-strong) transparent;
2641
- scrollbar-width: thin;
2642
- border-radius: 4px;
2643
- margin: 8px 0 0;
2644
- padding: 12px;
2645
- font-size: 12px;
2646
- line-height: 1.65;
2695
+ border-radius: 6px;
2696
+ margin: 0;
2697
+ padding: 8px 10px;
2698
+ line-height: 1.6;
2647
2699
  overflow: auto;
2648
2700
  }
2649
2701
 
2702
+ .workbase-inline-error > span {
2703
+ white-space: pre-wrap;
2704
+ flex: 12ch;
2705
+ min-width: 0;
2706
+ }
2707
+
2708
+ .workbase-inline-error {
2709
+ font-size: var(--workbase-type-body);
2710
+ line-height: 1.55;
2711
+ }
2712
+
2713
+ .workbase-error-alert .mantine-Alert-wrapper {
2714
+ align-items: flex-start;
2715
+ gap: 10px;
2716
+ }
2717
+
2718
+ .workbase-error-alert .mantine-Alert-wrapper:before {
2719
+ margin-block-start: 2px;
2720
+ }
2721
+
2722
+ .workbase-error-alert .mantine-Alert-body {
2723
+ min-width: 0;
2724
+ }
2725
+
2726
+ .workbase-error-alert .mantine-Alert-message {
2727
+ color: var(--color-foreground);
2728
+ }
2729
+
2730
+ .workbase-error-alert .mantine-Alert-closeButton {
2731
+ min-width: 28px;
2732
+ min-height: 28px;
2733
+ color: var(--color-muted);
2734
+ margin: -3px -3px -3px 0;
2735
+ }
2736
+
2650
2737
  .mantine-Notification-root {
2651
2738
  border: 1px solid var(--color-border);
2652
2739
  }
@@ -6311,7 +6398,7 @@
6311
6398
  margin: 8px 0 0;
6312
6399
  }
6313
6400
 
6314
- .markdown-document-heading button, .markdown-link-error button {
6401
+ .markdown-document-heading button {
6315
6402
  border: 1px solid var(--color-border-strong);
6316
6403
  background: var(--color-surface);
6317
6404
  color: var(--color-foreground);
@@ -6322,7 +6409,7 @@
6322
6409
  padding: 6px 10px;
6323
6410
  }
6324
6411
 
6325
- .markdown-document-heading button:hover, .markdown-link-error button:hover {
6412
+ .markdown-document-heading button:hover {
6326
6413
  background: var(--color-surface-muted);
6327
6414
  }
6328
6415
 
@@ -6331,16 +6418,6 @@
6331
6418
  outline-offset: 2px;
6332
6419
  }
6333
6420
 
6334
- .markdown-link-error {
6335
- color: var(--color-danger);
6336
- overflow-wrap: anywhere;
6337
- line-height: 1.6;
6338
- }
6339
-
6340
- .markdown-link-error button {
6341
- margin-inline-start: 8px;
6342
- }
6343
-
6344
6421
  .workbase-markdown-links .markdown-document-body {
6345
6422
  max-width: 75ch;
6346
6423
  max-height: 65vh;
@@ -6678,18 +6755,6 @@
6678
6755
  display: flex;
6679
6756
  }
6680
6757
 
6681
- .sync-conflict-recovery {
6682
- gap: 12px;
6683
- width: 100%;
6684
- display: grid;
6685
- }
6686
-
6687
- .sync-conflict-files {
6688
- overflow-wrap: anywhere;
6689
- margin: 0;
6690
- padding-left: 20px;
6691
- }
6692
-
6693
6758
  .configuration-row .resource-publication {
6694
6759
  justify-self: start;
6695
6760
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eworkbase/plugin-ai-rules",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "workbase": {
6
6
  "id": "ai-rules",
@@ -41,7 +41,7 @@
41
41
  "typescript": "^5.8.3",
42
42
  "yaml": "^2.8.1",
43
43
  "lucide-react": "^1.21.0",
44
- "@eworkbase/sdk": "0.8.1"
44
+ "@eworkbase/sdk": "0.8.3"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"