@atlaskit/link-datasource 0.29.3 → 0.29.5
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/CHANGELOG.md +13 -0
- package/dist/cjs/hooks/useAssetsClient.js +50 -31
- package/dist/cjs/hooks/useObjectSchemas.js +74 -0
- package/dist/cjs/hooks/useValidateAqlText.js +42 -13
- package/dist/cjs/index.js +7 -1
- package/dist/cjs/services/cmdbService.js +17 -8
- package/dist/cjs/types/assets/types.js +7 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +46 -10
- package/dist/cjs/ui/assets-modal/modal/messages.js +5 -0
- package/dist/cjs/ui/assets-modal/modal/styled.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +161 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +18 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/messages.js +15 -0
- package/dist/cjs/ui/assets-modal/search-container/index.js +50 -0
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +21 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +103 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +18 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/messages.js +25 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/utils.js +13 -0
- package/dist/cjs/ui/assets-modal/search-container/styled.js +22 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/hooks/useAssetsClient.js +22 -13
- package/dist/es2019/hooks/useObjectSchemas.js +32 -0
- package/dist/es2019/hooks/useValidateAqlText.js +26 -9
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/services/cmdbService.js +14 -6
- package/dist/es2019/types/assets/types.js +3 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +42 -8
- package/dist/es2019/ui/assets-modal/modal/messages.js +5 -0
- package/dist/es2019/ui/assets-modal/modal/styled.js +3 -3
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +129 -0
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +8 -0
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/messages.js +8 -0
- package/dist/es2019/ui/assets-modal/search-container/index.js +46 -0
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +14 -0
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +65 -0
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +8 -0
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/messages.js +18 -0
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/utils.js +4 -0
- package/dist/es2019/ui/assets-modal/search-container/styled.js +22 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/hooks/useAssetsClient.js +51 -32
- package/dist/esm/hooks/useObjectSchemas.js +66 -0
- package/dist/esm/hooks/useValidateAqlText.js +42 -13
- package/dist/esm/index.js +1 -0
- package/dist/esm/services/cmdbService.js +15 -7
- package/dist/esm/types/assets/types.js +3 -1
- package/dist/esm/ui/assets-modal/modal/index.js +46 -10
- package/dist/esm/ui/assets-modal/modal/messages.js +5 -0
- package/dist/esm/ui/assets-modal/modal/styled.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +152 -0
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +10 -0
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/messages.js +8 -0
- package/dist/esm/ui/assets-modal/search-container/index.js +41 -0
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +13 -0
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +94 -0
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +10 -0
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/messages.js +18 -0
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/utils.js +6 -0
- package/dist/esm/ui/assets-modal/search-container/styled.js +11 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/hooks/useAssetsClient.d.ts +8 -6
- package/dist/types/hooks/useObjectSchemas.d.ts +8 -0
- package/dist/types/hooks/useValidateAqlText.d.ts +5 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/services/cmdbService.d.ts +4 -3
- package/dist/types/types/assets/types.d.ts +21 -10
- package/dist/types/ui/assets-modal/modal/messages.d.ts +5 -0
- package/dist/types/ui/assets-modal/search-container/aql-search-input/index.d.ts +8 -0
- package/dist/types/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +3 -0
- package/dist/types/ui/assets-modal/search-container/aql-search-input/messages.d.ts +7 -0
- package/dist/types/ui/assets-modal/search-container/index.d.ts +16 -0
- package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +8 -0
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +10 -0
- package/dist/types/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +3 -0
- package/dist/types/ui/assets-modal/search-container/object-schema-select/messages.d.ts +17 -0
- package/dist/types/ui/assets-modal/search-container/object-schema-select/utils.d.ts +2 -0
- package/dist/types/ui/assets-modal/search-container/styled.d.ts +19 -0
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +8 -6
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +8 -0
- package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +5 -2
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/services/cmdbService.d.ts +4 -3
- package/dist/types-ts4.5/types/assets/types.d.ts +21 -10
- package/dist/types-ts4.5/ui/assets-modal/modal/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +3 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +16 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +8 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +3 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +2 -0
- package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +19 -0
- package/package.json +4 -2
- package/report.api.md +7 -5
- package/tmp/api-report-tmp.d.ts +5 -3
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
3
|
+
export type UseAssetsClientState = {
|
|
4
|
+
workspaceId: string | undefined;
|
|
5
|
+
workspaceError: Error | undefined;
|
|
6
|
+
objectSchema: ObjectSchema | undefined;
|
|
7
|
+
assetsClientLoading: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
+
export type UseObjectSchemasState = {
|
|
3
|
+
objectSchemasLoading: boolean;
|
|
4
|
+
objectSchemasError: Error | undefined;
|
|
5
|
+
objectSchemas: ObjectSchema[] | undefined;
|
|
6
|
+
fetchObjectSchemas: (query: string) => Promise<ObjectSchema[] | undefined>;
|
|
7
|
+
};
|
|
8
|
+
export declare const useObjectSchemas: (workspaceId: string) => UseObjectSchemasState;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UseValidateAqlTextState = {
|
|
2
|
+
validateAqlTextLoading: boolean;
|
|
3
|
+
validateAqlTextError: Error | undefined;
|
|
4
|
+
isValidAqlText: boolean;
|
|
2
5
|
validateAqlText: (aql: string) => Promise<boolean>;
|
|
3
|
-
isLoading: boolean;
|
|
4
6
|
};
|
|
7
|
+
export declare const useValidateAqlText: (workspaceId: string, hostname?: string) => UseValidateAqlTextState;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as JiraIssuesConfigModal } from './ui/jira-issues-modal';
|
|
2
|
+
export { default as AssetsConfigModal } from './ui/assets-modal';
|
|
2
3
|
export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
3
4
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
4
5
|
export type { JiraIssuesDatasourceAdf, JiraIssueDatasourceParameters, } from './ui/jira-issues-modal/types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AqlValidateResponse, FetchObjectSchemasResponse } from '../types/assets/types';
|
|
2
|
-
export declare const getWorkspaceId: (
|
|
2
|
+
export declare const getWorkspaceId: () => Promise<string>;
|
|
3
3
|
export declare const validateAql: (workspaceId: string, data: {
|
|
4
4
|
qlQuery: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const
|
|
5
|
+
}) => Promise<AqlValidateResponse>;
|
|
6
|
+
export declare const fetchObjectSchema: (workspaceId: string, schemaId: string) => Promise<import("../types/assets/types").ObjectSchema>;
|
|
7
|
+
export declare const fetchObjectSchemas: (workspaceId: string, query?: string) => Promise<FetchObjectSchemasResponse>;
|
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type GetWorkspaceDetailsResponse = {
|
|
2
2
|
results: [
|
|
3
3
|
{
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
6
|
];
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
id
|
|
10
|
-
name
|
|
11
|
-
}
|
|
12
|
-
export
|
|
7
|
+
};
|
|
8
|
+
export type ObjectSchema = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
export type ObjectSchemaOption = {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
export type FetchObjectSchemaResponse = ObjectSchema;
|
|
17
|
+
export type FetchObjectSchemasResponse = {
|
|
13
18
|
startAt: number;
|
|
14
19
|
maxResults: number;
|
|
15
20
|
total: number;
|
|
16
21
|
values: ObjectSchema[];
|
|
17
22
|
isLast: boolean;
|
|
18
|
-
}
|
|
19
|
-
export
|
|
23
|
+
};
|
|
24
|
+
export type AqlValidateResponse = {
|
|
20
25
|
isValid: boolean;
|
|
21
26
|
errorMessages: string[];
|
|
22
27
|
errors: {};
|
|
23
|
-
}
|
|
28
|
+
};
|
|
29
|
+
export declare const objectSchemaKey: "objectSchema";
|
|
30
|
+
export declare const aqlKey: "aql";
|
|
31
|
+
export type SearchForm = {
|
|
32
|
+
[objectSchemaKey]: ObjectSchemaOption | undefined | null;
|
|
33
|
+
[aqlKey]: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
export interface AqlSearchInputProps {
|
|
3
|
+
value: string;
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
8
|
+
export declare const AqlSearchInput: ({ value, workspaceId, testId, }: AqlSearchInputProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { ObjectSchema } from '../../../types/assets/types';
|
|
5
|
+
type InitialSearchData = {
|
|
6
|
+
objectSchema?: ObjectSchema;
|
|
7
|
+
aql?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface SearchContainerProps {
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
initialSearchData: InitialSearchData;
|
|
12
|
+
onSearch: (aql: string, schemaId: string) => void;
|
|
13
|
+
modalTitle?: JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export declare const AssetsSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
type AssetsSearchConatinerLoadingProps = {
|
|
5
|
+
modalTitle?: JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export declare const AssetsSearchContainerLoading: ({ modalTitle, }: AssetsSearchConatinerLoadingProps) => jsx.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { ObjectSchema } from '../../../../types/assets/types';
|
|
3
|
+
type AssetsObjectSchemaSelectProps = {
|
|
4
|
+
value: ObjectSchema | undefined;
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
classNamePrefix?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
9
|
+
export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const objectSchemaSelectMessages: {
|
|
2
|
+
label: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
placeholder: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
schemaRequired: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FormRowContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
isNarrowGap?: boolean | undefined;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const FormContainer: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
|
|
12
|
+
export declare const FieldContainer: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export declare const SchemaSelectContainer: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
3
|
+
export type UseAssetsClientState = {
|
|
4
|
+
workspaceId: string | undefined;
|
|
5
|
+
workspaceError: Error | undefined;
|
|
6
|
+
objectSchema: ObjectSchema | undefined;
|
|
7
|
+
assetsClientLoading: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
+
export type UseObjectSchemasState = {
|
|
3
|
+
objectSchemasLoading: boolean;
|
|
4
|
+
objectSchemasError: Error | undefined;
|
|
5
|
+
objectSchemas: ObjectSchema[] | undefined;
|
|
6
|
+
fetchObjectSchemas: (query: string) => Promise<ObjectSchema[] | undefined>;
|
|
7
|
+
};
|
|
8
|
+
export declare const useObjectSchemas: (workspaceId: string) => UseObjectSchemasState;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UseValidateAqlTextState = {
|
|
2
|
+
validateAqlTextLoading: boolean;
|
|
3
|
+
validateAqlTextError: Error | undefined;
|
|
4
|
+
isValidAqlText: boolean;
|
|
2
5
|
validateAqlText: (aql: string) => Promise<boolean>;
|
|
3
|
-
isLoading: boolean;
|
|
4
6
|
};
|
|
7
|
+
export declare const useValidateAqlText: (workspaceId: string, hostname?: string) => UseValidateAqlTextState;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as JiraIssuesConfigModal } from './ui/jira-issues-modal';
|
|
2
|
+
export { default as AssetsConfigModal } from './ui/assets-modal';
|
|
2
3
|
export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
3
4
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
4
5
|
export type { JiraIssuesDatasourceAdf, JiraIssueDatasourceParameters, } from './ui/jira-issues-modal/types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AqlValidateResponse, FetchObjectSchemasResponse } from '../types/assets/types';
|
|
2
|
-
export declare const getWorkspaceId: (
|
|
2
|
+
export declare const getWorkspaceId: () => Promise<string>;
|
|
3
3
|
export declare const validateAql: (workspaceId: string, data: {
|
|
4
4
|
qlQuery: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const
|
|
5
|
+
}) => Promise<AqlValidateResponse>;
|
|
6
|
+
export declare const fetchObjectSchema: (workspaceId: string, schemaId: string) => Promise<import("../types/assets/types").ObjectSchema>;
|
|
7
|
+
export declare const fetchObjectSchemas: (workspaceId: string, query?: string) => Promise<FetchObjectSchemasResponse>;
|
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type GetWorkspaceDetailsResponse = {
|
|
2
2
|
results: [
|
|
3
3
|
{
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
6
|
];
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
id
|
|
10
|
-
name
|
|
11
|
-
}
|
|
12
|
-
export
|
|
7
|
+
};
|
|
8
|
+
export type ObjectSchema = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
export type ObjectSchemaOption = {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
export type FetchObjectSchemaResponse = ObjectSchema;
|
|
17
|
+
export type FetchObjectSchemasResponse = {
|
|
13
18
|
startAt: number;
|
|
14
19
|
maxResults: number;
|
|
15
20
|
total: number;
|
|
16
21
|
values: ObjectSchema[];
|
|
17
22
|
isLast: boolean;
|
|
18
|
-
}
|
|
19
|
-
export
|
|
23
|
+
};
|
|
24
|
+
export type AqlValidateResponse = {
|
|
20
25
|
isValid: boolean;
|
|
21
26
|
errorMessages: string[];
|
|
22
27
|
errors: {};
|
|
23
|
-
}
|
|
28
|
+
};
|
|
29
|
+
export declare const objectSchemaKey: "objectSchema";
|
|
30
|
+
export declare const aqlKey: "aql";
|
|
31
|
+
export type SearchForm = {
|
|
32
|
+
[objectSchemaKey]: ObjectSchemaOption | undefined | null;
|
|
33
|
+
[aqlKey]: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
export interface AqlSearchInputProps {
|
|
3
|
+
value: string;
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
8
|
+
export declare const AqlSearchInput: ({ value, workspaceId, testId, }: AqlSearchInputProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { ObjectSchema } from '../../../types/assets/types';
|
|
5
|
+
type InitialSearchData = {
|
|
6
|
+
objectSchema?: ObjectSchema;
|
|
7
|
+
aql?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface SearchContainerProps {
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
initialSearchData: InitialSearchData;
|
|
12
|
+
onSearch: (aql: string, schemaId: string) => void;
|
|
13
|
+
modalTitle?: JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export declare const AssetsSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
type AssetsSearchConatinerLoadingProps = {
|
|
5
|
+
modalTitle?: JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export declare const AssetsSearchContainerLoading: ({ modalTitle, }: AssetsSearchConatinerLoadingProps) => jsx.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { ObjectSchema } from '../../../../types/assets/types';
|
|
3
|
+
type AssetsObjectSchemaSelectProps = {
|
|
4
|
+
value: ObjectSchema | undefined;
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
classNamePrefix?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
9
|
+
export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, classNamePrefix, }: AssetsObjectSchemaSelectProps) => jsx.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const objectSchemaSelectMessages: {
|
|
2
|
+
label: {
|
|
3
|
+
id: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultMessage: string;
|
|
6
|
+
};
|
|
7
|
+
placeholder: {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
};
|
|
12
|
+
schemaRequired: {
|
|
13
|
+
id: string;
|
|
14
|
+
description: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FormRowContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
isNarrowGap?: boolean | undefined;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const FormContainer: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
|
|
12
|
+
export declare const FieldContainer: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export declare const SchemaSelectContainer: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.5",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@atlaskit/button": "^16.8.0",
|
|
32
32
|
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
33
33
|
"@atlaskit/empty-state": "^7.5.0",
|
|
34
|
+
"@atlaskit/form": "^8.11.0",
|
|
34
35
|
"@atlaskit/heading": "^1.3.0",
|
|
35
36
|
"@atlaskit/icon": "^21.12.0",
|
|
36
37
|
"@atlaskit/icon-object": "^6.3.0",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
46
47
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.15.0",
|
|
47
48
|
"@atlaskit/select": "^16.5.0",
|
|
48
|
-
"@atlaskit/smart-card": "^26.
|
|
49
|
+
"@atlaskit/smart-card": "^26.10.0",
|
|
49
50
|
"@atlaskit/spinner": "^15.5.0",
|
|
50
51
|
"@atlaskit/tag": "^11.5.0",
|
|
51
52
|
"@atlaskit/textfield": "5.6.3",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"@babel/runtime": "^7.0.0",
|
|
57
58
|
"@emotion/react": "^11.7.1",
|
|
58
59
|
"@emotion/styled": "^11.0.0",
|
|
60
|
+
"debounce-promise": "^3.1.2",
|
|
59
61
|
"react-error-boundary": "^3.1.3",
|
|
60
62
|
"tiny-invariant": "^1.2.0"
|
|
61
63
|
},
|
package/report.api.md
CHANGED
|
@@ -40,6 +40,13 @@ interface AssetsConfigModalProps {
|
|
|
40
40
|
visibleColumnKeys?: string[];
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
// @public (undocumented)
|
|
44
|
+
const AssetsConfigModalWithWrappers: (
|
|
45
|
+
props: AssetsConfigModalProps,
|
|
46
|
+
) => JSX.Element;
|
|
47
|
+
export { AssetsConfigModalWithWrappers as AssetsConfigModal };
|
|
48
|
+
export { AssetsConfigModalWithWrappers as JSMAssetsConfigModal };
|
|
49
|
+
|
|
43
50
|
// @public (undocumented)
|
|
44
51
|
export interface AssetsDatasourceAdf extends DatasourceAdf {
|
|
45
52
|
// (undocumented)
|
|
@@ -148,11 +155,6 @@ export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
|
148
155
|
};
|
|
149
156
|
}
|
|
150
157
|
|
|
151
|
-
// @public (undocumented)
|
|
152
|
-
export const JSMAssetsConfigModal: (
|
|
153
|
-
props: AssetsConfigModalProps,
|
|
154
|
-
) => JSX.Element;
|
|
155
|
-
|
|
156
158
|
// @public (undocumented)
|
|
157
159
|
type XOR<T1, T2> =
|
|
158
160
|
| (T1 & {
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ interface AssetsConfigModalProps {
|
|
|
28
28
|
visibleColumnKeys?: string[];
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// @public (undocumented)
|
|
32
|
+
const AssetsConfigModalWithWrappers: (props: AssetsConfigModalProps) => JSX.Element;
|
|
33
|
+
export { AssetsConfigModalWithWrappers as AssetsConfigModal }
|
|
34
|
+
export { AssetsConfigModalWithWrappers as JSMAssetsConfigModal }
|
|
35
|
+
|
|
31
36
|
// @public (undocumented)
|
|
32
37
|
export interface AssetsDatasourceAdf extends DatasourceAdf {
|
|
33
38
|
// (undocumented)
|
|
@@ -128,9 +133,6 @@ export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
|
128
133
|
};
|
|
129
134
|
}
|
|
130
135
|
|
|
131
|
-
// @public (undocumented)
|
|
132
|
-
export const JSMAssetsConfigModal: (props: AssetsConfigModalProps) => JSX.Element;
|
|
133
|
-
|
|
134
136
|
// @public (undocumented)
|
|
135
137
|
type XOR<T1, T2> = (T1 & {
|
|
136
138
|
[k in Exclude<keyof T2, keyof T1>]?: never;
|