@pitcher/js-api 1.22.0-rc.1 → 1.22.0-rc.2
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/js-api.esm.js +26 -9
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/sdk/api/modules/dsr/index.d.ts +4 -0
- package/lib/sdk/main.d.ts +8 -0
- package/package.json +1 -1
|
@@ -8,6 +8,10 @@ import { DSR_MESSAGE_TYPES, DsrMessagePayloads } from './types.dsr';
|
|
|
8
8
|
*/
|
|
9
9
|
declare function on(type: (typeof DSR_MESSAGE_TYPES)[keyof typeof DSR_MESSAGE_TYPES], handler: (data: DsrMessagePayloads[typeof type]) => Promise<void>): Promise<() => void>;
|
|
10
10
|
declare const _default: {
|
|
11
|
+
close(): Promise<void>;
|
|
12
|
+
getFile(payload: {
|
|
13
|
+
id: import('../../../../main.lib').File["id"];
|
|
14
|
+
}): Promise<import('../../../../main.lib').File>;
|
|
11
15
|
embeddableReady(): Promise<void>;
|
|
12
16
|
getEnv(): Promise<import('./types.dsr').DsrEnv>;
|
|
13
17
|
on: typeof on;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -129,6 +129,10 @@ export declare function useAdmin(): {
|
|
|
129
129
|
* ```
|
|
130
130
|
*/
|
|
131
131
|
export declare function useDsr(): {
|
|
132
|
+
close(): Promise<void>;
|
|
133
|
+
getFile(payload: {
|
|
134
|
+
id: import('../main.lib').File["id"];
|
|
135
|
+
}): Promise<import('../main.lib').File>;
|
|
132
136
|
embeddableReady(): Promise<void>;
|
|
133
137
|
getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
|
|
134
138
|
on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
@@ -329,6 +333,10 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
329
333
|
on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
330
334
|
toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
|
|
331
335
|
} | {
|
|
336
|
+
close(): Promise<void>;
|
|
337
|
+
getFile(payload: {
|
|
338
|
+
id: import('../main.lib').File["id"];
|
|
339
|
+
}): Promise<import('../main.lib').File>;
|
|
332
340
|
embeddableReady(): Promise<void>;
|
|
333
341
|
getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
|
|
334
342
|
on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|