@grafana/assistant 0.1.6 → 0.1.7
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/terms/index.d.ts +6 -0
- package/dist/terms/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,UAAU,EAAgC,MAAM,MAAM,CAAC;AAExF,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAM1D;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,UAAU,CAAC,OAAO,CAAC,CA+C1D"}
|
package/dist/terms/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event name that is dispatched when terms and conditions are accepted.
|
|
3
|
+
* Other components can listen to this event to refresh their UI.
|
|
4
|
+
*/
|
|
5
|
+
export declare const TERMS_AND_CONDITIONS_REFRESH_EVENT = "grafana-assistant-terms-and-conditions-refresh";
|
|
1
6
|
/**
|
|
2
7
|
* Checks whether terms and conditions are accepted and up-to-date.
|
|
3
8
|
* This function verifies that:
|
|
@@ -21,6 +26,7 @@
|
|
|
21
26
|
export declare function checkTerms(): Promise<boolean>;
|
|
22
27
|
/**
|
|
23
28
|
* Accepts terms and conditions for the current tenant.
|
|
29
|
+
* Dispatches a custom event after successful acceptance to notify other components.
|
|
24
30
|
*
|
|
25
31
|
* @returns A promise that resolves when terms are accepted
|
|
26
32
|
* @throws Error if the API call fails
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/terms/index.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAiCnD;AAED
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/terms/index.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,kCAAkC,mDAAmD,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAiCnD;AAED;;;;;;GAMG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAwBjD;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ;;;;;EA+CvB"}
|