agentic-ui-libs 1.0.0-beta.9 → 1.1.0-beta.-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 (147) hide show
  1. package/dist/assets/agentic-ui-libs.css +12431 -0
  2. package/dist/features/debug-logs/components/DebugCard.d.ts.map +1 -1
  3. package/dist/features/debug-logs/index.d.ts +2 -1
  4. package/dist/features/debug-logs/index.d.ts.map +1 -1
  5. package/dist/features/md-editor/MDEditor.d.ts.map +1 -1
  6. package/dist/features/md-editor/components/AIRefinePanel.d.ts.map +1 -1
  7. package/dist/features/md-editor/components/SlashMenu.d.ts.map +1 -1
  8. package/dist/features/md-editor/utils/markdown.d.ts.map +1 -1
  9. package/dist/features/tracing/components/GenerationsList.d.ts +13 -0
  10. package/dist/features/tracing/components/GenerationsList.d.ts.map +1 -0
  11. package/dist/features/tracing/components/SessionsList.d.ts +12 -0
  12. package/dist/features/tracing/components/SessionsList.d.ts.map +1 -0
  13. package/dist/features/tracing/components/TracesList.d.ts +12 -0
  14. package/dist/features/tracing/components/TracesList.d.ts.map +1 -0
  15. package/dist/features/tracing/components/detail/DetailPage.d.ts +15 -0
  16. package/dist/features/tracing/components/detail/DetailPage.d.ts.map +1 -0
  17. package/dist/features/tracing/components/detail/NodeDetailPanel.d.ts +13 -0
  18. package/dist/features/tracing/components/detail/NodeDetailPanel.d.ts.map +1 -0
  19. package/dist/features/tracing/components/detail/ObservationNode.d.ts +9 -0
  20. package/dist/features/tracing/components/detail/ObservationNode.d.ts.map +1 -0
  21. package/dist/features/tracing/components/detail/TraceTree.d.ts +9 -0
  22. package/dist/features/tracing/components/detail/TraceTree.d.ts.map +1 -0
  23. package/dist/features/tracing/components/detail/config/index.d.ts +5 -0
  24. package/dist/features/tracing/components/detail/config/index.d.ts.map +1 -0
  25. package/dist/features/tracing/components/detail/config/observationFilterConfig.d.ts +41 -0
  26. package/dist/features/tracing/components/detail/config/observationFilterConfig.d.ts.map +1 -0
  27. package/dist/features/tracing/components/detail/index.d.ts +14 -0
  28. package/dist/features/tracing/components/detail/index.d.ts.map +1 -0
  29. package/dist/features/tracing/components/detail/services/DetailPageService.d.ts +119 -0
  30. package/dist/features/tracing/components/detail/services/DetailPageService.d.ts.map +1 -0
  31. package/dist/features/tracing/components/detail/services/index.d.ts +5 -0
  32. package/dist/features/tracing/components/detail/services/index.d.ts.map +1 -0
  33. package/dist/features/tracing/components/detail/types.d.ts +216 -0
  34. package/dist/features/tracing/components/detail/types.d.ts.map +1 -0
  35. package/dist/features/tracing/components/shared/ColumnCustomization.d.ts +14 -0
  36. package/dist/features/tracing/components/shared/ColumnCustomization.d.ts.map +1 -0
  37. package/dist/features/tracing/components/shared/EmptyState.d.ts +15 -0
  38. package/dist/features/tracing/components/shared/EmptyState.d.ts.map +1 -0
  39. package/dist/features/tracing/components/shared/FilterPanel.d.ts +13 -0
  40. package/dist/features/tracing/components/shared/FilterPanel.d.ts.map +1 -0
  41. package/dist/features/tracing/components/shared/LoadingSpinner.d.ts +11 -0
  42. package/dist/features/tracing/components/shared/LoadingSpinner.d.ts.map +1 -0
  43. package/dist/features/tracing/components/shared/TokenBreakdownTooltip.d.ts +18 -0
  44. package/dist/features/tracing/components/shared/TokenBreakdownTooltip.d.ts.map +1 -0
  45. package/dist/features/tracing/components/shared/TracingListHeader.d.ts +32 -0
  46. package/dist/features/tracing/components/shared/TracingListHeader.d.ts.map +1 -0
  47. package/dist/features/tracing/components/shared/TracingTable.d.ts +9 -0
  48. package/dist/features/tracing/components/shared/TracingTable.d.ts.map +1 -0
  49. package/dist/features/tracing/components/shared/index.d.ts +14 -0
  50. package/dist/features/tracing/components/shared/index.d.ts.map +1 -0
  51. package/dist/features/tracing/components/shared/skeletons/NodeDetailSkeleton.d.ts +12 -0
  52. package/dist/features/tracing/components/shared/skeletons/NodeDetailSkeleton.d.ts.map +1 -0
  53. package/dist/features/tracing/components/shared/skeletons/TableSkeleton.d.ts +13 -0
  54. package/dist/features/tracing/components/shared/skeletons/TableSkeleton.d.ts.map +1 -0
  55. package/dist/features/tracing/components/shared/skeletons/TreeSkeleton.d.ts +24 -0
  56. package/dist/features/tracing/components/shared/skeletons/TreeSkeleton.d.ts.map +1 -0
  57. package/dist/features/tracing/components/shared/skeletons/index.d.ts +8 -0
  58. package/dist/features/tracing/components/shared/skeletons/index.d.ts.map +1 -0
  59. package/dist/features/tracing/contexts/EnvironmentContext.d.ts +50 -0
  60. package/dist/features/tracing/contexts/EnvironmentContext.d.ts.map +1 -0
  61. package/dist/features/tracing/contexts/index.d.ts +6 -0
  62. package/dist/features/tracing/contexts/index.d.ts.map +1 -0
  63. package/dist/features/tracing/index.d.ts +22 -0
  64. package/dist/features/tracing/index.d.ts.map +1 -0
  65. package/dist/features/tracing/mocks/index.d.ts +6 -0
  66. package/dist/features/tracing/mocks/index.d.ts.map +1 -0
  67. package/dist/features/tracing/mocks/mockData.d.ts +12 -0
  68. package/dist/features/tracing/mocks/mockData.d.ts.map +1 -0
  69. package/dist/features/tracing/services/ObservationTreeBuilder.d.ts +51 -0
  70. package/dist/features/tracing/services/ObservationTreeBuilder.d.ts.map +1 -0
  71. package/dist/features/tracing/services/TraceTreeService.d.ts +105 -0
  72. package/dist/features/tracing/services/TraceTreeService.d.ts.map +1 -0
  73. package/dist/features/tracing/services/TracingApiService.d.ts +139 -0
  74. package/dist/features/tracing/services/TracingApiService.d.ts.map +1 -0
  75. package/dist/features/tracing/services/TracingUtils.d.ts +164 -0
  76. package/dist/features/tracing/services/TracingUtils.d.ts.map +1 -0
  77. package/dist/features/tracing/services/index.d.ts +10 -0
  78. package/dist/features/tracing/services/index.d.ts.map +1 -0
  79. package/dist/features/tracing/types.d.ts +545 -0
  80. package/dist/features/tracing/types.d.ts.map +1 -0
  81. package/dist/features/tracing/utils/index.d.ts +7 -0
  82. package/dist/features/tracing/utils/index.d.ts.map +1 -0
  83. package/dist/features/tracing/utils/observationIconUtils.d.ts +19 -0
  84. package/dist/features/tracing/utils/observationIconUtils.d.ts.map +1 -0
  85. package/dist/features/tracing/utils/staticApidata.d.ts +1 -0
  86. package/dist/features/tracing/utils/staticApidata.d.ts.map +1 -0
  87. package/dist/index.angular.d.ts +32 -0
  88. package/dist/index.angular.d.ts.map +1 -0
  89. package/dist/index.d.ts +1 -1
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +79899 -7309
  92. package/dist/shared/ui/CodeEditor.d.ts +15 -0
  93. package/dist/shared/ui/CodeEditor.d.ts.map +1 -1
  94. package/dist/shared/ui/DataViewer.d.ts +30 -0
  95. package/dist/shared/ui/DataViewer.d.ts.map +1 -0
  96. package/dist/shared/ui/IconPreview.d.ts.map +1 -1
  97. package/dist/shared/ui/Modal.d.ts +16 -0
  98. package/dist/shared/ui/Modal.d.ts.map +1 -0
  99. package/dist/shared/ui/Select.d.ts +2 -0
  100. package/dist/shared/ui/Select.d.ts.map +1 -1
  101. package/dist/shared/ui/daterangepicker.d.ts +4 -2
  102. package/dist/shared/ui/daterangepicker.d.ts.map +1 -1
  103. package/dist/shared/ui/index.d.ts +4 -0
  104. package/dist/shared/ui/index.d.ts.map +1 -1
  105. package/dist/ui-libs.umd.js +80065 -7475
  106. package/package.json +33 -21
  107. package/dist/assets/style.css +0 -4170
  108. package/dist/features/debug-logs/components/DataViewer.d.ts +0 -18
  109. package/dist/features/debug-logs/components/DataViewer.d.ts.map +0 -1
  110. package/dist/features/prompt-editor/PromptEditor.d.ts +0 -14
  111. package/dist/features/prompt-editor/PromptEditor.d.ts.map +0 -1
  112. package/dist/features/prompt-editor/RefinePanel.d.ts +0 -41
  113. package/dist/features/prompt-editor/RefinePanel.d.ts.map +0 -1
  114. package/dist/features/prompt-editor/components/AddToolbar.d.ts +0 -8
  115. package/dist/features/prompt-editor/components/AddToolbar.d.ts.map +0 -1
  116. package/dist/features/prompt-editor/components/ChatMessage.d.ts +0 -13
  117. package/dist/features/prompt-editor/components/ChatMessage.d.ts.map +0 -1
  118. package/dist/features/prompt-editor/components/CodeEditor.d.ts +0 -8
  119. package/dist/features/prompt-editor/components/CodeEditor.d.ts.map +0 -1
  120. package/dist/features/prompt-editor/components/ContentBlock.d.ts +0 -23
  121. package/dist/features/prompt-editor/components/ContentBlock.d.ts.map +0 -1
  122. package/dist/features/prompt-editor/components/EditableContent.d.ts +0 -16
  123. package/dist/features/prompt-editor/components/EditableContent.d.ts.map +0 -1
  124. package/dist/features/prompt-editor/components/FormattingToolbar.d.ts +0 -10
  125. package/dist/features/prompt-editor/components/FormattingToolbar.d.ts.map +0 -1
  126. package/dist/features/prompt-editor/components/Header.d.ts +0 -2
  127. package/dist/features/prompt-editor/components/Header.d.ts.map +0 -1
  128. package/dist/features/prompt-editor/components/InsertMenu.d.ts +0 -14
  129. package/dist/features/prompt-editor/components/InsertMenu.d.ts.map +0 -1
  130. package/dist/features/prompt-editor/components/RefineDropdown.d.ts +0 -14
  131. package/dist/features/prompt-editor/components/RefineDropdown.d.ts.map +0 -1
  132. package/dist/features/prompt-editor/components/Section.d.ts +0 -27
  133. package/dist/features/prompt-editor/components/Section.d.ts.map +0 -1
  134. package/dist/features/prompt-editor/components/SectionHeader.d.ts +0 -15
  135. package/dist/features/prompt-editor/components/SectionHeader.d.ts.map +0 -1
  136. package/dist/features/prompt-editor/components/icons.d.ts +0 -16
  137. package/dist/features/prompt-editor/components/icons.d.ts.map +0 -1
  138. package/dist/features/prompt-editor/data/insertableItems.d.ts +0 -17
  139. package/dist/features/prompt-editor/data/insertableItems.d.ts.map +0 -1
  140. package/dist/features/prompt-editor/index.d.ts +0 -19
  141. package/dist/features/prompt-editor/index.d.ts.map +0 -1
  142. package/dist/features/prompt-editor/services/EditorUtils.d.ts +0 -48
  143. package/dist/features/prompt-editor/services/EditorUtils.d.ts.map +0 -1
  144. package/dist/features/prompt-editor/services/PromptApiService.d.ts +0 -22
  145. package/dist/features/prompt-editor/services/PromptApiService.d.ts.map +0 -1
  146. package/dist/features/prompt-editor/types.d.ts +0 -102
  147. package/dist/features/prompt-editor/types.d.ts.map +0 -1
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- type ViewMode = 'interactive' | 'plain';
3
- interface DataViewerProps {
4
- data: any;
5
- title?: string;
6
- className?: string;
7
- maxHeight?: string;
8
- showHeader?: boolean;
9
- defaultExpanded?: boolean;
10
- defaultViewMode?: ViewMode;
11
- padding?: string;
12
- viewMode?: ViewMode;
13
- onViewModeChange?: (mode: ViewMode) => void;
14
- darkMode?: boolean;
15
- }
16
- export declare const DataViewer: React.FC<DataViewerProps>;
17
- export default DataViewer;
18
- //# sourceMappingURL=DataViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataViewer.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/components/DataViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAYzE,KAAK,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;AAExC,UAAU,eAAe;IACvB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAE5C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA6UD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8MhD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { PromptEditorProps } from "./types";
2
- export declare function PromptEditor({ value, markdownValue, onChange, onMarkdownChange, title, onTitleChange, mode, onModeChange, onRefine, className, validateContent, showHeader, promptType, agentContext, suggestions, }: PromptEditorProps & {
3
- promptType?: string;
4
- agentContext?: {
5
- userId?: string;
6
- accountId?: string;
7
- appId?: string;
8
- appName?: string;
9
- agentName?: string;
10
- variables?: Record<string, string>;
11
- metadata?: Record<string, unknown>;
12
- };
13
- }): import("react/jsx-runtime").JSX.Element;
14
- //# sourceMappingURL=PromptEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PromptEditor.d.ts","sourceRoot":"","sources":["../../../src/features/prompt-editor/PromptEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAA2D,MAAM,SAAS,CAAC;AAG1G,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,KAAgB,EAChB,aAAa,EACb,IAAe,EACf,YAAY,EACZ,QAAQ,EACR,SAAc,EACd,eAAe,EACf,UAAkB,EAClB,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,EAAE,iBAAiB,GAAG;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,CAAC;CACH,2CAqrBA"}
@@ -1,41 +0,0 @@
1
- import type { RefineContext, RefineResponse } from "./types";
2
- interface RefinePanelProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- originalText: string;
6
- initialInstruction: string;
7
- onReplace: (refinedText: string, originalText: string, contentId?: string, selectionRange?: {
8
- start: number;
9
- end: number;
10
- }) => void;
11
- onInsert: (refinedText: string, originalText: string, contentId?: string, selectionRange?: {
12
- start: number;
13
- end: number;
14
- }) => void;
15
- context: "whole" | "selection";
16
- onRefine: (context: RefineContext) => Promise<RefineResponse>;
17
- promptType?: string;
18
- agentContext?: {
19
- userId?: string;
20
- accountId?: string;
21
- appId?: string;
22
- appName?: string;
23
- agentName?: string;
24
- variables?: Record<string, string>;
25
- metadata?: Record<string, unknown>;
26
- };
27
- contentId?: string;
28
- selectionRange?: {
29
- start: number;
30
- end: number;
31
- };
32
- surroundingContext?: string;
33
- fullPromptContext?: string;
34
- refinementMode?: 'selection-only' | 'contextual-segment' | 'full-prompt' | 'smart-auto';
35
- selectionStartIndex?: number;
36
- selectionEndIndex?: number;
37
- actionType?: string;
38
- }
39
- export declare function RefinePanel({ isOpen, onClose, originalText, initialInstruction, onReplace, onInsert, context, onRefine, promptType, agentContext, contentId, selectionRange, surroundingContext, fullPromptContext, refinementMode, selectionStartIndex, selectionEndIndex, actionType, }: RefinePanelProps): import("react/jsx-runtime").JSX.Element | null;
40
- export {};
41
- //# sourceMappingURL=RefinePanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RefinePanel.d.ts","sourceRoot":"","sources":["../../../src/features/prompt-editor/RefinePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQ7D,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAA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R,OAAO,EACP,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,GACX,EAAE,gBAAgB,kDAwYlB"}
@@ -1,8 +0,0 @@
1
- interface AddToolbarProps {
2
- onAdd: (type: "subsection" | "text") => void;
3
- isNested?: boolean;
4
- isRootLevel?: boolean;
5
- }
6
- export declare function AddToolbar({ onAdd, isNested, isRootLevel }: AddToolbarProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=AddToolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddToolbar.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/AddToolbar.tsx"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACvB,KAAK,EAAE,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAgB,EAAE,WAAmB,EAAE,EAAE,eAAe,2CAiC3F"}
@@ -1,13 +0,0 @@
1
- interface ChatMessageProps {
2
- role: "user" | "assistant";
3
- content: string;
4
- quotedText?: string;
5
- onInsert?: (content: string) => void;
6
- onReplace?: (content: string) => void;
7
- showActions?: boolean;
8
- isUsed?: boolean;
9
- }
10
- export declare function ChatMessage({ role, content, quotedText, onInsert, onReplace, showActions, isUsed }: ChatMessageProps): import("react/jsx-runtime").JSX.Element;
11
- export declare function SkeletonMessage(): import("react/jsx-runtime").JSX.Element;
12
- export {};
13
- //# sourceMappingURL=ChatMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/ChatMessage.tsx"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAmB,EAAE,MAAc,EAAE,EAAE,gBAAgB,2CA2DpI;AAED,wBAAgB,eAAe,4CAW9B"}
@@ -1,8 +0,0 @@
1
- interface CodeEditorProps {
2
- value: string;
3
- onChange: (value: string) => void;
4
- language: "json" | "markdown" | "text";
5
- }
6
- export declare function CodeEditor({ value, onChange, language }: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=CodeEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/CodeEditor.tsx"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;CACxC;AAwJD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,eAAe,2CA2IxE"}
@@ -1,23 +0,0 @@
1
- import type { ContentBlock } from "../types";
2
- interface ContentBlockProps {
3
- block: ContentBlock;
4
- sectionId: string;
5
- onUpdate: (content: string) => void;
6
- onDelete?: () => void;
7
- onAddToSubsection: (type: "subsection" | "text", parentId: string, initialContent?: string, listType?: "bulleted" | "numbered") => void;
8
- onUpdateContentBlock: (contentId: string, content: string) => void;
9
- onDeleteContentBlock: (contentId: string) => void;
10
- depth?: number;
11
- isAutoCreated?: boolean;
12
- onOpenRefineModal?: (type: "whole" | "selection", originalText: string, instruction: string, contentId?: string, selectionRange?: {
13
- start: number;
14
- end: number;
15
- }) => void;
16
- activeContentId: string | null;
17
- onSetActive: (id: string | null) => void;
18
- parentId: string;
19
- suggestions?: any[];
20
- }
21
- export declare function ContentBlock({ block, sectionId, onUpdate, onDelete, onAddToSubsection, onUpdateContentBlock, onDeleteContentBlock, depth, onOpenRefineModal, activeContentId, onSetActive, parentId, suggestions, }: ContentBlockProps): import("react/jsx-runtime").JSX.Element;
22
- export {};
23
- //# sourceMappingURL=ContentBlock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentBlock.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/ContentBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO7C,UAAU,iBAAiB;IACzB,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;IACxI,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1K,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,KAAS,EACT,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,QAAQ,EACR,WAAW,GACZ,EAAE,iBAAiB,2CAoJnB"}
@@ -1,16 +0,0 @@
1
- import { InsertableItem } from "../data/insertableItems";
2
- interface EditableContentProps {
3
- content: string;
4
- onChange: (content: string) => void;
5
- onEnter?: () => void;
6
- placeholder?: string;
7
- showPlaceholder?: boolean;
8
- className?: string;
9
- onFormat?: (command: string) => void;
10
- listType?: "bulleted" | "numbered";
11
- availableVariables?: string[];
12
- suggestions?: InsertableItem[];
13
- }
14
- export declare function EditableContent({ content, onChange, onEnter, placeholder, showPlaceholder, className, onFormat, listType, suggestions, }: EditableContentProps): import("react/jsx-runtime").JSX.Element;
15
- export {};
16
- //# sourceMappingURL=EditableContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditableContent.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/EditableContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,QAAQ,EACR,OAAO,EACP,WAA+B,EAC/B,eAAsB,EACtB,SAAc,EACd,QAAQ,EACR,QAAQ,EACR,WAAW,GACZ,EAAE,oBAAoB,2CA6YtB"}
@@ -1,10 +0,0 @@
1
- interface FormattingToolbarProps {
2
- onFormat: (command: string, value?: string) => void;
3
- onOpenRefineModal?: (type: "whole" | "selection", originalText: string, instruction: string, contentId?: string, selectionRange?: {
4
- start: number;
5
- end: number;
6
- }, surroundingContext?: string, actionType?: string) => void;
7
- }
8
- export declare function FormattingToolbar({ onFormat, onOpenRefineModal }: FormattingToolbarProps): import("react/jsx-runtime").JSX.Element | null;
9
- export {};
10
- //# sourceMappingURL=FormattingToolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormattingToolbar.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/FormattingToolbar.tsx"],"names":[],"mappings":"AAMA,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7N;AAOD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,EAAE,sBAAsB,kDAkUxF"}
@@ -1,2 +0,0 @@
1
- export declare function Header(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=Header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/Header.tsx"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,4CAuCrB"}
@@ -1,14 +0,0 @@
1
- import { InsertableItem } from "../data/insertableItems";
2
- interface InsertMenuProps {
3
- position: {
4
- top: number;
5
- left: number;
6
- };
7
- searchQuery: string;
8
- onSelect: (item: InsertableItem) => void;
9
- onClose: () => void;
10
- suggestions?: InsertableItem[];
11
- }
12
- export declare function InsertMenu({ position, searchQuery, onSelect, onClose, suggestions, }: InsertMenuProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
14
- //# sourceMappingURL=InsertMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InsertMenu.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/InsertMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAA6B,MAAM,yBAAyB,CAAC;AAGpF,UAAU,eAAe;IACvB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAChC;AAID,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE,eAAe,2CAiSjB"}
@@ -1,14 +0,0 @@
1
- interface DropdownPosition {
2
- top: number;
3
- left: number;
4
- }
5
- interface RefineDropdownProps {
6
- isOpen: boolean;
7
- onClose: () => void;
8
- onRefine: (instruction: string, actionType?: string) => void;
9
- position: DropdownPosition;
10
- context?: "whole" | "selection";
11
- }
12
- export declare function RefineDropdown({ isOpen, onClose, onRefine, position, }: RefineDropdownProps): import("react/jsx-runtime").JSX.Element | null;
13
- export {};
14
- //# sourceMappingURL=RefineDropdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RefineDropdown.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/RefineDropdown.tsx"],"names":[],"mappings":"AAUA,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,mBAAmB;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CACjC;AAUD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,EAAE,mBAAmB,kDAgJrB"}
@@ -1,27 +0,0 @@
1
- import type { SectionData, FormatType, ContentBlock } from "../types";
2
- interface SectionProps {
3
- section: SectionData;
4
- index: number;
5
- moveSection: (dragIndex: number, hoverIndex: number) => void;
6
- moveSectionUp: () => void;
7
- moveSectionDown: () => void;
8
- deleteSection: (id: string) => void;
9
- updateSectionTitle: (id: string, title: string) => void;
10
- updateSectionFormat: (id: string, format: FormatType) => void;
11
- addContentBlock: (sectionId: string, type: ContentBlock["type"], parentId?: string, afterBlockId?: string, initialContent?: string, listType?: "bulleted" | "numbered") => string;
12
- updateContentBlock: (sectionId: string, contentId: string, content: string) => void;
13
- deleteContentBlock: (sectionId: string, contentId: string) => void;
14
- replaceAllContent: (sectionId: string, newContent: ContentBlock[]) => void;
15
- isFirst: boolean;
16
- isLast: boolean;
17
- onOpenRefineModal?: (type: "whole" | "selection", originalText: string, instruction: string, contentId?: string, selectionRange?: {
18
- start: number;
19
- end: number;
20
- }) => void;
21
- activeContentId: string | null;
22
- onSetActive: (id: string | null) => void;
23
- suggestions?: any[];
24
- }
25
- export declare function Section({ section, moveSectionUp, moveSectionDown, deleteSection, updateSectionFormat, addContentBlock, updateContentBlock, deleteContentBlock, replaceAllContent, isFirst, isLast, onOpenRefineModal, activeContentId, onSetActive, suggestions, }: SectionProps): import("react/jsx-runtime").JSX.Element | null;
26
- export {};
27
- //# sourceMappingURL=Section.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/Section.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAOtE,UAAU,YAAY;IACpB,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,kBAAkB,EAAE,CAAC,EAAE,EAAE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AAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,WAAW,GACZ,EAAE,YAAY,kDAoJd"}
@@ -1,15 +0,0 @@
1
- import type { FormatType } from "../types";
2
- interface SectionHeaderProps {
3
- activeFormat: FormatType;
4
- onFormatChange: (format: FormatType) => void;
5
- onMoveUp?: () => void;
6
- onMoveDown?: () => void;
7
- onDelete?: () => void;
8
- canMoveUp?: boolean;
9
- canMoveDown?: boolean;
10
- onOpenRefineModal: (type: "whole" | "selection", originalText: string, instruction: string) => void;
11
- sectionContent: string;
12
- }
13
- export declare function SectionHeader({ activeFormat, onFormatChange, onOpenRefineModal, sectionContent, }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
14
- export {};
15
- //# sourceMappingURL=SectionHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAU3C,UAAU,kBAAkB;IAC1B,YAAY,EAAE,UAAU,CAAC;IACzB,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACpG,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,EAAE,kBAAkB,2CAwHpB"}
@@ -1,16 +0,0 @@
1
- export declare function PencilAi(): import("react/jsx-runtime").JSX.Element;
2
- export declare function GenerateIcon(): import("react/jsx-runtime").JSX.Element;
3
- export declare function ArrowCircleUpIcon({ isActive }: {
4
- isActive: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- export declare function MagicWandIcon(): import("react/jsx-runtime").JSX.Element;
7
- export declare function CollapseAllIcon(): import("react/jsx-runtime").JSX.Element;
8
- export declare function ExpandAllIcon(): import("react/jsx-runtime").JSX.Element;
9
- export declare function FileCodeIcon(): import("react/jsx-runtime").JSX.Element;
10
- export declare function AgentIcon(): import("react/jsx-runtime").JSX.Element;
11
- export declare function KnowledgeIcon(): import("react/jsx-runtime").JSX.Element;
12
- export declare function ToolIcon(): import("react/jsx-runtime").JSX.Element;
13
- export declare function MemoryIcon(): import("react/jsx-runtime").JSX.Element;
14
- export declare function EnvVariableIcon(): import("react/jsx-runtime").JSX.Element;
15
- export declare function SystemVariableIcon(): import("react/jsx-runtime").JSX.Element;
16
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/components/icons.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,4CAYvB;AAED,wBAAgB,YAAY,4CAiC3B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,2CAiBpE;AAED,wBAAgB,aAAa,4CAY5B;AAED,wBAAgB,eAAe,4CAY9B;AAED,wBAAgB,aAAa,4CAY5B;AAED,wBAAgB,YAAY,4CAY3B;AAGD,wBAAgB,SAAS,4CAgBxB;AAED,wBAAgB,aAAa,4CAgB5B;AAED,wBAAgB,QAAQ,4CAgBvB;AAED,wBAAgB,UAAU,4CAiBzB;AAED,wBAAgB,eAAe,4CAgB9B;AAED,wBAAgB,kBAAkB,4CAEjC"}
@@ -1,17 +0,0 @@
1
- export type ItemType = "agent" | "tool" | "knowledge" | "memory" | "envVariable" | "systemVariable";
2
- export interface InsertableItem {
3
- id: string;
4
- name: string;
5
- displayName: string;
6
- type: ItemType;
7
- }
8
- export declare const agents: InsertableItem[];
9
- export declare const knowledge: InsertableItem[];
10
- export declare const tools: InsertableItem[];
11
- export declare const memory: InsertableItem[];
12
- export declare const envVariables: InsertableItem[];
13
- export declare const systemVariables: InsertableItem[];
14
- export declare const allItems: InsertableItem[];
15
- export declare const getItemsByType: (type: ItemType, suggestions?: InsertableItem[]) => InsertableItem[];
16
- export declare const searchItems: (query: string, suggestions?: InsertableItem[]) => InsertableItem[];
17
- //# sourceMappingURL=insertableItems.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insertableItems.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/data/insertableItems.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEpG,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAGD,eAAO,MAAM,MAAM,EAAE,cAAc,EAAO,CAAC;AAC3C,eAAO,MAAM,SAAS,EAAE,cAAc,EAAO,CAAC;AAC9C,eAAO,MAAM,KAAK,EAAE,cAAc,EAAO,CAAC;AAC1C,eAAO,MAAM,MAAM,EAAE,cAAc,EAAO,CAAC;AAC3C,eAAO,MAAM,YAAY,EAAE,cAAc,EAAO,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,cAAc,EAa3C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,cAAc,EAAwF,CAAC;AAE9H,eAAO,MAAM,cAAc,GAAI,MAAM,QAAQ,EAAE,cAAc,cAAc,EAAE,KAAG,cAAc,EAkB7F,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,cAAc,cAAc,EAAE,KAAG,cAAc,EAUzF,CAAC"}
@@ -1,19 +0,0 @@
1
- export { PromptEditor } from './PromptEditor';
2
- export { RefinePanel } from './RefinePanel';
3
- export { Section } from './components/Section';
4
- export { ContentBlock as ContentBlockComponent } from './components/ContentBlock';
5
- export { EditableContent } from './components/EditableContent';
6
- export { AddToolbar } from './components/AddToolbar';
7
- export { FormattingToolbar } from './components/FormattingToolbar';
8
- export { SectionHeader } from './components/SectionHeader';
9
- export { InsertMenu } from './components/InsertMenu';
10
- export { RefineDropdown } from './components/RefineDropdown';
11
- export { CodeEditor as PromptCodeEditor } from './components/CodeEditor';
12
- export { ChatMessage, SkeletonMessage } from './components/ChatMessage';
13
- export { Header as PromptEditorHeader } from './components/Header';
14
- export * from './components/icons';
15
- export { PromptApiService } from './services/PromptApiService';
16
- export * from './services/EditorUtils';
17
- export type { FormatType, ContentBlock, SectionData, PromptEditorProps, RefineContext, RefineResponse, PromptApiConfig, RefineRequest, RefinementMode, } from './types';
18
- export * from './data/insertableItems';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/prompt-editor/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGnE,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,cAAc,wBAAwB,CAAC;AAGvC,YAAY,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,cAAc,wBAAwB,CAAC"}
@@ -1,48 +0,0 @@
1
- import type { ContentBlock } from '../types';
2
- export declare function markdownToHtml(markdown: string): string;
3
- export declare function htmlToMarkdown(html: string): string;
4
- export declare function htmlToPlainText(html: string): string;
5
- /**
6
- * Extract surrounding context for a selection
7
- * @param selectedText The selected text
8
- * @param contentBlockHtml The HTML content of the block containing the selection
9
- * @param selectionRange The character range of the selection within the block
10
- * @param contextChars Number of characters to include before/after (default: 200)
11
- * @returns Object with textBefore, textAfter, and fullSentence/paragraph
12
- */
13
- export declare function extractSurroundingContext(_selectedText: string, contentBlockHtml: string, selectionRange: {
14
- start: number;
15
- end: number;
16
- }, contextChars?: number): {
17
- textBefore: string;
18
- textAfter: string;
19
- fullSentence?: string;
20
- fullParagraph?: string;
21
- };
22
- /**
23
- * Determine refinement mode based on selection characteristics
24
- * @param selectedText The selected text
25
- * @param selectionLength Optional explicit length (if not provided, calculates from selectedText)
26
- * @returns Recommended refinement mode
27
- */
28
- export declare function determineRefinementMode(selectedText: string, selectionLength?: number): 'selection-only' | 'contextual-segment' | 'full-prompt' | 'smart-auto';
29
- export declare function validateSelectionRange(currentHtmlContent: string, storedRange: {
30
- start: number;
31
- end: number;
32
- }, originalText: string): {
33
- isValid: boolean;
34
- extractedText?: string;
35
- confidence: number;
36
- };
37
- export declare function findTextInContent(searchText: string, contentText: string, options?: {
38
- minConfidence?: number;
39
- }): {
40
- found: boolean;
41
- startIndex: number;
42
- endIndex: number;
43
- confidence: number;
44
- };
45
- export declare function parseMarkdownToBlocks(markdown: string, depth?: number): ContentBlock[];
46
- export declare function blocksToMarkdown(blocks: ContentBlock[], depth?: number): string;
47
- export declare function migrateVariables(html: string): string;
48
- //# sourceMappingURL=EditorUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditorUtils.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/services/EditorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAqBvD;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA0CnD;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAC9C,YAAY,GAAE,MAAY,GACzB;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAgEA;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,eAAe,CAAC,EAAE,MAAM,GACvB,gBAAgB,GAAG,oBAAoB,GAAG,aAAa,GAAG,YAAY,CAYxE;AAGD,wBAAgB,sBAAsB,CACpC,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAC3C,YAAY,EAAE,MAAM,GACnB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAsElE;AAsBD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAyF9E;AAiCD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY,EAAE,CA4KzF;AAGD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CA8BlF;AAGD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASrD"}
@@ -1,22 +0,0 @@
1
- import type { PromptApiConfig, RefineRequest, RefineResponse } from '../types';
2
- /**
3
- * API Service for Prompt Refinement
4
- * Follows the pattern from debug-logs/services/ApiService.ts
5
- */
6
- export declare class PromptApiService {
7
- private config;
8
- constructor(config: PromptApiConfig);
9
- /**
10
- * Refine a prompt using the backend AI service
11
- */
12
- refinePrompt(request: RefineRequest): Promise<RefineResponse>;
13
- /**
14
- * Update API configuration
15
- */
16
- updateConfig(config: PromptApiConfig): void;
17
- /**
18
- * Get current configuration
19
- */
20
- getConfig(): PromptApiConfig;
21
- }
22
- //# sourceMappingURL=PromptApiService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PromptApiService.d.ts","sourceRoot":"","sources":["../../../../src/features/prompt-editor/services/PromptApiService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/E;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAkB;gBAEpB,MAAM,EAAE,eAAe;IAInC;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAsDnE;;OAEG;IACH,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAI3C;;OAEG;IACH,SAAS,IAAI,eAAe;CAG7B"}
@@ -1,102 +0,0 @@
1
- export type FormatType = "editor" | "preview";
2
- export type ContentBlock = {
3
- id: string;
4
- type: "text" | "subsection";
5
- content: string;
6
- listType?: "bulleted" | "numbered";
7
- headingLevel?: 1 | 2 | 3;
8
- children?: ContentBlock[];
9
- };
10
- export type SectionData = {
11
- id: string;
12
- title: string;
13
- order: number;
14
- activeFormat: FormatType;
15
- content: ContentBlock[];
16
- };
17
- export interface PromptEditorProps {
18
- value?: ContentBlock[];
19
- markdownValue?: string;
20
- onChange?: (value: ContentBlock[]) => void;
21
- onMarkdownChange?: (markdown: string) => void;
22
- title?: string;
23
- onTitleChange?: (title: string) => void;
24
- mode?: FormatType;
25
- onModeChange?: (mode: FormatType) => void;
26
- onRefine?: (context: RefineContext) => Promise<RefineResponse>;
27
- className?: string;
28
- readOnly?: boolean;
29
- validateContent?: (blocks: ContentBlock[]) => boolean | string;
30
- showHeader?: boolean;
31
- suggestions?: InsertableItem[];
32
- }
33
- export interface InsertableItem {
34
- id: string;
35
- name: string;
36
- displayName: string;
37
- type: 'agent' | 'tool' | 'knowledge' | 'memory' | 'envVariable' | 'systemVariable';
38
- }
39
- export type RefinementMode = 'selection-only' | 'contextual-segment' | 'full-prompt' | 'smart-auto';
40
- export interface RefineContext {
41
- type: "whole" | "selection";
42
- originalText: string;
43
- instruction: string;
44
- contentId?: string;
45
- selectionRange?: {
46
- start: number;
47
- end: number;
48
- };
49
- conversationHistory?: Message[];
50
- promptType?: string;
51
- agentContext?: {
52
- userId?: string;
53
- accountId?: string;
54
- appId?: string;
55
- appName?: string;
56
- agentName?: string;
57
- variables?: Record<string, string>;
58
- metadata?: Record<string, unknown>;
59
- };
60
- surroundingContext?: string;
61
- fullPromptContext?: string;
62
- refinementMode?: RefinementMode;
63
- selectionStartIndex?: number;
64
- selectionEndIndex?: number;
65
- actionType?: string;
66
- }
67
- export interface RefineResponse {
68
- refinedText: string;
69
- conversationId?: string;
70
- aiContextPayload?: Record<string, unknown>;
71
- }
72
- export interface PromptApiConfig {
73
- baseUrl: string;
74
- endpoint: string;
75
- headers: Record<string, string>;
76
- }
77
- export interface Message {
78
- role: 'user' | 'assistant';
79
- content: string;
80
- }
81
- export interface RefineRequest {
82
- originalText: string;
83
- instruction: string;
84
- conversationHistory?: Message[];
85
- promptType?: string;
86
- agentContext?: {
87
- userId?: string;
88
- accountId?: string;
89
- appId?: string;
90
- appName?: string;
91
- agentName?: string;
92
- variables?: Record<string, string>;
93
- metadata?: Record<string, unknown>;
94
- };
95
- surroundingContext?: string;
96
- fullPromptContext?: string;
97
- refinementMode?: RefinementMode;
98
- selectionStartIndex?: number;
99
- selectionEndIndex?: number;
100
- actionType?: string;
101
- }
102
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/prompt-editor/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,G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