@uipath/apollo-react 7.36.0 → 8.1.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.
Files changed (97) hide show
  1. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  2. package/dist/chat/styles/tailwind.chat.css +1 -1
  3. package/dist/decision-table/CitationButton.cjs +72 -0
  4. package/dist/decision-table/CitationButton.d.ts +33 -0
  5. package/dist/decision-table/CitationButton.d.ts.map +1 -0
  6. package/dist/decision-table/CitationButton.js +35 -0
  7. package/dist/decision-table/DecisionGraphCard.cjs +16 -2
  8. package/dist/decision-table/DecisionGraphCard.d.ts +5 -0
  9. package/dist/decision-table/DecisionGraphCard.d.ts.map +1 -1
  10. package/dist/decision-table/DecisionGraphCard.js +17 -3
  11. package/dist/decision-table/DecisionGraphText.cjs +12 -1
  12. package/dist/decision-table/DecisionGraphText.d.ts +3 -2
  13. package/dist/decision-table/DecisionGraphText.d.ts.map +1 -1
  14. package/dist/decision-table/DecisionGraphText.js +12 -1
  15. package/dist/decision-table/DecisionText.cjs +27 -2
  16. package/dist/decision-table/DecisionText.d.ts +4 -3
  17. package/dist/decision-table/DecisionText.d.ts.map +1 -1
  18. package/dist/decision-table/DecisionText.js +27 -2
  19. package/dist/decision-table/DecisionTextHeader.cjs +17 -1
  20. package/dist/decision-table/DecisionTextHeader.d.ts +7 -1
  21. package/dist/decision-table/DecisionTextHeader.d.ts.map +1 -1
  22. package/dist/decision-table/DecisionTextHeader.js +18 -2
  23. package/dist/decision-table/RuleCard.cjs +60 -26
  24. package/dist/decision-table/RuleCard.d.ts +2 -0
  25. package/dist/decision-table/RuleCard.d.ts.map +1 -1
  26. package/dist/decision-table/RuleCard.js +61 -27
  27. package/dist/decision-table/RuleList.cjs +2 -1
  28. package/dist/decision-table/RuleList.d.ts +1 -0
  29. package/dist/decision-table/RuleList.d.ts.map +1 -1
  30. package/dist/decision-table/RuleList.js +2 -1
  31. package/dist/decision-table/decisionGraphTypes.d.ts +8 -0
  32. package/dist/decision-table/decisionGraphTypes.d.ts.map +1 -1
  33. package/dist/decision-table/index.d.ts +2 -2
  34. package/dist/decision-table/index.d.ts.map +1 -1
  35. package/dist/decision-table/locales/de.cjs +1 -1
  36. package/dist/decision-table/locales/de.d.ts.map +1 -1
  37. package/dist/decision-table/locales/de.js +1 -1
  38. package/dist/decision-table/locales/en.cjs +1 -1
  39. package/dist/decision-table/locales/en.d.ts.map +1 -1
  40. package/dist/decision-table/locales/en.js +1 -1
  41. package/dist/decision-table/locales/es-MX.cjs +1 -1
  42. package/dist/decision-table/locales/es-MX.d.ts.map +1 -1
  43. package/dist/decision-table/locales/es-MX.js +1 -1
  44. package/dist/decision-table/locales/es.cjs +1 -1
  45. package/dist/decision-table/locales/es.d.ts.map +1 -1
  46. package/dist/decision-table/locales/es.js +1 -1
  47. package/dist/decision-table/locales/fr.cjs +1 -1
  48. package/dist/decision-table/locales/fr.d.ts.map +1 -1
  49. package/dist/decision-table/locales/fr.js +1 -1
  50. package/dist/decision-table/locales/ja.cjs +1 -1
  51. package/dist/decision-table/locales/ja.d.ts.map +1 -1
  52. package/dist/decision-table/locales/ja.js +1 -1
  53. package/dist/decision-table/locales/ko.cjs +1 -1
  54. package/dist/decision-table/locales/ko.d.ts.map +1 -1
  55. package/dist/decision-table/locales/ko.js +1 -1
  56. package/dist/decision-table/locales/pt-BR.cjs +1 -1
  57. package/dist/decision-table/locales/pt-BR.d.ts.map +1 -1
  58. package/dist/decision-table/locales/pt-BR.js +1 -1
  59. package/dist/decision-table/locales/pt.cjs +1 -1
  60. package/dist/decision-table/locales/pt.d.ts.map +1 -1
  61. package/dist/decision-table/locales/pt.js +1 -1
  62. package/dist/decision-table/locales/ro.cjs +1 -1
  63. package/dist/decision-table/locales/ro.d.ts.map +1 -1
  64. package/dist/decision-table/locales/ro.js +1 -1
  65. package/dist/decision-table/locales/ru.cjs +1 -1
  66. package/dist/decision-table/locales/ru.d.ts.map +1 -1
  67. package/dist/decision-table/locales/ru.js +1 -1
  68. package/dist/decision-table/locales/tr.cjs +1 -1
  69. package/dist/decision-table/locales/tr.d.ts.map +1 -1
  70. package/dist/decision-table/locales/tr.js +1 -1
  71. package/dist/decision-table/locales/zh-CN.cjs +1 -1
  72. package/dist/decision-table/locales/zh-CN.d.ts.map +1 -1
  73. package/dist/decision-table/locales/zh-CN.js +1 -1
  74. package/dist/decision-table/locales/zh-TW.cjs +1 -1
  75. package/dist/decision-table/locales/zh-TW.d.ts.map +1 -1
  76. package/dist/decision-table/locales/zh-TW.js +1 -1
  77. package/dist/decision-table/ruleCardModel.d.ts +2 -1
  78. package/dist/decision-table/ruleCardModel.d.ts.map +1 -1
  79. package/dist/decision-table/sentenceStyles.cjs +33 -6
  80. package/dist/decision-table/sentenceStyles.d.ts +8 -1
  81. package/dist/decision-table/sentenceStyles.d.ts.map +1 -1
  82. package/dist/decision-table/sentenceStyles.js +9 -3
  83. package/dist/decision-table/sentenceTypes.d.ts +28 -0
  84. package/dist/decision-table/sentenceTypes.d.ts.map +1 -1
  85. package/dist/decision-table/styles/tailwind.decision-table.css +1 -1
  86. package/dist/decision-table/useContainerHandlers.cjs +88 -3
  87. package/dist/decision-table/useContainerHandlers.d.ts +10 -1
  88. package/dist/decision-table/useContainerHandlers.d.ts.map +1 -1
  89. package/dist/decision-table/useContainerHandlers.js +88 -3
  90. package/dist/decision-table/useDecisionGraphStrings.cjs +6 -2
  91. package/dist/decision-table/useDecisionGraphStrings.d.ts +2 -1
  92. package/dist/decision-table/useDecisionGraphStrings.d.ts.map +1 -1
  93. package/dist/decision-table/useDecisionGraphStrings.js +6 -2
  94. package/dist/decision-table/useDecisionTextStrings.cjs +36 -0
  95. package/dist/decision-table/useDecisionTextStrings.d.ts.map +1 -1
  96. package/dist/decision-table/useDecisionTextStrings.js +36 -0
  97. package/package.json +3 -3
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ CitationButtons: ()=>CitationButtons,
28
+ CitationButton: ()=>CitationButton
29
+ });
30
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
32
+ const external_lucide_react_namespaceObject = require("lucide-react");
33
+ const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
34
+ const CitationButton = ({ citation, owner, index, onOpen, selected, tabIndex, className, labels, dataTestId })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
35
+ variant: "ghost",
36
+ size: "3xs",
37
+ tabIndex: tabIndex,
38
+ "aria-label": labels.openCitation(owner, citation.page, index),
39
+ className: (0, apollo_wind_namespaceObject.cn)(external_sentenceStyles_cjs_namespaceObject.CITATION_BUTTON_CLASS, className),
40
+ "data-rule-action": "citation",
41
+ "data-testid": dataTestId,
42
+ onClick: ()=>onOpen(citation),
43
+ children: [
44
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileText, {
45
+ "aria-hidden": true
46
+ }),
47
+ selected && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
48
+ "aria-hidden": true,
49
+ children: labels.citationPage(citation.page)
50
+ })
51
+ ]
52
+ });
53
+ const indexOf = (citations, at)=>{
54
+ const page = citations[at]?.page;
55
+ const shared = citations.filter((citation)=>citation.page === page).length;
56
+ return shared > 1 ? citations.slice(0, at + 1).filter((citation)=>citation.page === page).length : null;
57
+ };
58
+ const CitationButtons = ({ citations, dataTestId, ...props })=>citations.map((citation, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CitationButton, {
59
+ citation: citation,
60
+ index: indexOf(citations, index),
61
+ dataTestId: 0 === index ? dataTestId : `${dataTestId}-${index}`,
62
+ ...props
63
+ }, `${citation.kind}-${citation.page}-${index}`));
64
+ exports.CitationButton = __webpack_exports__.CitationButton;
65
+ exports.CitationButtons = __webpack_exports__.CitationButtons;
66
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
67
+ "CitationButton",
68
+ "CitationButtons"
69
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
70
+ Object.defineProperty(exports, '__esModule', {
71
+ value: true
72
+ });
@@ -0,0 +1,33 @@
1
+ import type React from 'react';
2
+ import type { OpenCitation, SentenceCitation } from './sentenceTypes';
3
+ export type CitationOwner = {
4
+ kind: 'rule';
5
+ position: number;
6
+ } | {
7
+ kind: 'decision';
8
+ name: string;
9
+ } | {
10
+ kind: 'table';
11
+ };
12
+ export interface CitationLabels {
13
+ openCitation: (owner: CitationOwner, page: number, index: number | null) => string;
14
+ citationPage: (page: number) => string;
15
+ }
16
+ export interface CitationButtonProps {
17
+ citation: SentenceCitation;
18
+ owner: CitationOwner;
19
+ index: number | null;
20
+ onOpen: OpenCitation;
21
+ selected: boolean;
22
+ tabIndex: 0 | -1;
23
+ className: string;
24
+ labels: CitationLabels;
25
+ dataTestId: string;
26
+ }
27
+ export declare const CitationButton: React.FC<CitationButtonProps>;
28
+ export interface CitationButtonsProps extends Omit<CitationButtonProps, 'citation' | 'index' | 'dataTestId'> {
29
+ citations: readonly SentenceCitation[];
30
+ dataTestId: string;
31
+ }
32
+ export declare const CitationButtons: React.FC<CitationButtonsProps>;
33
+ //# sourceMappingURL=CitationButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationButton.d.ts","sourceRoot":"","sources":["../../src/decision-table/CitationButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGtE,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAGtB,MAAM,WAAW,cAAc;IAE7B,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;IAEnF,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,aAAa,CAAC;IAErB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IAErB,QAAQ,EAAE,OAAO,CAAC;IAElB,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwBxD,CAAC;AAEF,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;IACtE,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB;AAWD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAavD,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Button, cn } from "@uipath/apollo-wind";
3
+ import { FileText } from "lucide-react";
4
+ import { CITATION_BUTTON_CLASS } from "./sentenceStyles.js";
5
+ const CitationButton = ({ citation, owner, index, onOpen, selected, tabIndex, className, labels, dataTestId })=>/*#__PURE__*/ jsxs(Button, {
6
+ variant: "ghost",
7
+ size: "3xs",
8
+ tabIndex: tabIndex,
9
+ "aria-label": labels.openCitation(owner, citation.page, index),
10
+ className: cn(CITATION_BUTTON_CLASS, className),
11
+ "data-rule-action": "citation",
12
+ "data-testid": dataTestId,
13
+ onClick: ()=>onOpen(citation),
14
+ children: [
15
+ /*#__PURE__*/ jsx(FileText, {
16
+ "aria-hidden": true
17
+ }),
18
+ selected && /*#__PURE__*/ jsx("span", {
19
+ "aria-hidden": true,
20
+ children: labels.citationPage(citation.page)
21
+ })
22
+ ]
23
+ });
24
+ const indexOf = (citations, at)=>{
25
+ const page = citations[at]?.page;
26
+ const shared = citations.filter((citation)=>citation.page === page).length;
27
+ return shared > 1 ? citations.slice(0, at + 1).filter((citation)=>citation.page === page).length : null;
28
+ };
29
+ const CitationButtons = ({ citations, dataTestId, ...props })=>citations.map((citation, index)=>/*#__PURE__*/ jsx(CitationButton, {
30
+ citation: citation,
31
+ index: indexOf(citations, index),
32
+ dataTestId: 0 === index ? dataTestId : `${dataTestId}-${index}`,
33
+ ...props
34
+ }, `${citation.kind}-${citation.page}-${index}`));
35
+ export { CitationButton, CitationButtons };
@@ -31,9 +31,10 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
31
  const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
32
32
  const external_lucide_react_namespaceObject = require("lucide-react");
33
33
  const external_react_namespaceObject = require("react");
34
- const external_gridEvents_cjs_namespaceObject = require("./gridEvents.cjs");
34
+ const external_CitationButton_cjs_namespaceObject = require("./CitationButton.cjs");
35
35
  const external_decisionGraphStyles_cjs_namespaceObject = require("./decisionGraphStyles.cjs");
36
36
  const external_GridMenu_cjs_namespaceObject = require("./GridMenu.cjs");
37
+ const external_gridEvents_cjs_namespaceObject = require("./gridEvents.cjs");
37
38
  const external_MarkGlyph_cjs_namespaceObject = require("./MarkGlyph.cjs");
38
39
  const external_sentenceMarks_cjs_namespaceObject = require("./sentenceMarks.cjs");
39
40
  const HEADINGS = [
@@ -126,7 +127,7 @@ const NameField = ({ field, label, dataTestId })=>{
126
127
  ]
127
128
  });
128
129
  };
129
- const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, labels, onToggle, onShowProblem, onOpen, actions, cardRef, dataTestId })=>{
130
+ const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, labels, onToggle, onShowProblem, onOpen, actions, citations, cardRef, dataTestId })=>{
130
131
  const { logic } = node;
131
132
  const rename = actions?.rename ?? null;
132
133
  const headingMark = node.mark?.mark;
@@ -203,6 +204,19 @@ const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, la
203
204
  className: "size-3.5"
204
205
  })
205
206
  }),
207
+ citations && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CitationButton_cjs_namespaceObject.CitationButtons, {
208
+ citations: citations.citations,
209
+ owner: {
210
+ kind: 'decision',
211
+ name: node.label
212
+ },
213
+ onOpen: citations.onOpen,
214
+ selected: active,
215
+ tabIndex: 0,
216
+ className: (0, apollo_wind_namespaceObject.cn)('shrink-0', !active && external_decisionGraphStyles_cjs_namespaceObject.GRAPH_REVEAL_CLASS, '[@media(hover:none)]:opacity-100'),
217
+ labels: labels,
218
+ dataTestId: `${dataTestId}-citation-${node.id}`
219
+ }),
206
220
  actions && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(NodeMenu, {
207
221
  actions: actions,
208
222
  dataTestId: `${dataTestId}-menu-${node.id}`
@@ -1,6 +1,7 @@
1
1
  import type React from 'react';
2
2
  import type { DecisionGraphDecisionNode, DecisionGraphReferenceNode } from './decisionGraphTypes';
3
3
  import { type GridMenuEntry } from './GridMenu';
4
+ import type { OpenCitation, SentenceCitation } from './sentenceTypes';
4
5
  import type { DecisionGraphLabels } from './useDecisionGraphStrings';
5
6
  export interface DecisionGraphRenameField {
6
7
  from: string;
@@ -33,6 +34,10 @@ export interface DecisionGraphCardProps {
33
34
  onShowProblem: (byKey: boolean) => void;
34
35
  onOpen: (() => void) | undefined;
35
36
  actions: DecisionGraphCardActions | null;
37
+ citations: {
38
+ citations: readonly SentenceCitation[];
39
+ onOpen: OpenCitation;
40
+ } | null;
36
41
  cardRef: (element: HTMLElement | null) => void;
37
42
  dataTestId: string;
38
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionGraphCard.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionGraphCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAiBlG,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGrE,MAAM,WAAW,wBAAwB;IAEvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjD,QAAQ,EAAE,CAA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{ jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Input, cn } from "@uipath/apollo-wind";
3
3
  import { ChevronDown, ChevronRight, CornerDownRight, Ellipsis, Network } from "lucide-react";
4
4
  import { useId, useLayoutEffect, useRef } from "react";
5
- import { isComposing } from "./gridEvents.js";
6
- import { GRAPH_BODY_CLASS, GRAPH_CARD_CLASS, GRAPH_CARD_COLLAPSED_CLASS, GRAPH_CARD_TONE_CLASS, GRAPH_HEADER_CLASS, GRAPH_HIT_POLICY_CLASS, GRAPH_MARK_BUTTON_CLASS, GRAPH_MENU_BUTTON_CLASS, GRAPH_NAME_CLASS, GRAPH_REFERENCE_CHIP_CLASS, GRAPH_REFERENCE_CLASS, GRAPH_RULE_COUNT_CLASS, GRAPH_TOGGLE_CLASS } from "./decisionGraphStyles.js";
5
+ import { CitationButtons } from "./CitationButton.js";
6
+ import { GRAPH_BODY_CLASS, GRAPH_CARD_CLASS, GRAPH_CARD_COLLAPSED_CLASS, GRAPH_CARD_TONE_CLASS, GRAPH_HEADER_CLASS, GRAPH_HIT_POLICY_CLASS, GRAPH_MARK_BUTTON_CLASS, GRAPH_MENU_BUTTON_CLASS, GRAPH_NAME_CLASS, GRAPH_REFERENCE_CHIP_CLASS, GRAPH_REFERENCE_CLASS, GRAPH_REVEAL_CLASS, GRAPH_RULE_COUNT_CLASS, GRAPH_TOGGLE_CLASS } from "./decisionGraphStyles.js";
7
7
  import { GridMenuButton } from "./GridMenu.js";
8
+ import { isComposing } from "./gridEvents.js";
8
9
  import { MarkGlyph } from "./MarkGlyph.js";
9
10
  import { isLineMark } from "./sentenceMarks.js";
10
11
  const HEADINGS = [
@@ -97,7 +98,7 @@ const NameField = ({ field, label, dataTestId })=>{
97
98
  ]
98
99
  });
99
100
  };
100
- const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, labels, onToggle, onShowProblem, onOpen, actions, cardRef, dataTestId })=>{
101
+ const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, labels, onToggle, onShowProblem, onOpen, actions, citations, cardRef, dataTestId })=>{
101
102
  const { logic } = node;
102
103
  const rename = actions?.rename ?? null;
103
104
  const headingMark = node.mark?.mark;
@@ -174,6 +175,19 @@ const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, la
174
175
  className: "size-3.5"
175
176
  })
176
177
  }),
178
+ citations && /*#__PURE__*/ jsx(CitationButtons, {
179
+ citations: citations.citations,
180
+ owner: {
181
+ kind: 'decision',
182
+ name: node.label
183
+ },
184
+ onOpen: citations.onOpen,
185
+ selected: active,
186
+ tabIndex: 0,
187
+ className: cn('shrink-0', !active && GRAPH_REVEAL_CLASS, '[@media(hover:none)]:opacity-100'),
188
+ labels: labels,
189
+ dataTestId: `${dataTestId}-citation-${node.id}`
190
+ }),
177
191
  actions && /*#__PURE__*/ jsx(NodeMenu, {
178
192
  actions: actions,
179
193
  dataTestId: `${dataTestId}-menu-${node.id}`
@@ -40,6 +40,9 @@ const external_useDecisionGraphActions_cjs_namespaceObject = require("./useDecis
40
40
  const external_useDecisionGraphStrings_cjs_namespaceObject = require("./useDecisionGraphStrings.cjs");
41
41
  const external_useDecisionTextStrings_cjs_namespaceObject = require("./useDecisionTextStrings.cjs");
42
42
  const external_useTextAnnouncements_cjs_namespaceObject = require("./useTextAnnouncements.cjs");
43
+ const NO_CITATIONS = {
44
+ kind: 'none'
45
+ };
43
46
  const NO_EXPANDED = new Set();
44
47
  const markTargetOf = ({ id, mark })=>mark?.kind === 'rule' ? {
45
48
  kind: 'rule',
@@ -49,6 +52,13 @@ const markTargetOf = ({ id, mark })=>mark?.kind === 'rule' ? {
49
52
  kind: 'decision',
50
53
  decisionId: id
51
54
  };
55
+ const citationOf = (citations, decisionId)=>{
56
+ const cited = 'cited' === citations.kind ? citations.decisions.get(decisionId) ?? [] : [];
57
+ return 'cited' === citations.kind && cited.length > 0 ? {
58
+ citations: cited,
59
+ onOpen: citations.onOpenCitation
60
+ } : null;
61
+ };
52
62
  const focuses = (mode)=>'navigate' === mode.kind && mode.focus;
53
63
  const flashes = (mode)=>'inPlace' === mode.kind || mode.flash;
54
64
  const prefersReducedMotion = ()=>'function' == typeof matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -106,7 +116,7 @@ const perRuleHeightOf = (heights, ruleCounts)=>{
106
116
  }
107
117
  return 0 === rules ? external_sentenceRuleHeights_cjs_namespaceObject.SENTENCE_MIN_RULE_HEIGHT_PX : height / rules;
108
118
  };
109
- const DecisionGraphText = ({ nodes, mode, renderBody, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
119
+ const DecisionGraphText = ({ nodes, mode, renderBody, citations = NO_CITATIONS, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
110
120
  const labels = (0, external_useDecisionGraphStrings_cjs_namespaceObject.useDecisionGraphLabels)();
111
121
  const { selected } = mode;
112
122
  const { announce, region } = (0, external_useTextAnnouncements_cjs_namespaceObject.useTextAnnouncements)((0, external_useDecisionTextStrings_cjs_namespaceObject.useDecisionTextLabels)(), dataTestId);
@@ -340,6 +350,7 @@ const DecisionGraphText = ({ nodes, mode, renderBody, expansion, onFold, onOpenD
340
350
  }),
341
351
  onOpen: openOf(node.id),
342
352
  actions: actions.cardOf(node, position),
353
+ citations: citationOf(citations, node.id),
343
354
  cardRef: cardRef(node.id),
344
355
  dataTestId: dataTestId
345
356
  }),
@@ -1,17 +1,18 @@
1
1
  import type React from 'react';
2
2
  import { type DecisionGraphMinimapSlotProps } from './DecisionGraphMinimapSlot';
3
3
  import type { DecisionGraphMode } from './decisionGraphActionTypes';
4
- import type { DecisionGraphBodyContext, DecisionGraphExpansion, DecisionGraphNode } from './decisionGraphTypes';
4
+ import type { DecisionGraphBodyContext, DecisionGraphCitations, DecisionGraphExpansion, DecisionGraphNode } from './decisionGraphTypes';
5
5
  import type { DecisionTextScroll } from './useRuleWindow';
6
6
  export interface DecisionGraphTextProps<Refusal, Logic> {
7
7
  nodes: readonly DecisionGraphNode[];
8
8
  mode: DecisionGraphMode<Refusal, Logic>;
9
9
  renderBody: (decisionId: string, scroll: Exclude<DecisionTextScroll, 'self'>, context: DecisionGraphBodyContext) => React.ReactNode;
10
+ citations?: DecisionGraphCitations;
10
11
  onFold?: (decisionId: string) => void;
11
12
  expansion?: DecisionGraphExpansion;
12
13
  onOpenDecision?: (decisionId: string) => void;
13
14
  rules?: DecisionGraphMinimapSlotProps['rules'];
14
15
  dataTestId: string;
15
16
  }
16
- export declare const DecisionGraphText: <Refusal, Logic>({ nodes, mode, renderBody, expansion, onFold, onOpenDecision, rules, dataTestId, }: DecisionGraphTextProps<Refusal, Logic>) => React.ReactElement;
17
+ export declare const DecisionGraphText: <Refusal, Logic>({ nodes, mode, renderBody, citations, expansion, onFold, onOpenDecision, rules, dataTestId, }: DecisionGraphTextProps<Refusal, Logic>) => React.ReactElement;
17
18
  //# sourceMappingURL=DecisionGraphText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionGraphText.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionGraphText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAoBpE,OAAO,KAAK,EACV,wBAAwB,EAExB,sBAAsB,EACtB,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,MAAM,WAAW,sBAAsB,CAAC,OAAO,EAAE,KAAK;IAEpD,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAEpC,IAAI,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAExC,UAAU,EAAE,CACV,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,EAC3C,OAAO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C,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC,SAAS,CAAC,EAAE,sBAAsB,CAAC;IAEnC,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9C,KAAK,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAE/C,UAAU,EAAE,MAAM,CAAC;CACpB;AAgGD,eAAO,MAAM,iBAAiB,GAAI,OAAO,EAAE,KAAK,EAAE,+FAU/C,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,KAAG,KAAK,CAAC,YA2TjD,CAAC"}
@@ -12,6 +12,9 @@ import { useDecisionGraphActions } from "./useDecisionGraphActions.js";
12
12
  import { useDecisionGraphLabels } from "./useDecisionGraphStrings.js";
13
13
  import { useDecisionTextLabels } from "./useDecisionTextStrings.js";
14
14
  import { useTextAnnouncements } from "./useTextAnnouncements.js";
15
+ const NO_CITATIONS = {
16
+ kind: 'none'
17
+ };
15
18
  const NO_EXPANDED = new Set();
16
19
  const markTargetOf = ({ id, mark })=>mark?.kind === 'rule' ? {
17
20
  kind: 'rule',
@@ -21,6 +24,13 @@ const markTargetOf = ({ id, mark })=>mark?.kind === 'rule' ? {
21
24
  kind: 'decision',
22
25
  decisionId: id
23
26
  };
27
+ const citationOf = (citations, decisionId)=>{
28
+ const cited = 'cited' === citations.kind ? citations.decisions.get(decisionId) ?? [] : [];
29
+ return 'cited' === citations.kind && cited.length > 0 ? {
30
+ citations: cited,
31
+ onOpen: citations.onOpenCitation
32
+ } : null;
33
+ };
24
34
  const focuses = (mode)=>'navigate' === mode.kind && mode.focus;
25
35
  const flashes = (mode)=>'inPlace' === mode.kind || mode.flash;
26
36
  const prefersReducedMotion = ()=>'function' == typeof matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -78,7 +88,7 @@ const perRuleHeightOf = (heights, ruleCounts)=>{
78
88
  }
79
89
  return 0 === rules ? SENTENCE_MIN_RULE_HEIGHT_PX : height / rules;
80
90
  };
81
- const DecisionGraphText = ({ nodes, mode, renderBody, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
91
+ const DecisionGraphText = ({ nodes, mode, renderBody, citations = NO_CITATIONS, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
82
92
  const labels = useDecisionGraphLabels();
83
93
  const { selected } = mode;
84
94
  const { announce, region } = useTextAnnouncements(useDecisionTextLabels(), dataTestId);
@@ -312,6 +322,7 @@ const DecisionGraphText = ({ nodes, mode, renderBody, expansion, onFold, onOpenD
312
322
  }),
313
323
  onOpen: openOf(node.id),
314
324
  actions: actions.cardOf(node, position),
325
+ citations: citationOf(citations, node.id),
315
326
  cardRef: cardRef(node.id),
316
327
  dataTestId: dataTestId
317
328
  }),
@@ -58,6 +58,9 @@ const external_useSentenceNavigation_cjs_namespaceObject = require("./useSentenc
58
58
  const external_useTextAnnouncements_cjs_namespaceObject = require("./useTextAnnouncements.cjs");
59
59
  const external_useValueEditing_cjs_namespaceObject = require("./useValueEditing.cjs");
60
60
  const external_ValueEditorOverlay_cjs_namespaceObject = require("./ValueEditorOverlay.cjs");
61
+ const NO_CITATIONS = {
62
+ kind: 'none'
63
+ };
61
64
  const NO_FOLDS = new Set();
62
65
  const nameTokensOf = (bands)=>{
63
66
  const names = new Map(bands.flatMap(({ id, columns })=>columns.map((column)=>[
@@ -74,7 +77,7 @@ const nameTokensOf = (bands)=>{
74
77
  text: columnId
75
78
  };
76
79
  };
77
- const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false, marks = external_marks_cjs_namespaceObject.EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
80
+ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations = NO_CITATIONS, numbered = false, marks = external_marks_cjs_namespaceObject.EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
78
81
  const { rules, inputs, outputs } = table;
79
82
  const selected = 'diff' === mode.kind ? null : mode.selected;
80
83
  const onSelect = 'select' === mode.kind || 'edit' === mode.kind ? mode.onSelect : void 0;
@@ -143,6 +146,19 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
143
146
  focusedRowId
144
147
  ]);
145
148
  const ruleWindow = (0, external_useRuleWindow_cjs_namespaceObject.useRuleWindow)(listed, selected?.rowId, retainedRowIds, scroll);
149
+ const citedRows = (0, external_react_namespaceObject.useMemo)(()=>'cited' === citations.kind ? listed.flatMap((rule, index)=>{
150
+ const count = citations.rules.get(rule.rowId)?.length ?? 0;
151
+ return count > 0 ? [
152
+ {
153
+ rowId: rule.rowId,
154
+ index,
155
+ count
156
+ }
157
+ ] : [];
158
+ }) : [], [
159
+ citations,
160
+ listed
161
+ ]);
146
162
  const selectable = void 0 !== onSelect;
147
163
  const addRuleAction = (0, external_useAddRule_cjs_namespaceObject.useAddRule)({
148
164
  ...ruleWindow,
@@ -185,7 +201,11 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
185
201
  history: 'edit' === mode.kind ? {
186
202
  onUndo: mode.onUndo,
187
203
  onRedo: mode.onRedo
188
- } : null
204
+ } : null,
205
+ citationKeys: !selectable,
206
+ citedRows,
207
+ revealRow: ruleWindow.scrollRowIntoView,
208
+ revealStop: ruleWindow.scrollStopIntoView
189
209
  });
190
210
  const columnEditing = (0, external_useColumnEditing_cjs_namespaceObject.useColumnEditing)({
191
211
  column: 'edit' === mode.kind ? mode.edit.column : void 0,
@@ -212,6 +232,10 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
212
232
  title: title,
213
233
  hint: policyHeader.hint,
214
234
  mark: headerMark,
235
+ citations: 'cited' === citations.kind && citations.decision.length > 0 ? {
236
+ citations: citations.decision,
237
+ onOpen: citations.onOpenCitation
238
+ } : null,
215
239
  labels: labels,
216
240
  sticky: 'self' === scroll,
217
241
  dataTestId: dataTestId
@@ -260,6 +284,7 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
260
284
  selectedColumnId: navigation.selectedColumnId,
261
285
  selectable: selectable,
262
286
  decisionLinks: void 0 !== onOpenDecision,
287
+ citations: citations,
263
288
  style: listStyle,
264
289
  idPrefix: idPrefix,
265
290
  dataTestId: dataTestId,
@@ -5,9 +5,9 @@ import { type DecisionTextDiff } from './decisionTextDiff';
5
5
  import type { DecisionTextEdit } from './decisionTextTypes';
6
6
  import { type HitPolicyCatalog, type HitPolicyPick } from './hitPolicyMenu';
7
7
  import { type TableMarks } from './marks';
8
- import type { DecisionTextTable, SentenceSelection } from './sentenceTypes';
8
+ import type { DecisionTextCitations, DecisionTextTable, SentenceSelection } from './sentenceTypes';
9
9
  import { useCellHover } from './useCellHover';
10
- import { type ContainerHandlersParams, type TextHistory, type DecisionTextContainerProps } from './useContainerHandlers';
10
+ import { type ContainerHandlersParams, type DecisionTextContainerProps, type TextHistory } from './useContainerHandlers';
11
11
  import { type DecisionTextScroll } from './useRuleWindow';
12
12
  import { type SentenceNavigationSource } from './useSentenceNavigation';
13
13
  type SelectHandler = NonNullable<SentenceNavigationSource['onSelect']>;
@@ -34,6 +34,7 @@ export interface DecisionTextProps<Op, Policy, Total, Type, Refusal> {
34
34
  mode: DecisionTextMode<Op, Policy, Total, Type, Refusal>;
35
35
  hitPolicies: HitPolicyCatalog<Policy, Total>;
36
36
  columnTypes: readonly ColumnTypeOption<Type>[];
37
+ citations?: DecisionTextCitations;
37
38
  numbered?: boolean;
38
39
  marks?: TableMarks;
39
40
  onCellHover?: Parameters<typeof useCellHover>[0];
@@ -45,6 +46,6 @@ export interface DecisionTextProps<Op, Policy, Total, Type, Refusal> {
45
46
  dataTestId: string;
46
47
  children?: React.ReactNode;
47
48
  }
48
- export declare const DecisionText: <Op, Policy, Total, Type, Refusal>({ table, mode, hitPolicies, columnTypes, numbered, marks, onCellHover, headerMark, onOpenDecision, scroll, ariaLabel, containerProps, dataTestId, children, }: DecisionTextProps<Op, Policy, Total, Type, Refusal>) => React.JSX.Element;
49
+ export declare const DecisionText: <Op, Policy, Total, Type, Refusal>({ table, mode, hitPolicies, columnTypes, citations, numbered, marks, onCellHover, headerMark, onOpenDecision, scroll, ariaLabel, containerProps, dataTestId, children, }: DecisionTextProps<Op, Policy, Total, Type, Refusal>) => React.JSX.Element;
49
50
  export {};
50
51
  //# sourceMappingURL=DecisionText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionText.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,KAAK,gBAAgB,EAA6B,MAAM,oBAAoB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAMvD,OAAO,KAAK,EACV,iBAAiB,EAGjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,KAAK,wBAAwB,EAAyB,MAAM,yBAAyB,CAAC;AAM/F,KAAK,aAAa,GAAG,WAAW,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC;AAGvE,MAAM,MAAM,gBAAgB,CAAC,EA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CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzD,WAAW,EAAE,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE7C,WAAW,EAAE,SAAS,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;IAE/C,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAElC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjD,UAAU,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAE7C,cAAc,CAAC,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAE3D,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAE5C,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAmBD,eAAO,MAAM,YAAY,GAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,0KAgB5D,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OA2OlE,CAAC"}
@@ -30,6 +30,9 @@ import { useSentenceNavigation } from "./useSentenceNavigation.js";
30
30
  import { useTextAnnouncements } from "./useTextAnnouncements.js";
31
31
  import { useValueEditing } from "./useValueEditing.js";
32
32
  import { ValueEditorOverlay } from "./ValueEditorOverlay.js";
33
+ const NO_CITATIONS = {
34
+ kind: 'none'
35
+ };
33
36
  const NO_FOLDS = new Set();
34
37
  const nameTokensOf = (bands)=>{
35
38
  const names = new Map(bands.flatMap(({ id, columns })=>columns.map((column)=>[
@@ -46,7 +49,7 @@ const nameTokensOf = (bands)=>{
46
49
  text: columnId
47
50
  };
48
51
  };
49
- const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false, marks = EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
52
+ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations = NO_CITATIONS, numbered = false, marks = EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
50
53
  const { rules, inputs, outputs } = table;
51
54
  const selected = 'diff' === mode.kind ? null : mode.selected;
52
55
  const onSelect = 'select' === mode.kind || 'edit' === mode.kind ? mode.onSelect : void 0;
@@ -115,6 +118,19 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
115
118
  focusedRowId
116
119
  ]);
117
120
  const ruleWindow = useRuleWindow(listed, selected?.rowId, retainedRowIds, scroll);
121
+ const citedRows = useMemo(()=>'cited' === citations.kind ? listed.flatMap((rule, index)=>{
122
+ const count = citations.rules.get(rule.rowId)?.length ?? 0;
123
+ return count > 0 ? [
124
+ {
125
+ rowId: rule.rowId,
126
+ index,
127
+ count
128
+ }
129
+ ] : [];
130
+ }) : [], [
131
+ citations,
132
+ listed
133
+ ]);
118
134
  const selectable = void 0 !== onSelect;
119
135
  const addRuleAction = useAddRule({
120
136
  ...ruleWindow,
@@ -157,7 +173,11 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
157
173
  history: 'edit' === mode.kind ? {
158
174
  onUndo: mode.onUndo,
159
175
  onRedo: mode.onRedo
160
- } : null
176
+ } : null,
177
+ citationKeys: !selectable,
178
+ citedRows,
179
+ revealRow: ruleWindow.scrollRowIntoView,
180
+ revealStop: ruleWindow.scrollStopIntoView
161
181
  });
162
182
  const columnEditing = useColumnEditing({
163
183
  column: 'edit' === mode.kind ? mode.edit.column : void 0,
@@ -184,6 +204,10 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
184
204
  title: title,
185
205
  hint: policyHeader.hint,
186
206
  mark: headerMark,
207
+ citations: 'cited' === citations.kind && citations.decision.length > 0 ? {
208
+ citations: citations.decision,
209
+ onOpen: citations.onOpenCitation
210
+ } : null,
187
211
  labels: labels,
188
212
  sticky: 'self' === scroll,
189
213
  dataTestId: dataTestId
@@ -232,6 +256,7 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, numbered = false,
232
256
  selectedColumnId: navigation.selectedColumnId,
233
257
  selectable: selectable,
234
258
  decisionLinks: void 0 !== onOpenDecision,
259
+ citations: citations,
235
260
  style: listStyle,
236
261
  idPrefix: idPrefix,
237
262
  dataTestId: dataTestId,
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
31
31
  const external_react_namespaceObject = require("react");
32
+ const external_CitationButton_cjs_namespaceObject = require("./CitationButton.cjs");
32
33
  const external_MarkBadge_cjs_namespaceObject = require("./MarkBadge.cjs");
33
34
  const external_PolicyPicker_cjs_namespaceObject = require("./PolicyPicker.cjs");
34
35
  const external_sentenceMarks_cjs_namespaceObject = require("./sentenceMarks.cjs");
@@ -70,7 +71,7 @@ const HitPolicyChange = ({ change, describedBy, labels })=>/*#__PURE__*/ (0, jsx
70
71
  })
71
72
  ]
72
73
  });
73
- const DecisionTextHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ title, hint, mark, labels, sticky, dataTestId }, ref)=>{
74
+ const DecisionTextHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ title, hint, mark, citations, labels, sticky, dataTestId }, ref)=>{
74
75
  const badgeId = (0, external_react_namespaceObject.useId)();
75
76
  const marks = (0, external_sentenceMarks_cjs_namespaceObject.isLineMark)(mark) ? [
76
77
  mark
@@ -103,6 +104,21 @@ const DecisionTextHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forw
103
104
  }),
104
105
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
105
106
  children: hint
107
+ }),
108
+ citations && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
109
+ className: external_sentenceStyles_cjs_namespaceObject.HEADER_CITATIONS_CLASS,
110
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CitationButton_cjs_namespaceObject.CitationButtons, {
111
+ citations: citations.citations,
112
+ owner: {
113
+ kind: 'table'
114
+ },
115
+ onOpen: citations.onOpen,
116
+ selected: true,
117
+ tabIndex: 0,
118
+ className: external_sentenceStyles_cjs_namespaceObject.HEADER_CITATION_REVEAL_CLASS,
119
+ labels: labels,
120
+ dataTestId: `${dataTestId}-citation`
121
+ })
106
122
  })
107
123
  ]
108
124
  });
@@ -1,8 +1,10 @@
1
1
  import type React from 'react';
2
+ import { type CitationLabels } from './CitationButton';
2
3
  import type { DiffLabels } from './decisionTextDiff';
3
4
  import { type MarkBadgeProps } from './MarkBadge';
4
5
  import type { Mark } from './marks';
5
6
  import { type PolicyPickerProps } from './PolicyPicker';
7
+ import type { OpenCitation, SentenceCitation } from './sentenceTypes';
6
8
  export interface DecisionTextHeaderProps {
7
9
  title: {
8
10
  kind: 'label';
@@ -17,7 +19,11 @@ export interface DecisionTextHeaderProps {
17
19
  };
18
20
  hint: string;
19
21
  mark: Mark | undefined;
20
- labels: MarkBadgeProps['labels'] & Pick<DiffLabels, 'previousValue' | 'currentValue'>;
22
+ citations: {
23
+ citations: readonly SentenceCitation[];
24
+ onOpen: OpenCitation;
25
+ } | null;
26
+ labels: MarkBadgeProps['labels'] & Pick<DiffLabels, 'previousValue' | 'currentValue'> & CitationLabels;
21
27
  sticky: boolean;
22
28
  dataTestId: string;
23
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionTextHeader.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionTextHeader.tsx"],"names":[],"m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