@grafana/assistant 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -37
- package/dist/components/button/OpenAssistantButton.d.ts +4 -5
- package/dist/components/button/OpenAssistantButton.d.ts.map +1 -1
- package/dist/components/button/OpenAssistantSplitButton.d.ts +5 -5
- package/dist/components/button/OpenAssistantSplitButton.d.ts.map +1 -1
- package/dist/components/button/QueryWithAssistantButton.d.ts +4 -5
- package/dist/components/button/QueryWithAssistantButton.d.ts.map +1 -1
- package/dist/components/input/AITextArea.d.ts +2 -3
- package/dist/components/input/AITextArea.d.ts.map +1 -1
- package/dist/components/input/AITextInput.d.ts +2 -3
- package/dist/components/input/AITextInput.d.ts.map +1 -1
- package/dist/components/input/useAIGeneration.d.ts.map +1 -1
- package/dist/components/prompt-card/AssistantPromptCard.d.ts +4 -5
- package/dist/components/prompt-card/AssistantPromptCard.d.ts.map +1 -1
- package/dist/context/base.d.ts +2 -2
- package/dist/context/base.d.ts.map +1 -1
- package/dist/context/chat.d.ts +2 -2
- package/dist/context/chat.d.ts.map +1 -1
- package/dist/context/component.d.ts +3 -3
- package/dist/context/component.d.ts.map +1 -1
- package/dist/context/dashboard.d.ts +2 -2
- package/dist/context/dashboard.d.ts.map +1 -1
- package/dist/context/datasource.d.ts +3 -3
- package/dist/context/datasource.d.ts.map +1 -1
- package/dist/context/entity.d.ts +2 -2
- package/dist/context/entity.d.ts.map +1 -1
- package/dist/context/factory.d.ts +1 -1
- package/dist/context/factory.d.ts.map +1 -1
- package/dist/context/label.d.ts +3 -3
- package/dist/context/label.d.ts.map +1 -1
- package/dist/context/page.d.ts +1 -1
- package/dist/context/page.d.ts.map +1 -1
- package/dist/context/questions.d.ts +1 -1
- package/dist/context/questions.d.ts.map +1 -1
- package/dist/context/skill.d.ts +2 -2
- package/dist/context/skill.d.ts.map +1 -1
- package/dist/context/types.d.ts +2 -2
- package/dist/context/types.d.ts.map +1 -1
- package/dist/functions.d.ts +1 -1
- package/dist/functions.d.ts.map +1 -1
- package/dist/hook.d.ts +1 -1
- package/dist/hook.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inline/useInlineAssistant.d.ts +1 -1
- package/dist/inline/useInlineAssistant.d.ts.map +1 -1
- package/dist/k6.d.ts +30 -0
- package/dist/k6.d.ts.map +1 -0
- package/dist/limits/index.d.ts.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/sidebar.d.ts +4 -1
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/terms/index.d.ts.map +1 -1
- package/dist/terms/settings.gen.d.ts +271 -0
- package/dist/terms/settings.gen.d.ts.map +1 -1
- package/dist/tools/toolFactory.d.ts +1 -1
- package/dist/tools/toolFactory.d.ts.map +1 -1
- package/dist/tools/types.d.ts +7 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/utils/errorHandling.d.ts +8 -0
- package/dist/utils/errorHandling.d.ts.map +1 -0
- package/dist/utils/theme.d.ts +1 -1
- package/dist/utils/theme.d.ts.map +1 -1
- package/package.json +9 -5
- package/dist/investigations.d.ts +0 -41
- package/dist/investigations.d.ts.map +0 -1
package/dist/investigations.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BusEventWithPayload } from '@grafana/data';
|
|
2
|
-
/**
|
|
3
|
-
* Payload for the InvestigationCreatedEvent
|
|
4
|
-
*/
|
|
5
|
-
export interface InvestigationCreatedPayload {
|
|
6
|
-
/** The ID of the newly created investigation */
|
|
7
|
-
investigationId: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Event emitted when an investigation is created.
|
|
11
|
-
* External integrations can subscribe to this event to react to new investigations.
|
|
12
|
-
*/
|
|
13
|
-
export declare class InvestigationCreatedEvent extends BusEventWithPayload<InvestigationCreatedPayload> {
|
|
14
|
-
static type: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Emit an InvestigationCreatedEvent to notify subscribers that a new investigation was created.
|
|
18
|
-
*
|
|
19
|
-
* @param investigationId - The ID of the newly created investigation
|
|
20
|
-
*/
|
|
21
|
-
export declare function emitInvestigationCreated(investigationId: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* Subscribe to investigation created events.
|
|
24
|
-
*
|
|
25
|
-
* @param callback - Function to call when an investigation is created
|
|
26
|
-
* @returns Unsubscribe function to stop listening for events
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* import { onInvestigationCreated } from '@grafana/assistant';
|
|
31
|
-
*
|
|
32
|
-
* const unsubscribe = onInvestigationCreated((payload) => {
|
|
33
|
-
* console.log('Investigation created:', payload.investigationId);
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* // Later, when you want to stop listening
|
|
37
|
-
* unsubscribe();
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function onInvestigationCreated(callback: (payload: InvestigationCreatedPayload) => void): () => void;
|
|
41
|
-
//# sourceMappingURL=investigations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"investigations.d.ts","sourceRoot":"","sources":["../src/investigations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,2BAA2B,CAAC;IAC7F,MAAM,CAAC,IAAI,SAA6C;CACzD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAGtE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,IAAI,GAAG,MAAM,IAAI,CAM3G"}
|