@abyss-project/commons-front-core 15.0.0 → 16.0.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog — @abyss-project/commons-front-core
2
+
3
+ ## 16.0.0
4
+
5
+ ### Feedback intake moves from Console to Workspace (P4a, D25)
6
+
7
+ - `fileInternalTicketIntake` (Internal Tickets, `@abyss-project/console`) is replaced by `fileDeskIntake`
8
+ (Desk, `@abyss-project/workspace`). The RUM feedback of `AbyssRumProvider` is filed on
9
+ `/public/desk/intake/:slug` of AbyssWorkspace.
10
+ - `AbyssRumFeedbackTicket.internalTicketSectionId` is renamed `deskSectionId`.
11
+ - `@abyss-project/console` is no longer a peer dependency nor a dev dependency of the package.
12
+ - `@abyss-project/workspace` `^4.6.0` is now a peer dependency. A front that enables the RUM feedback
13
+ must call `AbyssWorkspaceCore.setConfig` with its `VITE_ABYSS_WORKSPACE_URL_API`.
@@ -20,6 +20,26 @@ export interface LineChartSeries {
20
20
  * the `status.*` color of the tone. Without tone, the series takes the next data series color.
21
21
  */
22
22
  tone?: ChartSeriesTone;
23
+ /**
24
+ * Points of the series to mark (an anomaly, an event): a dot in the `status.danger` color on the
25
+ * line at each listed x that has a value. `label` names the marks in the legend.
26
+ */
27
+ markers?: {
28
+ label: string;
29
+ xs: LineChartX[];
30
+ };
31
+ }
32
+ /** One x of a band: the values it spans, `null` on both where the band has none (it breaks there). */
33
+ export interface LineChartBandPoint {
34
+ x: LineChartX;
35
+ lower: number | null;
36
+ upper: number | null;
37
+ }
38
+ /** The area between a lower and an upper bound (a baseline range), drawn behind the lines. */
39
+ export interface LineChartBand {
40
+ /** Name of the band, in the legend. */
41
+ label: string;
42
+ points: LineChartBandPoint[];
23
43
  }
24
44
  export interface LineChartProps {
25
45
  series: LineChartSeries[];
@@ -32,6 +52,11 @@ export interface LineChartProps {
32
52
  * counts as zero there. The tooltip and the table of values keep each series' own values.
33
53
  */
34
54
  stacked?: boolean;
55
+ /**
56
+ * An area between two bounds, filled at the `.soft` opacity in the `status.neutral` color behind
57
+ * the lines; the y axis spans its values. Not drawn on a `stacked` chart.
58
+ */
59
+ band?: LineChartBand;
35
60
  /** Text of an x value: axis ticks, tooltip, table of values. */
36
61
  formatX(x: LineChartX): string;
37
62
  /** Text of a y value: axis ticks, tooltip, table of values. */
@@ -49,4 +74,4 @@ export interface LineChartProps {
49
74
  * of drawing empty axes. A `null` y breaks the line (see `LineChartPoint`). A chart with a single x
50
75
  * draws each series' value as a dot, since no line can be drawn through one x.
51
76
  */
52
- export declare function LineChart({ series, height, area, stacked, formatX, formatY, label, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
77
+ export declare function LineChart({ series, height, area, stacked, band, formatX, formatY, label, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
@@ -170,7 +170,7 @@ export declare const translations: {
170
170
  title: string;
171
171
  content: string;
172
172
  };
173
- "internal-ticket-created": {
173
+ "desk-ticket-created": {
174
174
  title: string;
175
175
  content: string;
176
176
  };
@@ -178,39 +178,39 @@ export declare const translations: {
178
178
  title: string;
179
179
  content: string;
180
180
  };
181
- "internal-ticket-section-without-agents": {
181
+ "desk-ticket-section-without-agents": {
182
182
  title: string;
183
183
  content: string;
184
184
  };
185
- "internal-ticket-status-changed": {
185
+ "desk-ticket-status-changed": {
186
186
  title: string;
187
187
  content: string;
188
188
  };
189
- "internal-ticket-new-message": {
189
+ "desk-ticket-new-message": {
190
190
  title: string;
191
191
  content: string;
192
192
  };
193
- "internal-ticket-mention": {
193
+ "desk-ticket-mention": {
194
194
  title: string;
195
195
  content: string;
196
196
  };
197
- "internal-ticket-assigned": {
197
+ "desk-ticket-assigned": {
198
198
  title: string;
199
199
  content: string;
200
200
  };
201
- "internal-ticket-follower-added": {
201
+ "desk-ticket-follower-added": {
202
202
  title: string;
203
203
  content: string;
204
204
  };
205
- "internal-ticket-approval-requested": {
205
+ "desk-ticket-approval-requested": {
206
206
  title: string;
207
207
  content: string;
208
208
  };
209
- "internal-ticket-approval-reminder": {
209
+ "desk-ticket-approval-reminder": {
210
210
  title: string;
211
211
  content: string;
212
212
  };
213
- "internal-ticket-approval-decided": {
213
+ "desk-ticket-approval-decided": {
214
214
  title: string;
215
215
  content: string;
216
216
  };
@@ -2828,7 +2828,7 @@ export declare const translations: {
2828
2828
  title: string;
2829
2829
  content: string;
2830
2830
  };
2831
- "internal-ticket-created": {
2831
+ "desk-ticket-created": {
2832
2832
  title: string;
2833
2833
  content: string;
2834
2834
  };
@@ -2836,39 +2836,39 @@ export declare const translations: {
2836
2836
  title: string;
2837
2837
  content: string;
2838
2838
  };
2839
- "internal-ticket-section-without-agents": {
2839
+ "desk-ticket-section-without-agents": {
2840
2840
  title: string;
2841
2841
  content: string;
2842
2842
  };
2843
- "internal-ticket-status-changed": {
2843
+ "desk-ticket-status-changed": {
2844
2844
  title: string;
2845
2845
  content: string;
2846
2846
  };
2847
- "internal-ticket-new-message": {
2847
+ "desk-ticket-new-message": {
2848
2848
  title: string;
2849
2849
  content: string;
2850
2850
  };
2851
- "internal-ticket-mention": {
2851
+ "desk-ticket-mention": {
2852
2852
  title: string;
2853
2853
  content: string;
2854
2854
  };
2855
- "internal-ticket-assigned": {
2855
+ "desk-ticket-assigned": {
2856
2856
  title: string;
2857
2857
  content: string;
2858
2858
  };
2859
- "internal-ticket-follower-added": {
2859
+ "desk-ticket-follower-added": {
2860
2860
  title: string;
2861
2861
  content: string;
2862
2862
  };
2863
- "internal-ticket-approval-requested": {
2863
+ "desk-ticket-approval-requested": {
2864
2864
  title: string;
2865
2865
  content: string;
2866
2866
  };
2867
- "internal-ticket-approval-reminder": {
2867
+ "desk-ticket-approval-reminder": {
2868
2868
  title: string;
2869
2869
  content: string;
2870
2870
  };
2871
- "internal-ticket-approval-decided": {
2871
+ "desk-ticket-approval-decided": {
2872
2872
  title: string;
2873
2873
  content: string;
2874
2874
  };