@admin-layout/ai-chat-ext-browser 12.2.4-alpha.103

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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/lib/components/ChatSettingsPanel/ChatSettingsPanel.d.ts +39 -0
  3. package/lib/components/ChatSettingsPanel/ChatSettingsPanel.d.ts.map +1 -0
  4. package/lib/components/ChatSettingsPanel/ChatSettingsPanel.js +1191 -0
  5. package/lib/components/ChatSettingsPanel/ChatSettingsPanel.js.map +1 -0
  6. package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.d.ts +19 -0
  7. package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.d.ts.map +1 -0
  8. package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.js +83 -0
  9. package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.js.map +1 -0
  10. package/lib/components/ChatSettingsPanel/index.d.ts +5 -0
  11. package/lib/components/ChatSettingsPanel/index.d.ts.map +1 -0
  12. package/lib/components/MessageWidgets/MessageAiAssistant.d.ts +13 -0
  13. package/lib/components/MessageWidgets/MessageAiAssistant.d.ts.map +1 -0
  14. package/lib/components/MessageWidgets/MessageAiAssistant.js +79 -0
  15. package/lib/components/MessageWidgets/MessageAiAssistant.js.map +1 -0
  16. package/lib/components/MessageWidgets/MessageCodeBlock.d.ts +14 -0
  17. package/lib/components/MessageWidgets/MessageCodeBlock.d.ts.map +1 -0
  18. package/lib/components/MessageWidgets/MessageCodeBlock.js +78 -0
  19. package/lib/components/MessageWidgets/MessageCodeBlock.js.map +1 -0
  20. package/lib/components/MessageWidgets/MessageConnector.d.ts +13 -0
  21. package/lib/components/MessageWidgets/MessageConnector.d.ts.map +1 -0
  22. package/lib/components/MessageWidgets/MessageConnector.js +71 -0
  23. package/lib/components/MessageWidgets/MessageConnector.js.map +1 -0
  24. package/lib/components/MessageWidgets/MessageGeneric.d.ts +20 -0
  25. package/lib/components/MessageWidgets/MessageGeneric.d.ts.map +1 -0
  26. package/lib/components/MessageWidgets/MessageGeneric.js +74 -0
  27. package/lib/components/MessageWidgets/MessageGeneric.js.map +1 -0
  28. package/lib/components/MessageWidgets/MessageMedia.d.ts +17 -0
  29. package/lib/components/MessageWidgets/MessageMedia.d.ts.map +1 -0
  30. package/lib/components/MessageWidgets/MessageMedia.js +91 -0
  31. package/lib/components/MessageWidgets/MessageMedia.js.map +1 -0
  32. package/lib/components/MessageWidgets/MessageService.d.ts +13 -0
  33. package/lib/components/MessageWidgets/MessageService.d.ts.map +1 -0
  34. package/lib/components/MessageWidgets/MessageService.js +74 -0
  35. package/lib/components/MessageWidgets/MessageService.js.map +1 -0
  36. package/lib/components/MessageWidgets/MessageThinking.d.ts +13 -0
  37. package/lib/components/MessageWidgets/MessageThinking.d.ts.map +1 -0
  38. package/lib/components/MessageWidgets/MessageThinking.js +41 -0
  39. package/lib/components/MessageWidgets/MessageThinking.js.map +1 -0
  40. package/lib/components/MessageWidgets/MessageToolUse.d.ts +14 -0
  41. package/lib/components/MessageWidgets/MessageToolUse.d.ts.map +1 -0
  42. package/lib/components/MessageWidgets/MessageToolUse.js +92 -0
  43. package/lib/components/MessageWidgets/MessageToolUse.js.map +1 -0
  44. package/lib/components/MessageWidgets/MessageTravel.d.ts +14 -0
  45. package/lib/components/MessageWidgets/MessageTravel.d.ts.map +1 -0
  46. package/lib/components/MessageWidgets/MessageTravel.js +110 -0
  47. package/lib/components/MessageWidgets/MessageTravel.js.map +1 -0
  48. package/lib/components/MessageWidgets/MessageWorkflow.d.ts +17 -0
  49. package/lib/components/MessageWidgets/MessageWorkflow.d.ts.map +1 -0
  50. package/lib/components/MessageWidgets/MessageWorkflow.js +82 -0
  51. package/lib/components/MessageWidgets/MessageWorkflow.js.map +1 -0
  52. package/lib/components/MessageWidgets/index.d.ts +21 -0
  53. package/lib/components/MessageWidgets/index.d.ts.map +1 -0
  54. package/lib/components/MessageWidgets/workflowUtils.d.ts +10 -0
  55. package/lib/components/MessageWidgets/workflowUtils.d.ts.map +1 -0
  56. package/lib/components/MessageWidgets/workflowUtils.js +15 -0
  57. package/lib/components/MessageWidgets/workflowUtils.js.map +1 -0
  58. package/lib/components/index.d.ts +4 -0
  59. package/lib/components/index.d.ts.map +1 -0
  60. package/lib/index.d.ts +3 -0
  61. package/lib/index.d.ts.map +1 -0
  62. package/lib/index.js +1 -0
  63. package/lib/index.js.map +1 -0
  64. package/lib/interfaces/ai-chat.interface.d.ts +266 -0
  65. package/lib/interfaces/ai-chat.interface.d.ts.map +1 -0
  66. package/lib/interfaces/index.d.ts +2 -0
  67. package/lib/interfaces/index.d.ts.map +1 -0
  68. package/lib/module.d.ts +3 -0
  69. package/lib/module.d.ts.map +1 -0
  70. package/lib/module.js +36 -0
  71. package/lib/module.js.map +1 -0
  72. package/lib/routes.json +1 -0
  73. package/lib/slot-fill/chat-settings-fill.d.ts +3 -0
  74. package/lib/slot-fill/chat-settings-fill.d.ts.map +1 -0
  75. package/lib/slot-fill/chat-settings-fill.js +22 -0
  76. package/lib/slot-fill/chat-settings-fill.js.map +1 -0
  77. package/lib/slot-fill/index.d.ts +12 -0
  78. package/lib/slot-fill/index.d.ts.map +1 -0
  79. package/lib/slot-fill/message-ai-assistant-fill.d.ts +3 -0
  80. package/lib/slot-fill/message-ai-assistant-fill.d.ts.map +1 -0
  81. package/lib/slot-fill/message-ai-assistant-fill.js +12 -0
  82. package/lib/slot-fill/message-ai-assistant-fill.js.map +1 -0
  83. package/lib/slot-fill/message-codeblock-fill.d.ts +3 -0
  84. package/lib/slot-fill/message-codeblock-fill.d.ts.map +1 -0
  85. package/lib/slot-fill/message-codeblock-fill.js +18 -0
  86. package/lib/slot-fill/message-codeblock-fill.js.map +1 -0
  87. package/lib/slot-fill/message-connector-fill.d.ts +5 -0
  88. package/lib/slot-fill/message-connector-fill.d.ts.map +1 -0
  89. package/lib/slot-fill/message-connector-fill.js +14 -0
  90. package/lib/slot-fill/message-connector-fill.js.map +1 -0
  91. package/lib/slot-fill/message-generic-fill.d.ts +3 -0
  92. package/lib/slot-fill/message-generic-fill.d.ts.map +1 -0
  93. package/lib/slot-fill/message-generic-fill.js +21 -0
  94. package/lib/slot-fill/message-generic-fill.js.map +1 -0
  95. package/lib/slot-fill/message-media-fill.d.ts +3 -0
  96. package/lib/slot-fill/message-media-fill.d.ts.map +1 -0
  97. package/lib/slot-fill/message-media-fill.js +18 -0
  98. package/lib/slot-fill/message-media-fill.js.map +1 -0
  99. package/lib/slot-fill/message-service-fill.d.ts +3 -0
  100. package/lib/slot-fill/message-service-fill.d.ts.map +1 -0
  101. package/lib/slot-fill/message-service-fill.js +12 -0
  102. package/lib/slot-fill/message-service-fill.js.map +1 -0
  103. package/lib/slot-fill/message-thinking-fill.d.ts +3 -0
  104. package/lib/slot-fill/message-thinking-fill.d.ts.map +1 -0
  105. package/lib/slot-fill/message-thinking-fill.js +18 -0
  106. package/lib/slot-fill/message-thinking-fill.js.map +1 -0
  107. package/lib/slot-fill/message-tooluse-fill.d.ts +3 -0
  108. package/lib/slot-fill/message-tooluse-fill.d.ts.map +1 -0
  109. package/lib/slot-fill/message-tooluse-fill.js +18 -0
  110. package/lib/slot-fill/message-tooluse-fill.js.map +1 -0
  111. package/lib/slot-fill/message-travel-fill.d.ts +3 -0
  112. package/lib/slot-fill/message-travel-fill.d.ts.map +1 -0
  113. package/lib/slot-fill/message-travel-fill.js +18 -0
  114. package/lib/slot-fill/message-travel-fill.js.map +1 -0
  115. package/lib/slot-fill/message-workflow-fill.d.ts +3 -0
  116. package/lib/slot-fill/message-workflow-fill.d.ts.map +1 -0
  117. package/lib/slot-fill/message-workflow-fill.js +19 -0
  118. package/lib/slot-fill/message-workflow-fill.js.map +1 -0
  119. package/lib/utils/parseWidgetPost.d.ts +14 -0
  120. package/lib/utils/parseWidgetPost.d.ts.map +1 -0
  121. package/lib/utils/parseWidgetPost.js +68 -0
  122. package/lib/utils/parseWidgetPost.js.map +1 -0
  123. package/lib/utils/parseWidgetPost.spec.d.ts +2 -0
  124. package/lib/utils/parseWidgetPost.spec.d.ts.map +1 -0
  125. package/package.json +43 -0
@@ -0,0 +1,21 @@
1
+ export { MessageAiAssistant } from './MessageAiAssistant';
2
+ export type { IMessageAiAssistantProps } from './MessageAiAssistant';
3
+ export { MessageThinking } from './MessageThinking';
4
+ export type { IMessageThinkingProps } from './MessageThinking';
5
+ export { MessageCodeBlock } from './MessageCodeBlock';
6
+ export type { IMessageCodeBlockProps } from './MessageCodeBlock';
7
+ export { MessageToolUse } from './MessageToolUse';
8
+ export type { IMessageToolUseProps } from './MessageToolUse';
9
+ export { MessageService } from './MessageService';
10
+ export type { IMessageServiceProps } from './MessageService';
11
+ export { MessageMedia } from './MessageMedia';
12
+ export type { IMessageMediaProps } from './MessageMedia';
13
+ export { MessageTravel } from './MessageTravel';
14
+ export type { IMessageTravelProps } from './MessageTravel';
15
+ export { MessageWorkflow } from './MessageWorkflow';
16
+ export type { IMessageWorkflowProps } from './MessageWorkflow';
17
+ export { MessageGeneric } from './MessageGeneric';
18
+ export type { IMessageGenericProps } from './MessageGeneric';
19
+ export { MessageConnector } from './MessageConnector';
20
+ export type { IMessageConnectorProps } from './MessageConnector';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { WorkflowAttachmentsInterface } from '../../interfaces';
2
+ /**
3
+ * Resolve the workflow composer deep link from an explicit `url`, else from the
4
+ * slug/version. Returns a same-origin GLOBAL (org-less) in-app route
5
+ * (`/workflow/:slug/v/:version`) — the composer resolves the active org from
6
+ * context — so the consumer can navigate in-app (or open a new tab for absolute
7
+ * URLs).
8
+ */
9
+ export declare const workflowEditorUrl: (a: WorkflowAttachmentsInterface) => string | undefined;
10
+ //# sourceMappingURL=workflowUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowUtils.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/workflowUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,GAAG,4BAA4B,KAAG,MAAM,GAAG,SAO5E,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Resolve the workflow composer deep link from an explicit `url`, else from the
3
+ * slug/version. Returns a same-origin GLOBAL (org-less) in-app route
4
+ * (`/workflow/:slug/v/:version`) — the composer resolves the active org from
5
+ * context — so the consumer can navigate in-app (or open a new tab for absolute
6
+ * URLs).
7
+ */
8
+ const workflowEditorUrl = a => {
9
+ if (a.url) return a.url;
10
+ if (a.slug) {
11
+ const ver = a.version ? `/v/${a.version}` : '';
12
+ return `/workflow/${a.slug}${ver}`;
13
+ }
14
+ return undefined;
15
+ };export{workflowEditorUrl};//# sourceMappingURL=workflowUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowUtils.js","sources":["../../../src/components/MessageWidgets/workflowUtils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;;;AAMG;AACI,MAAM,iBAAiB,GAAG,CAAC,IAAqD;MACnF,CAAA,CAAI,GAAE,EAAG,OAAA,CAAA,CAAA,GAAA;QAAE,IAAA,EAAA;AACX,IAAA,MAAM,GAAA,GAAM,CAAC,CAAA,OAAA,GAAA,CAAA,GAAA,EAAA,CAAA,CAAA,OAAA,CAAA,CAAA,GAAA,EAAA;AACT,IAAA,OAAA,CAAA,UAAc,EAAA,CAAA,CAAA,IAAQ,CAAC,EAAC,GAAA,CAAA,CAAM;AAC9B,EAAA;SACH,SAAA;AACD"}
@@ -0,0 +1,4 @@
1
+ export { MessageAiAssistant, MessageThinking, MessageCodeBlock, MessageToolUse, MessageService, MessageMedia, MessageTravel, MessageWorkflow, MessageGeneric, MessageConnector, } from './MessageWidgets';
2
+ export { ChatSettingsPanel, ConnectedChatSettingsPanel } from './ChatSettingsPanel';
3
+ export type { ChatSettingsPanelProps, SettingsEntry, ConnectedChatSettingsPanelProps } from './ChatSettingsPanel';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACpF,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { feature as default } from './module';
2
+ export { parseWidgetPost } from './utils/parseWidgetPost';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ export{feature as default}from'./module.js';export{parseWidgetPost}from'./utils/parseWidgetPost.js';//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,266 @@
1
+ import type { MediaItem } from '@admin-layout/connector-widgets-browser';
2
+ export interface AiAssistantAttachmentsInterface {
3
+ /** The model that generated the response (e.g. "GPT-4o", "Claude 3.5") */
4
+ model?: string;
5
+ /** Markdown-formatted response body */
6
+ body: string;
7
+ /** Whether the response is still streaming */
8
+ isStreaming?: boolean;
9
+ /** Token usage info */
10
+ usage?: {
11
+ promptTokens?: number;
12
+ completionTokens?: number;
13
+ totalTokens?: number;
14
+ };
15
+ /** Optional sources / references cited */
16
+ sources?: Array<{
17
+ title: string;
18
+ url?: string;
19
+ snippet?: string;
20
+ }>;
21
+ }
22
+ export interface ThinkingAttachmentsInterface {
23
+ /** The thinking/reasoning text (may be markdown) */
24
+ thought: string;
25
+ /** Duration of thinking in ms */
26
+ durationMs?: number;
27
+ /** Label shown on the header (e.g. "Reasoning", "Thinking...") */
28
+ label?: string;
29
+ /** Whether thinking is still in progress */
30
+ isThinking?: boolean;
31
+ }
32
+ export interface CodeBlockAttachmentsInterface {
33
+ /** The code content */
34
+ code: string;
35
+ /** Programming language for syntax highlighting */
36
+ language?: string;
37
+ /** Optional filename for context */
38
+ filename?: string;
39
+ /** Optional title/description above the code */
40
+ title?: string;
41
+ /** Whether this is a diff/patch */
42
+ isDiff?: boolean;
43
+ /** Action to apply (e.g. "create", "edit", "run") */
44
+ action?: 'create' | 'edit' | 'run' | 'copy';
45
+ }
46
+ export interface ToolUseAttachmentsInterface {
47
+ /** Tool/function name */
48
+ toolName: string;
49
+ /** Human-readable description of what the tool does */
50
+ description?: string;
51
+ /** Input arguments (displayed as JSON or key-value) */
52
+ input?: Record<string, unknown>;
53
+ /** Tool output/result */
54
+ output?: string;
55
+ /** Status of the tool execution */
56
+ status: 'pending' | 'running' | 'success' | 'error';
57
+ /** Duration of execution in ms */
58
+ durationMs?: number;
59
+ /** Error message if failed */
60
+ error?: string;
61
+ }
62
+ export interface ServiceAttachmentsInterface {
63
+ /** Notification title */
64
+ title: string;
65
+ /** Whether title is HTML */
66
+ isTitleHtml?: boolean;
67
+ /** Body text */
68
+ body?: string;
69
+ /** Severity level */
70
+ severity: 'info' | 'warning' | 'error' | 'success';
71
+ /** Optional icon name */
72
+ icon?: string;
73
+ /** Optional action button */
74
+ action?: {
75
+ title: string;
76
+ link: string;
77
+ };
78
+ /** Timestamp */
79
+ timestamp?: string;
80
+ }
81
+ export type { MediaItem };
82
+ /**
83
+ * Media attachment — rendered in chat as an inline image / video / audio
84
+ * player for the asset a generation connector (yantra-image-generation,
85
+ * yantra-video-generation, audio / TTS, …) returned. The result persists on
86
+ * the chat message's propsConfiguration so it survives reloads.
87
+ */
88
+ export interface MediaAttachmentsInterface {
89
+ /** Primary media kind (used when `items` is omitted). */
90
+ kind: 'image' | 'video' | 'audio';
91
+ /** Public URL of the primary asset. */
92
+ url: string;
93
+ /** Heading shown above the media (e.g. "Image generated"). */
94
+ title?: string;
95
+ /** The prompt that produced the asset — shown as a caption. */
96
+ prompt?: string;
97
+ /** MIME type of the primary asset, when known. */
98
+ mimeType?: string;
99
+ /** Poster / thumbnail for a video. */
100
+ posterUrl?: string;
101
+ /** Suggested download filename. */
102
+ fileName?: string;
103
+ /** Connector that produced it (e.g. "yantra-image-generation"). */
104
+ connector?: string;
105
+ /** Action id that produced it (e.g. "YANTRA_GEMINI_IMAGE_GENERATE"). */
106
+ action?: string;
107
+ /** Model used, when one was explicitly requested. */
108
+ model?: string;
109
+ /** Extra assets when a run returns more than one (image grid / variants). */
110
+ items?: MediaItem[];
111
+ }
112
+ /** A single normalized stay (hotel / vacation rental) from the yantra-resortifi connector. */
113
+ export interface TravelPropertyItem {
114
+ id?: string;
115
+ title: string;
116
+ /** Listing image URL. */
117
+ imageUrl?: string;
118
+ /** Numeric per-unit price. */
119
+ price?: number;
120
+ /** Pre-formatted price label (e.g. "$759"). */
121
+ priceLabel?: string;
122
+ /** Unit the price applies to. */
123
+ priceUnit?: 'night' | 'day' | 'trip';
124
+ /** Review score. */
125
+ rating?: number;
126
+ reviewCount?: number;
127
+ city?: string;
128
+ /** Deep link to the listing on the provider. */
129
+ url?: string;
130
+ /** Which data source produced this (airbnb / booking / priceline / resortifi). */
131
+ source?: string;
132
+ }
133
+ /**
134
+ * Travel listings attachment — rendered in chat as a compact button/card
135
+ * ({@link TravelPropertyItem} previews + count) that opens the full results in
136
+ * the side panel. Results are persisted on the chat message's propsConfiguration.
137
+ */
138
+ export interface TravelAttachmentsInterface {
139
+ /** Heading shown on the card (e.g. "Stays in Atlanta"). */
140
+ title?: string;
141
+ /** Destination label. */
142
+ city?: string;
143
+ /** The properties returned by the connector. */
144
+ properties: TravelPropertyItem[];
145
+ /** Total matches (may exceed properties.length). */
146
+ totalCount?: number;
147
+ /** Lowest / highest nightly price, for the summary line. */
148
+ priceFrom?: number;
149
+ priceTo?: number;
150
+ /** Label for the open-in-side-panel action (default "View stays"). */
151
+ actionLabel?: string;
152
+ }
153
+ /** One labelled key-value row in the generic card. */
154
+ export interface GenericFieldItem {
155
+ label: string;
156
+ value: string;
157
+ }
158
+ /** One entry in the generic card's list/grid (e.g. a result row). */
159
+ export interface GenericListItem {
160
+ title: string;
161
+ subtitle?: string;
162
+ imageUrl?: string;
163
+ /** Deep link opened when this item is clicked. */
164
+ url?: string;
165
+ }
166
+ /**
167
+ * Generic widget attachment — the shared, schema-driven payload ANY extension-contributed
168
+ * widget can emit to render a card **without** shipping a bespoke component. Rendered by
169
+ * {@link MessageGeneric}; a widget routes here when its registry descriptor's `card` is
170
+ * `generic` (i.e. no bespoke card of its name exists). This is what keeps yantra-app "light":
171
+ * new third-party widgets (resume-builder, media-builder, …) reuse this card and need no
172
+ * changes to admin-layout, messenger-box, or yantra-app core.
173
+ */
174
+ export interface GenericAttachmentsInterface {
175
+ /** Card heading. */
176
+ title?: string;
177
+ /** Secondary line under the title. */
178
+ subtitle?: string;
179
+ /** Lead image / thumbnail (top of the card). */
180
+ imageUrl?: string;
181
+ /** Icon name (lucide/feather) shown when there is no image. */
182
+ icon?: string;
183
+ /** Free-form body text shown under the header. */
184
+ body?: string;
185
+ /** Key-value metadata rows. */
186
+ fields?: GenericFieldItem[];
187
+ /** A list/grid of items (e.g. results). */
188
+ items?: GenericListItem[];
189
+ /** Label for the click action (default "Open") — shown only when the card opens something. */
190
+ actionLabel?: string;
191
+ /** External link opened on click when no detail panel is registered. */
192
+ url?: string;
193
+ /** The component name this payload represents (carried for debugging / telemetry). */
194
+ component?: string;
195
+ }
196
+ /** A node in a cdecli workflow graph (see forms-stack cdecli workflow-commands). */
197
+ export interface WorkflowNodeItem {
198
+ nodeId: string;
199
+ /** Node type, e.g. "NodeStart", "NodeHttp", "NodeCode", "NodeEnd". */
200
+ type?: string;
201
+ /** Display label (e.g. "Compute Slack Signature"). */
202
+ label: string;
203
+ /** Accent color (hex). */
204
+ color?: string;
205
+ position?: {
206
+ x: number;
207
+ y: number;
208
+ };
209
+ size?: {
210
+ width: number;
211
+ height: number;
212
+ };
213
+ }
214
+ /** An edge connecting two workflow nodes. */
215
+ export interface WorkflowEdgeItem {
216
+ source: string;
217
+ target: string;
218
+ sourceOutput?: string;
219
+ targetInput?: string;
220
+ }
221
+ /**
222
+ * Workflow attachment — rendered in chat as a compact card (node-graph preview +
223
+ * step count) that opens the full workflow in the side panel / editor. Produced
224
+ * when a cdecli workflow is created/updated; the graph persists on the chat
225
+ * message's propsConfiguration so it survives reloads.
226
+ */
227
+ export interface WorkflowAttachmentsInterface {
228
+ /** Workflow name / heading (e.g. "Slack Webhook Signature POST"). */
229
+ title?: string;
230
+ /** Workflow slug (e.g. "slack-webhook-signature-post"). */
231
+ slug?: string;
232
+ /** Current version (e.g. "v_287bee7e77"). */
233
+ version?: string;
234
+ /** Org name, for the editor deep link. */
235
+ orgName?: string;
236
+ description?: string;
237
+ /** The workflow nodes (graph order where possible). */
238
+ nodes: WorkflowNodeItem[];
239
+ /** The edges connecting the nodes. */
240
+ edges?: WorkflowEdgeItem[];
241
+ /** Full deep link to the workflow editor (overrides the org/slug/version link). */
242
+ url?: string;
243
+ /** Label for the open action (default "Open workflow"). */
244
+ actionLabel?: string;
245
+ }
246
+ /**
247
+ * Connector attachment — summary card for an installed / runnable cdecli connector.
248
+ * Mirrors the Notion connector block display model; will share UI with ConnectorBlockCard
249
+ * once moved into this package.
250
+ */
251
+ export interface ConnectorAttachmentsInterface {
252
+ /** Display label (e.g. "GitHub"). */
253
+ title: string;
254
+ /** cdecli connector id (e.g. "github"). */
255
+ connectorName: string;
256
+ description?: string;
257
+ category?: string;
258
+ installed?: boolean;
259
+ hasCredential?: boolean;
260
+ /** When false, connector uses platform auth (yantra-*). */
261
+ requiresCredentials?: boolean;
262
+ actionsCount?: number;
263
+ auth?: string;
264
+ actionLabel?: string;
265
+ }
266
+ //# sourceMappingURL=ai-chat.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-chat.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/ai-chat.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,MAAM,WAAW,+BAA+B;IAC5C,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uBAAuB;IACvB,KAAK,CAAC,EAAE;QACJ,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,0CAA0C;IAC1C,OAAO,CAAC,EAAE,KAAK,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;CACN;AAGD,MAAM,WAAW,4BAA4B;IACzC,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAGD,MAAM,WAAW,6BAA6B;IAC1C,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,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AC;IACxB,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export { AiAssistantAttachmentsInterface, ThinkingAttachmentsInterface, CodeBlockAttachmentsInterface, ToolUseAttachmentsInterface, ServiceAttachmentsInterface, MediaAttachmentsInterface, MediaItem, TravelAttachmentsInterface, TravelPropertyItem, WorkflowAttachmentsInterface, WorkflowNodeItem, WorkflowEdgeItem, GenericAttachmentsInterface, GenericFieldItem, GenericListItem, ConnectorAttachmentsInterface, } from './ai-chat.interface';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,SAAS,EACT,0BAA0B,EAC1B,kBAAkB,EAClB,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,6BAA6B,GAChC,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Feature } from '@common-stack/client-react';
2
+ export declare const feature: Feature;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAgBrD,eAAO,MAAM,OAAO,SA+ClB,CAAC"}
package/lib/module.js ADDED
@@ -0,0 +1,36 @@
1
+ import {Feature}from'@common-stack/client-react';import {PostTypeEnum}from'common';import {MessageAiAssistantFill}from'./slot-fill/message-ai-assistant-fill.js';import {MessageThinkingFill}from'./slot-fill/message-thinking-fill.js';import {MessageCodeBlockFill}from'./slot-fill/message-codeblock-fill.js';import {MessageToolUseFill}from'./slot-fill/message-tooluse-fill.js';import {MessageServiceFill}from'./slot-fill/message-service-fill.js';import {MessageMediaFill}from'./slot-fill/message-media-fill.js';import {MessageTravelFill}from'./slot-fill/message-travel-fill.js';import {MessageWorkflowFill}from'./slot-fill/message-workflow-fill.js';import {MessageGenericFill}from'./slot-fill/message-generic-fill.js';import {MessageConnectorFill}from'./slot-fill/message-connector-fill.js';import {ChatSettingsFill}from'./slot-fill/chat-settings-fill.js';const feature = new Feature({
2
+ componentFillPlugins: [{
3
+ name: PostTypeEnum.Aiassistant.toLowerCase(),
4
+ render: MessageAiAssistantFill
5
+ }, {
6
+ name: 'thinking',
7
+ render: MessageThinkingFill
8
+ }, {
9
+ name: 'codeblock',
10
+ render: MessageCodeBlockFill
11
+ }, {
12
+ name: 'tooluse',
13
+ render: MessageToolUseFill
14
+ }, {
15
+ name: PostTypeEnum.Service.toLowerCase(),
16
+ render: MessageServiceFill
17
+ }, {
18
+ name: 'media',
19
+ render: MessageMediaFill
20
+ }, {
21
+ name: 'travel',
22
+ render: MessageTravelFill
23
+ }, {
24
+ name: 'workflow',
25
+ render: MessageWorkflowFill
26
+ }, {
27
+ name: 'generic',
28
+ render: MessageGenericFill
29
+ }, {
30
+ name: 'connector',
31
+ render: MessageConnectorFill
32
+ }, {
33
+ name: 'chat-settings',
34
+ render: ChatSettingsFill
35
+ }]
36
+ });export{feature};//# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"q1BAgBO,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;AAC/B,EAAA,oBAAA,EAAoB,CAAA;AAChB,IAAA,IAAA,EAAA,YAAA,CAAA,WAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,UAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,WAAQ;AACX,IAAA,MAAA,EAAA;AACD,GAAA,EAAA;AACI,IAAA,IAAA,EAAA,SAAM;AACN,IAAA,MAAA,EAAA;AACH,GAAA,EAAA;AACD,IAAA,IAAA,EAAA,YAAA,CAAA,OAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,OAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,QAAM;AACT,IAAA,MAAA,EAAA;AACD,GAAA,EAAA;AACI,IAAA,IAAA,EAAA,UAAM;AACN,IAAA,MAAA,EAAA;AACH,GAAA,EAAA;AACD,IAAA,IAAA,EAAA,SAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,WAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,eAAQ;AACX,IAAA,MAAA,EAAA;AACD,GAAA;AACI,CAAA"}
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const ChatSettingsFill: () => React.JSX.Element;
3
+ //# sourceMappingURL=chat-settings-fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-settings-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/chat-settings-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,gBAAgB,yBAuB5B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import {ConnectedChatSettingsPanel}from'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
2
+ * Fill name: "chat-settings"
3
+ * Provides a <Slot name="chat-settings"> fill that renders the
4
+ * full chat configuration panel wherever asked for in the host app.
5
+ *
6
+ * Props forwarded: channelId?, compact?, className?, activeTab?
7
+ */
8
+ const SETTINGS_FILL_NAME = 'chat-settings';
9
+ const ChatSettingsFill = () => {
10
+ return React.createElement(Fill, {
11
+ name: SETTINGS_FILL_NAME
12
+ }, props => {
13
+ if (props.active) {
14
+ return React.createElement(ConnectedChatSettingsPanel, {
15
+ channelId: props.channelId,
16
+ compact: props.compact,
17
+ className: props.className
18
+ });
19
+ }
20
+ return null;
21
+ });
22
+ };export{ChatSettingsFill};//# sourceMappingURL=chat-settings-fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-settings-fill.js","sources":["../../src/slot-fill/chat-settings-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"y7CAIA;;;;;;AAMG;AACH,MAAM,kBAAkB,GAAG,eAAe;AAEnC,MAAM,gBAAgB,GAAG,MAAK;SACjC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAQO,IAAA,IAAA,EAAA;cACI;QAOJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,0BAAA,EAAA;QAGtB,SAAA,EAAA,KAAA,CAAA,SAAA;AACN,QAAE,OAAA,EAAA,KAAA,CAAA,OAAA;;;;;;"}
@@ -0,0 +1,12 @@
1
+ export { MessageAiAssistantFill } from './message-ai-assistant-fill';
2
+ export { MessageThinkingFill } from './message-thinking-fill';
3
+ export { MessageCodeBlockFill } from './message-codeblock-fill';
4
+ export { MessageToolUseFill } from './message-tooluse-fill';
5
+ export { MessageServiceFill } from './message-service-fill';
6
+ export { MessageMediaFill } from './message-media-fill';
7
+ export { MessageTravelFill } from './message-travel-fill';
8
+ export { MessageWorkflowFill } from './message-workflow-fill';
9
+ export { MessageGenericFill } from './message-generic-fill';
10
+ export { MessageConnectorFill } from './message-connector-fill';
11
+ export { ChatSettingsFill } from './chat-settings-fill';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slot-fill/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const MessageAiAssistantFill: () => React.JSX.Element;
3
+ //# sourceMappingURL=message-ai-assistant-fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-ai-assistant-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-ai-assistant-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,sBAAsB,yBAWlC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import {MessageAiAssistant}from'../components/MessageWidgets/MessageAiAssistant.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';const MessageAiAssistantFill = () => {
2
+ return React.createElement(Fill, {
3
+ name: PostTypeEnum.Aiassistant.toLowerCase()
4
+ }, props => {
5
+ if (props.active) {
6
+ return React.createElement(MessageAiAssistant, {
7
+ ...props
8
+ });
9
+ }
10
+ return null;
11
+ });
12
+ };export{MessageAiAssistantFill};//# sourceMappingURL=message-ai-assistant-fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-ai-assistant-fill.js","sources":["../../src/slot-fill/message-ai-assistant-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"m+CAMO,MAAM,sBAAsB,GAAG,MAAK;AACvC,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA,YAAU,CAAA,WAAS,CAAA,WAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,kBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const MessageCodeBlockFill: () => React.JSX.Element;
3
+ //# sourceMappingURL=message-codeblock-fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-codeblock-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-codeblock-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,oBAAoB,yBAWhC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import {MessageCodeBlock}from'../components/MessageWidgets/MessageCodeBlock.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
2
+ * Fill name: "codeblock"
3
+ * Note: PostTypeEnum doesn't have "CodeBlock" yet — we use a custom string.
4
+ * When added to the enum, switch to PostTypeEnum.Codeblock.toLowerCase().
5
+ */
6
+ const CODEBLOCK_FILL_NAME = 'codeblock';
7
+ const MessageCodeBlockFill = () => {
8
+ return React.createElement(Fill, {
9
+ name: CODEBLOCK_FILL_NAME
10
+ }, props => {
11
+ if (props.active) {
12
+ return React.createElement(MessageCodeBlock, {
13
+ ...props
14
+ });
15
+ }
16
+ return null;
17
+ });
18
+ };export{MessageCodeBlockFill};//# sourceMappingURL=message-codeblock-fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-codeblock-fill.js","sources":["../../src/slot-fill/message-codeblock-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"g5CAKA;;;;AAIG;AACH,MAAM,mBAAmB,GAAG,WAAW;AAEhC,MAAM,oBAAoB,GAAG,MAAK;SACrC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,gBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /** Fill name: "connector" — cdecli integration summary card in chat. */
3
+ export declare const CONNECTOR_FILL_NAME = "connector";
4
+ export declare const MessageConnectorFill: () => React.JSX.Element;
5
+ //# sourceMappingURL=message-connector-fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-connector-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-connector-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,eAAO,MAAM,oBAAoB,yBAWhC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import {MessageConnector}from'../components/MessageWidgets/MessageConnector.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/** Fill name: "connector" — cdecli integration summary card in chat. */
2
+ const CONNECTOR_FILL_NAME = 'connector';
3
+ const MessageConnectorFill = () => {
4
+ return React.createElement(Fill, {
5
+ name: CONNECTOR_FILL_NAME
6
+ }, props => {
7
+ if (props.active) {
8
+ return React.createElement(MessageConnector, {
9
+ ...props
10
+ });
11
+ }
12
+ return null;
13
+ });
14
+ };export{CONNECTOR_FILL_NAME,MessageConnectorFill};//# sourceMappingURL=message-connector-fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-connector-fill.js","sources":["../../src/slot-fill/message-connector-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"67CAKA;AACO,MAAM,mBAAmB,GAAG;AAE5B,MAAM,oBAAoB,GAAG,MAAK;SACrC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,gBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const MessageGenericFill: () => React.JSX.Element;
3
+ //# sourceMappingURL=message-generic-fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-generic-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-generic-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,eAAO,MAAM,kBAAkB,yBAW9B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import {MessageGeneric}from'../components/MessageWidgets/MessageGeneric.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
2
+ * Fill name: "generic" — the shared catch-all card.
3
+ *
4
+ * `@common-stack/components-pro` matches a <Slot> to exactly one <Fill> by name (no runtime
5
+ * fallback), so any extension-contributed widget without a bespoke card routes its post `type`
6
+ * to `generic` (set on the yantra produce side) and renders here. One registration covers every
7
+ * present and future generic widget.
8
+ */
9
+ const GENERIC_FILL_NAME = 'generic';
10
+ const MessageGenericFill = () => {
11
+ return React.createElement(Fill, {
12
+ name: GENERIC_FILL_NAME
13
+ }, props => {
14
+ if (props.active) {
15
+ return React.createElement(MessageGeneric, {
16
+ ...props
17
+ });
18
+ }
19
+ return null;
20
+ });
21
+ };export{MessageGenericFill};//# sourceMappingURL=message-generic-fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-generic-fill.js","sources":["../../src/slot-fill/message-generic-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"y7CAKA;;;;;;;AAOG;AACH,MAAM,iBAAiB,GAAG,SAAS;AAE5B,MAAM,kBAAkB,GAAG,MAAK;SACnC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,cAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}