@e-llm-studio/citation 0.0.211 → 0.0.212

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 (162) hide show
  1. package/README.md +340 -0
  2. package/dist/assests/icons/CitationsIcon.js +2 -0
  3. package/dist/assests/icons/CitationsIcon.js.map +1 -0
  4. package/dist/assests/icons/CitationsSparkleIcon.js +2 -0
  5. package/dist/assests/icons/CitationsSparkleIcon.js.map +1 -0
  6. package/dist/assests/svg/NeuralNetworkIcon.js +2 -0
  7. package/dist/assests/svg/NeuralNetworkIcon.js.map +1 -0
  8. package/dist/cjs/assests/icons/CitationsIcon.js +2 -0
  9. package/dist/cjs/assests/icons/CitationsIcon.js.map +1 -0
  10. package/dist/cjs/assests/icons/CitationsSparkleIcon.js +2 -0
  11. package/dist/cjs/assests/icons/CitationsSparkleIcon.js.map +1 -0
  12. package/dist/cjs/assests/svg/NeuralNetworkIcon.js +2 -0
  13. package/dist/cjs/assests/svg/NeuralNetworkIcon.js.map +1 -0
  14. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  15. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +1 -1
  16. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
  17. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  18. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  19. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js +1 -1
  20. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +2 -0
  21. package/dist/cjs/features/GptWebCitation/GptWebCitation.js.map +1 -0
  22. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +2 -0
  23. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js.map +1 -0
  24. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +2 -0
  25. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -0
  26. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +2 -0
  27. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -0
  28. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
  29. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
  30. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +2 -0
  31. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -0
  32. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +2 -0
  33. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js.map +1 -0
  34. package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +2 -0
  35. package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -0
  36. package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js +2 -0
  37. package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js.map +1 -0
  38. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js +2 -0
  39. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -0
  40. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +2 -0
  41. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -0
  42. package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js +2 -0
  43. package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js.map +1 -0
  44. package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js +2 -0
  45. package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -0
  46. package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js +2 -0
  47. package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js.map +1 -0
  48. package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +2 -0
  49. package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js.map +1 -0
  50. package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js +2 -0
  51. package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js.map +1 -0
  52. package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js +2 -0
  53. package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js.map +1 -0
  54. package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js +2 -0
  55. package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js.map +1 -0
  56. package/dist/cjs/features/InstantLearningCitation/types/Types.js +2 -0
  57. package/dist/cjs/features/InstantLearningCitation/types/Types.js.map +1 -0
  58. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
  59. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
  60. package/dist/cjs/index.js +1 -1
  61. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  62. package/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
  63. package/dist/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
  64. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  65. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  66. package/dist/features/CognitiveCompare/hooks/useStyles.js +1 -1
  67. package/dist/features/GptWebCitation/GptWebCitation.js +2 -0
  68. package/dist/features/GptWebCitation/GptWebCitation.js.map +1 -0
  69. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +2 -0
  70. package/dist/features/GptWebCitation/GptWebCitation.module.css.js.map +1 -0
  71. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +2 -0
  72. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -0
  73. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +2 -0
  74. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -0
  75. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
  76. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
  77. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +2 -0
  78. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -0
  79. package/dist/features/GptWebCitation/utils/citationData.utils.js +2 -0
  80. package/dist/features/GptWebCitation/utils/citationData.utils.js.map +1 -0
  81. package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +2 -0
  82. package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -0
  83. package/dist/features/InstantLearningCitation/HistorySkeleton.js +2 -0
  84. package/dist/features/InstantLearningCitation/HistorySkeleton.js.map +1 -0
  85. package/dist/features/InstantLearningCitation/InstantLearningCitation.js +2 -0
  86. package/dist/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -0
  87. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +2 -0
  88. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -0
  89. package/dist/features/InstantLearningCitation/OverrideTimeline.js +2 -0
  90. package/dist/features/InstantLearningCitation/OverrideTimeline.js.map +1 -0
  91. package/dist/features/InstantLearningCitation/RuleConditionBlock.js +2 -0
  92. package/dist/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -0
  93. package/dist/features/InstantLearningCitation/RuleContentComponent.js +2 -0
  94. package/dist/features/InstantLearningCitation/RuleContentComponent.js.map +1 -0
  95. package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +2 -0
  96. package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js.map +1 -0
  97. package/dist/features/InstantLearningCitation/css/Override.module.css.js +2 -0
  98. package/dist/features/InstantLearningCitation/css/Override.module.css.js.map +1 -0
  99. package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js +2 -0
  100. package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js.map +1 -0
  101. package/dist/features/InstantLearningCitation/css/common.module.css.js +2 -0
  102. package/dist/features/InstantLearningCitation/css/common.module.css.js.map +1 -0
  103. package/dist/features/InstantLearningCitation/types/Types.js +2 -0
  104. package/dist/features/InstantLearningCitation/types/Types.js.map +1 -0
  105. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
  106. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
  107. package/dist/index.js +1 -1
  108. package/dist/types/src/assests/icons/CitationsIcon.d.ts +2 -0
  109. package/dist/types/src/assests/icons/CitationsIcon.d.ts.map +1 -0
  110. package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts +10 -0
  111. package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts.map +1 -0
  112. package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts +9 -0
  113. package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts.map +1 -0
  114. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -1
  115. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -1
  116. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
  117. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  118. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +6 -0
  119. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  120. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts +3 -2
  121. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts.map +1 -1
  122. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +5 -0
  123. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -0
  124. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +8 -0
  125. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -0
  126. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +8 -0
  127. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -0
  128. package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts +9 -0
  129. package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts.map +1 -0
  130. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +3 -0
  131. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -0
  132. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +4 -0
  133. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -0
  134. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts +4 -0
  135. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -0
  136. package/dist/types/src/features/GptWebCitation/types.d.ts +112 -0
  137. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -0
  138. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +8 -0
  139. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -0
  140. package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +5 -0
  141. package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +1 -0
  142. package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts +10 -0
  143. package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts.map +1 -0
  144. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts +2 -0
  145. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +1 -0
  146. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +10 -0
  147. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -0
  148. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +4 -0
  149. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -0
  150. package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts +13 -0
  151. package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts.map +1 -0
  152. package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts +13 -0
  153. package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +1 -0
  154. package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts +5 -0
  155. package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts.map +1 -0
  156. package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts +12 -0
  157. package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts.map +1 -0
  158. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +350 -0
  159. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -0
  160. package/dist/types/src/index.d.ts +4 -0
  161. package/dist/types/src/index.d.ts.map +1 -1
  162. package/package.json +12 -1
@@ -0,0 +1,350 @@
1
+ import { ReactNode } from "react";
2
+ export type RuleSetCategory = 'Global' | 'Genre' | 'Custom';
3
+ export type RuleSetItem = {
4
+ ruleSetId: string;
5
+ ruleSetName: string;
6
+ ruleSetDesc: string;
7
+ ruleCount: number;
8
+ };
9
+ export type AllRuleSetsResponse = {
10
+ globalRuleSet: RuleSetItem[];
11
+ genreRuleSet: RuleSetItem[];
12
+ customRuleSet: RuleSetItem[];
13
+ };
14
+ export interface ILRuleData {
15
+ variant_id: string;
16
+ learning_title: string;
17
+ variant_text: string;
18
+ wta: string;
19
+ wnta: string;
20
+ cognitive_decisioning: string;
21
+ variant_type: string;
22
+ tier: string;
23
+ decision_strength: string;
24
+ }
25
+ export declare const parseCognitiveDecisioningString: (cognitiveDecisioningStr: string) => WhyRuleApplied;
26
+ export declare const convertILRuleToCognitiveDecisioningData: (ilRule: ILRuleData) => CognitiveDecisioningData;
27
+ /** Alias for library component compatibility */
28
+ export type RuleSets = AllRuleSetsResponse;
29
+ /**
30
+ * Represents a single station in the stations list.
31
+ */
32
+ export type StationItem = {
33
+ /** Unique identifier for the station (maps to ruleSetId) */
34
+ stationId: string;
35
+ /** Global unique identifier for the station (from station autocomplete) */
36
+ stationGuid?: string;
37
+ /** Display name of the station */
38
+ stationName: string;
39
+ /** Description of the station */
40
+ stationDescription: string;
41
+ /** Number of rules configured for this station */
42
+ rulesCount: number;
43
+ };
44
+ /**
45
+ * Scheduling configuration for a variant.
46
+ * Contains separation times and toggle settings.
47
+ */
48
+ export type SchedulingConfig = {
49
+ /** Order separation time in seconds */
50
+ order_global_min_separation_seconds?: number;
51
+ /** Advertiser separation time in seconds */
52
+ advertiser_global_min_separation_seconds?: number;
53
+ /** Whether to respect inventory codes */
54
+ respect_inventory_code?: boolean;
55
+ /** Whether to respect break codes */
56
+ respect_break_code?: boolean;
57
+ };
58
+ /**
59
+ * Configuration object for a variant containing scheduling settings.
60
+ */
61
+ export type VariantConfiguration = {
62
+ scheduling_config?: SchedulingConfig;
63
+ };
64
+ export type RuleCondition = {
65
+ text: string;
66
+ source?: string;
67
+ link?: string;
68
+ };
69
+ /**
70
+ * Represents a single variant of a rule.
71
+ * Each rule can have multiple variants with different conditions and configurations.
72
+ * Library-ready: fully typed and documented.
73
+ */
74
+ export type RuleVariant = {
75
+ /** Unique identifier for the variant */
76
+ variantId: string;
77
+ /** Description of what this variant does */
78
+ description: string;
79
+ /** Conditions under which this variant applies (joined by \" OR \") */
80
+ whenToApply: string;
81
+ /** Conditions under which this variant should NOT apply (joined by \" OR \") */
82
+ whenNotToApply: string;
83
+ /** Configuration settings for this variant (scheduling config, etc.) */
84
+ configuration?: VariantConfiguration;
85
+ /** Data source reference for this variant */
86
+ dataSource?: {
87
+ type: string;
88
+ ref: string;
89
+ tag: string;
90
+ };
91
+ variantType: string;
92
+ /** Inheritance chain for this variant (e.g., [\"Global\", \"Genre\", \"Station\"]) */
93
+ inheritance?: string[];
94
+ /** Link ID for this variant */
95
+ link_id?: string;
96
+ /** Whether this variant is linked to another variant */
97
+ isLinked?: boolean;
98
+ /** Name of the user who created this variant */
99
+ createdBy?: string;
100
+ /** ISO 8601 datetime when this variant was created */
101
+ createdAt?: string;
102
+ /** Name of the user who last updated this variant */
103
+ updatedBy?: string;
104
+ /** ISO 8601 datetime when this variant was last updated */
105
+ updatedAt?: string;
106
+ /** Whether the user has accepted the risk for this variant's gaps */
107
+ is_user_accepted_risk?: boolean;
108
+ is_enabled?: boolean;
109
+ isOverridden?: boolean | null;
110
+ };
111
+ /**
112
+ * Represents a rule definition which can contain multiple variants.
113
+ * Library-ready: supports both new variants structure and legacy flat structure.
114
+ */
115
+ export type RuleDefinition = {
116
+ /** Unique identifier for the rule */
117
+ ruleId: string;
118
+ /** Title/name of the rule */
119
+ ruleTitle: string;
120
+ /** Array of variants for this rule */
121
+ variants?: RuleVariant[];
122
+ /** Unique ID for internal use */
123
+ id?: string;
124
+ is_user_accepted_risk?: boolean;
125
+ has_accepted_risk?: string;
126
+ user_accepted_risk_at?: string;
127
+ /** @deprecated Use variants[].description instead */
128
+ ruleDesc?: string;
129
+ /** @deprecated Use variants[].whenToApply instead */
130
+ whenToApply?: string;
131
+ /** @deprecated Use variants[].whenNotToApply instead */
132
+ whenNotToApply?: string;
133
+ /** @deprecated Use variants[].configuration instead */
134
+ configuration?: VariantConfiguration;
135
+ /** @deprecated Use variants[].dataSource instead */
136
+ dataSource?: {
137
+ type: string;
138
+ ref: string;
139
+ tag: string;
140
+ };
141
+ /** @deprecated Use variants[].inheritance instead */
142
+ inheritance?: string[];
143
+ };
144
+ export type RuleSetDetailsResponse = {
145
+ ruleSetName: string;
146
+ ruleSetDesc: string | null;
147
+ tier1: RuleDefinition[];
148
+ tier2: RuleDefinition[];
149
+ tier3: RuleDefinition[];
150
+ };
151
+ export type ChangeLogItem = {
152
+ type: 'null' | 'edited' | 'add' | 'edit' | 'remove';
153
+ text: string;
154
+ scope: string;
155
+ };
156
+ export type OverrideHistoryField = {
157
+ changeLog: ChangeLogItem[];
158
+ };
159
+ export type OverrideHistoryResponse = {
160
+ ruleDescription: OverrideHistoryField;
161
+ wta: OverrideHistoryField;
162
+ wnta: OverrideHistoryField;
163
+ };
164
+ export type RuleTier = {
165
+ id: string;
166
+ name: string;
167
+ description: string;
168
+ ruleCount: number;
169
+ isOpen: boolean;
170
+ rules: RuleDefinition[];
171
+ };
172
+ export type CreateRuleSetPayload = {
173
+ ruleSetType: string;
174
+ ruleSetName: string;
175
+ ruleSetDesc: string;
176
+ };
177
+ export type UpdateDescriptionPayload = {
178
+ desc: string;
179
+ };
180
+ export type UpdateDescriptionResponse = {
181
+ enhancedDesc: string;
182
+ };
183
+ export type ChatResponseRequest = {
184
+ name: string;
185
+ organizationName: string;
186
+ prompt: string;
187
+ overrideAgentConfig: Record<string, unknown>;
188
+ metadata: Record<string, unknown>;
189
+ useAgent: {
190
+ agent_name: string;
191
+ arguments: {
192
+ user_query: string;
193
+ };
194
+ };
195
+ };
196
+ export interface HighlightedTextDetail {
197
+ learning_attribute: string;
198
+ text: string[];
199
+ }
200
+ export interface ILRuleHighlight {
201
+ il_learning_field: 'when_to_apply' | 'when_not_to_apply' | 'description' | string;
202
+ highlighted_text: HighlightedTextDetail[];
203
+ }
204
+ export interface CognitiveDecisioningData {
205
+ ruleDetails: RuleDetails;
206
+ whyRuleApplied: WhyRuleApplied;
207
+ il_learning_highlights?: ILRuleHighlight[];
208
+ }
209
+ export interface RuleDetails {
210
+ variant: string;
211
+ variantText: string;
212
+ tier: string;
213
+ variant_type: string;
214
+ description: string;
215
+ highlightedInDescription?: string;
216
+ whenToApply: ConditionItem[];
217
+ whenNotToApply: ConditionItem[];
218
+ decision_strength: string;
219
+ }
220
+ export interface ReasoningItem {
221
+ text: string;
222
+ }
223
+ export interface WhyRuleApplied {
224
+ decisionStrength: number;
225
+ reasoning: ReasoningItem[];
226
+ theGap: ReasoningItem[];
227
+ }
228
+ export interface ConditionItem {
229
+ text: string;
230
+ highlightedText?: string;
231
+ }
232
+ export interface CognitiveDecisioningContentProps {
233
+ /** Cognitive decisioning data with rule details and reasoning */
234
+ data: CognitiveDecisioningData;
235
+ /** Custom labels for localization */
236
+ labels?: {
237
+ adSummaryTitle?: string;
238
+ orderDate?: string;
239
+ priorityCode?: string;
240
+ invCode?: string;
241
+ breakCode?: string;
242
+ duration?: string;
243
+ revenue?: string;
244
+ whenToApply?: string;
245
+ whenNotToApply?: string;
246
+ noConditions?: string;
247
+ whyRuleApplied?: string;
248
+ decisionStrength?: string;
249
+ reasoning?: string;
250
+ theGap?: string;
251
+ };
252
+ }
253
+ export type Props = {
254
+ value: string;
255
+ onChange?: (v: string) => void;
256
+ readOnly?: boolean;
257
+ height?: string | number;
258
+ citations?: any[];
259
+ highlightedText?: string;
260
+ isStreaming?: boolean;
261
+ onCitationToggle: (keys: string[], adId: string, isOpen: boolean) => void;
262
+ };
263
+ export interface ComparisonHighlight {
264
+ attributesToBehighlighted?: string[];
265
+ }
266
+ export interface RuleContentPanelProps {
267
+ /** The rule definition object */
268
+ rule: RuleDefinition;
269
+ /**
270
+ * Optional handler to fetch override history for a rule.
271
+ * Parent component should implement API call logic.
272
+ * Returns OverrideHistoryResponse or null on error.
273
+ */
274
+ onFetchOverrideHistory?: (ruleId: string) => Promise<OverrideHistoryResponse | null>;
275
+ /** Custom label for "Inherited override" chip */
276
+ inheritedOverrideLabel?: string;
277
+ /** Custom label for "Default variant" chip */
278
+ defaultVariantLabel?: string;
279
+ /** Custom label for "View Override" button */
280
+ viewOverrideLabel?: string;
281
+ /** Custom label for "Hide Override" button */
282
+ hideOverrideLabel?: string;
283
+ /** Custom label for "Edit" button */
284
+ editButtonLabel?: string;
285
+ /** Custom label for "When to Apply" section */
286
+ whenToApplyLabel?: string;
287
+ /** Custom label for "When Not to Apply" section */
288
+ whenNotToApplyLabel?: string;
289
+ /** Custom text for no conditions */
290
+ noConditionsText?: string;
291
+ /** Custom error message when history fetch fails */
292
+ historyErrorMessage?: string;
293
+ /** Custom error message when rule ID is missing */
294
+ missingRuleIdMessage?: string;
295
+ /** Callback when Edit button is clicked. If not provided, shows "Coming soon..." tooltip. */
296
+ onEdit?: (rule: RuleDefinition, tierName?: string) => void;
297
+ /** Whether to show the actions bar (View Override, Edit). Defaults to true. */
298
+ showActionsBar?: boolean;
299
+ /** Custom tier chip to display instead of the default variant chip. If provided, replaces the default. */
300
+ tierChip?: ReactNode;
301
+ /** Custom variant chip to display. If tierChip is provided, this is ignored. */
302
+ customVariantChip?: ReactNode;
303
+ /** Whether to show the rule description box. Defaults to true. */
304
+ showDescriptionBox?: boolean;
305
+ /** Custom description text to override rule.ruleDesc */
306
+ customDescription?: string;
307
+ /** Whether to show the condition blocks. Defaults to true. */
308
+ showConditions?: boolean;
309
+ /** Whether the "When to Apply" section should be open by default. Defaults to true. */
310
+ defaultApplyOpen?: boolean;
311
+ /** Whether the "When Not to Apply" section should be open by default. Defaults to true. */
312
+ defaultNotApplyOpen?: boolean;
313
+ /** Additional class name for the root container */
314
+ className?: string;
315
+ /** Custom content to render at the top (before variant chip) */
316
+ headerContent?: ReactNode;
317
+ /** Custom content to render at the bottom (after conditions) */
318
+ footerContent?: ReactNode;
319
+ /** Tier name to pass when onEdit is called (e.g., "Tier 1", "Tier 2") */
320
+ tierName?: string;
321
+ }
322
+ export interface RuleConditionBlockProps {
323
+ /** Type of condition block - determines styling and icon */
324
+ type: 'apply' | 'notApply';
325
+ /** The conditions string (may contain "OR" separator) or pre-rendered React nodes */
326
+ conditions: string | React.ReactNode;
327
+ /** Whether the block is expanded */
328
+ isOpen: boolean;
329
+ /** Callback to toggle expansion */
330
+ onToggle: () => void;
331
+ /** Whether to show override history UI */
332
+ showOverrideHistory?: boolean;
333
+ /** Whether override history is loading */
334
+ isLoadingHistory?: boolean;
335
+ /** Error message when loading history fails */
336
+ historyError?: string | null;
337
+ /** Override history data for the timeline */
338
+ overrideHistoryData?: ChangeLogItem[];
339
+ /** Custom label text for the block header */
340
+ labelText?: string;
341
+ /** Custom text when no conditions exist */
342
+ noConditionsText?: string;
343
+ }
344
+ export interface OverrideTimelineProps {
345
+ /** Array of change log items to display */
346
+ changeLog: ChangeLogItem[];
347
+ /** Custom header text (default: "Override History") */
348
+ headerText?: string;
349
+ }
350
+ //# sourceMappingURL=Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearningCitation/types/Types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAQD,eAAO,MAAM,+BAA+B,4BAA6B,MAAM,KAAG,cAuDjF,CAAC;AAEF,eAAO,MAAM,uCAAuC,WAAY,UAAU,KAAG,wBA6B5E,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,G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,CAAC;IAC3B,2FAA2F;IAC3F,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,gEAAgE;IAChE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,uBAAuB;IACpC,4DAA4D;IAC5D,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,qFAAqF;IACrF,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACrC,oCAAoC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,aAAa,EAAE,CAAC;IACtC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,2CAA2C;IAC3C,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -33,4 +33,8 @@ export { default as TextualGuideLinesComponent } from "./features/TextualGuideli
33
33
  export { IngestionStatusComponent } from "./features/IngestionStatus/IngestionStatusComponent";
34
34
  export { IngestionStatusChip } from "./features/IngestionStatus/IngestionStatusComponent";
35
35
  export { ManageReminders } from "./features/ManageRemainders/ManageReminders";
36
+ export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitation";
37
+ export { default as InstantLearningCitationWrapper } from "./features/InstantLearningCitation/InstantLearningCitationComponent";
38
+ export { mapCitationDataToDisplay, getWebCitationImageUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
39
+ export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, GptWebCitationView, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, } from "./features/GptWebCitation/types";
36
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO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D,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,qDAAqD,CAAA;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,OAAO,IAAI,8BAA8B,EAAC,MAAM,qEAAqE,CAAA;AAC7H,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.211",
3
+ "version": "0.0.212",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -151,6 +151,16 @@
151
151
  "import": "./dist/features/ManageRemainders/ManageReminders.js",
152
152
  "require": "./dist/cjs/features/ManageRemainders/ManageReminders.js",
153
153
  "types": "./dist/types/src/features/ManageRemainders/ManageReminders.d.ts"
154
+ },
155
+ "./GptWebCitation": {
156
+ "import": "./dist/features/GptWebCitation/GptWebCitation.js",
157
+ "require": "./dist/cjs/features/GptWebCitation/GptWebCitation.js",
158
+ "types": "./dist/types/src/features/GptWebCitation/GptWebCitation.d.ts"
159
+ },
160
+ "./InstantLearningCitationWrapper": {
161
+ "import": "./dist/features/InstantLearningCitation/InstantLearningCitationComponent.js",
162
+ "require": "./dist/features/InstantLearningCitation/InstantLearningCitationComponent.js",
163
+ "types": "./dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts"
154
164
  }
155
165
  },
156
166
  "repository": {
@@ -222,6 +232,7 @@
222
232
  "@rollup/plugin-url": "^8.0.2",
223
233
  "@svgr/rollup": "8.1.0",
224
234
  "@types/react": "17.0.83",
235
+ "date-fns": "^4.4.0",
225
236
  "@types/react-dom": "17.0.26",
226
237
  "@types/react-router-dom": "5.3.3",
227
238
  "@types/react-syntax-highlighter": "^15.5.13",