-
Notifications
You must be signed in to change notification settings - Fork 8.1k
/
index.ts
59 lines (49 loc) · 1.83 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
/**
* Create a namespace for Forms
* In the future, each top level folder should be exported like that to avoid naming collision
*/
import * as Forms from './forms';
import * as ace from './ace';
import * as GlobalFlyout from './global_flyout';
import * as XJson from './xjson';
export type { OnJsonEditorUpdateHandler, JsonEditorState } from './components/json_editor';
export { JsonEditor } from './components/json_editor';
export { PageLoading } from './components/page_loading';
export { SectionLoading } from './components/section_loading';
export type { Frequency } from './components/cron_editor';
export { CronEditor } from './components/cron_editor';
export { ViewApiRequestFlyout } from './components/view_api_request_flyout';
export type {
SendRequestConfig,
SendRequestResponse,
UseRequestConfig,
UseRequestResponse,
} from './request';
export { sendRequest, useRequest } from './request';
export { indices } from './indices';
export type { Privileges, MissingPrivileges, Error, Authorization } from './authorization';
export {
AuthorizationContext,
AuthorizationProvider,
NotAuthorizedSection,
WithPrivileges,
SectionError,
PageError,
useAuthorizationContext,
} from './authorization';
export { Forms, ace, GlobalFlyout, XJson };
export { extractQueryParams, attemptToURIDecode } from './url';
/** dummy plugin, we just want esUiShared to have its own bundle */
export function plugin() {
return new (class EsUiSharedPlugin {
setup() {}
start() {}
})();
}