@mintlify/previewing 4.0.760 → 4.0.762
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/logging-state.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const setLoggingCallbacks: (setLogs: (logs: React.ReactNode[]) => void, setChangeLogs: (logs: React.ReactNode[]) => void) => void;
|
|
3
3
|
export declare const addLog: (log: React.ReactNode) => void;
|
|
4
|
+
export declare const addLogs: (...logs: React.ReactNode[]) => void;
|
|
4
5
|
export declare const addChangeLog: (log: React.ReactNode) => void;
|
|
5
6
|
export declare const clearLogs: () => void;
|
|
6
7
|
export declare const removeLastLog: () => void;
|
package/dist/logging-state.js
CHANGED
|
@@ -19,6 +19,11 @@ export const addLog = (log) => {
|
|
|
19
19
|
currentLogs = [...currentLogs, log];
|
|
20
20
|
setLogsCallback?.(currentLogs);
|
|
21
21
|
};
|
|
22
|
+
export const addLogs = (...logs) => {
|
|
23
|
+
ensureLoggingInstance();
|
|
24
|
+
currentLogs = [...currentLogs, ...logs];
|
|
25
|
+
setLogsCallback?.(currentLogs);
|
|
26
|
+
};
|
|
22
27
|
export const addChangeLog = (log) => {
|
|
23
28
|
ensureLoggingInstance();
|
|
24
29
|
currentChangeLogs = [...currentChangeLogs, log];
|