@atlaskit/link-datasource 2.0.4 → 2.1.1
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 +32 -0
- package/dist/cjs/services/useAvailableSites.js +64 -0
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +32 -86
- package/dist/cjs/ui/issue-like-table/utils.js +18 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +37 -94
- package/dist/es2019/services/useAvailableSites.js +27 -0
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +13 -37
- package/dist/es2019/ui/issue-like-table/utils.js +17 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +14 -41
- package/dist/esm/services/useAvailableSites.js +57 -0
- package/dist/esm/ui/confluence-search-modal/modal/index.js +30 -84
- package/dist/esm/ui/issue-like-table/utils.js +17 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +35 -92
- package/dist/types/services/useAvailableSites.d.ts +5 -0
- package/dist/types/ui/assets-modal/modal/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/types.d.ts +4 -8
- package/dist/types/ui/confluence-search-modal/modal/index.d.ts +0 -2
- package/dist/types/ui/confluence-search-modal/types.d.ts +2 -1
- package/dist/types/ui/issue-like-table/index.d.ts +3 -3
- package/dist/types/ui/issue-like-table/utils.d.ts +6 -0
- package/dist/types/ui/jira-issues-modal/modal/index.d.ts +0 -6
- package/dist/types-ts4.5/services/useAvailableSites.d.ts +5 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +4 -8
- package/dist/types-ts4.5/ui/confluence-search-modal/modal/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/types.d.ts +2 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/issue-like-table/utils.d.ts +6 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +0 -6
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Ref } from 'react';
|
|
2
|
+
import { type Ref } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
5
|
-
import { IssueLikeDataTableViewProps } from './types';
|
|
4
|
+
import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
5
|
+
import { type IssueLikeDataTableViewProps } from './types';
|
|
6
6
|
export declare const scrollableContainerShadowsCssComponents: {
|
|
7
7
|
backgroundImage: string;
|
|
8
8
|
backgroundPosition: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { DatasourceAction } from '../../analytics/types';
|
|
2
3
|
export declare const COLUMN_BASE_WIDTH = 8;
|
|
3
4
|
export declare const COLUMN_MIN_WIDTH: number;
|
|
4
5
|
export type GetWidthCss = (arg: {
|
|
@@ -15,3 +16,8 @@ export type GetWidthCss = (arg: {
|
|
|
15
16
|
* @param width
|
|
16
17
|
*/
|
|
17
18
|
export declare const getWidthCss: GetWidthCss;
|
|
19
|
+
/**
|
|
20
|
+
* This method should be called when one atomic action is performed on columns: adding new item, removing one item, changing items order.
|
|
21
|
+
* The assumption is that since only one action is changed at each time, we don't have to verify the actual contents of the lists.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { DatasourceAction } from '../../../analytics/types';
|
|
4
3
|
import type { JiraConfigModalProps } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* This method should be called when one atomic action is performed on columns: adding new item, removing one item, changing items order.
|
|
7
|
-
* The assumption is that since only one action is changed at each time, we don't have to verify the actual contents of the lists.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
10
4
|
export declare const PlainJiraIssuesConfigModal: (props: JiraConfigModalProps) => jsx.JSX.Element;
|
|
11
5
|
export declare const JiraIssuesConfigModal: import("react").ForwardRefExoticComponent<JiraConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AssetsConfigModalProps } from '../types';
|
|
2
|
+
import { type AssetsConfigModalProps } from '../types';
|
|
3
3
|
export declare const AssetsConfigModal: import("react").ForwardRefExoticComponent<AssetsConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
1
|
+
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
+
import { type DatasourceParameters } from '@atlaskit/linking-types';
|
|
3
|
+
import { type ConfigModalProps } from '../../common/types';
|
|
3
4
|
export type AssetsDatasourceParameters = {
|
|
4
5
|
workspaceId: string;
|
|
5
6
|
aql: string;
|
|
6
7
|
schemaId: string;
|
|
7
8
|
};
|
|
8
9
|
export type AssetsDatasourceAdf = DatasourceAdf<AssetsDatasourceParameters>;
|
|
9
|
-
export interface AssetsConfigModalProps {
|
|
10
|
-
datasourceId: string;
|
|
11
|
-
visibleColumnKeys?: string[];
|
|
12
|
-
parameters?: AssetsDatasourceParameters;
|
|
13
|
-
onCancel: () => void;
|
|
14
|
-
onInsert: (adf: InlineCardAdf | AssetsDatasourceAdf, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
10
|
+
export interface AssetsConfigModalProps extends ConfigModalProps<InlineCardAdf | AssetsDatasourceAdf, DatasourceParameters | AssetsDatasourceParameters> {
|
|
15
11
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { DatasourceAction } from '../../../analytics/types';
|
|
4
3
|
import { type ConfluenceSearchConfigModalProps } from '../types';
|
|
5
|
-
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
6
4
|
export declare const PlainConfluenceSearchConfigModal: (props: ConfluenceSearchConfigModalProps) => jsx.JSX.Element;
|
|
7
5
|
export declare const ConfluenceSearchConfigModal: import("react").ForwardRefExoticComponent<ConfluenceSearchConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types';
|
|
2
3
|
import { type ConfigModalProps } from '../../common/types';
|
|
3
4
|
import { type DateRangeType } from '../common/modal/popup-select/types';
|
|
4
|
-
export interface ConfluenceSearchConfigModalProps extends ConfigModalProps<InlineCardAdf | ConfluenceSearchDatasourceAdf, ConfluenceSearchDatasourceParameters> {
|
|
5
|
+
export interface ConfluenceSearchConfigModalProps extends ConfigModalProps<InlineCardAdf | ConfluenceSearchDatasourceAdf, DatasourceParameters | ConfluenceSearchDatasourceParameters> {
|
|
5
6
|
disableDisplayDropdown?: boolean;
|
|
6
7
|
overrideParameters?: Pick<ConfluenceSearchDatasourceParameters, 'entityTypes'>;
|
|
7
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Ref } from 'react';
|
|
2
|
+
import { type Ref } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
5
|
-
import { IssueLikeDataTableViewProps } from './types';
|
|
4
|
+
import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
5
|
+
import { type IssueLikeDataTableViewProps } from './types';
|
|
6
6
|
export declare const scrollableContainerShadowsCssComponents: {
|
|
7
7
|
backgroundImage: string;
|
|
8
8
|
backgroundPosition: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { DatasourceAction } from '../../analytics/types';
|
|
2
3
|
export declare const COLUMN_BASE_WIDTH = 8;
|
|
3
4
|
export declare const COLUMN_MIN_WIDTH: number;
|
|
4
5
|
export type GetWidthCss = (arg: {
|
|
@@ -15,3 +16,8 @@ export type GetWidthCss = (arg: {
|
|
|
15
16
|
* @param width
|
|
16
17
|
*/
|
|
17
18
|
export declare const getWidthCss: GetWidthCss;
|
|
19
|
+
/**
|
|
20
|
+
* This method should be called when one atomic action is performed on columns: adding new item, removing one item, changing items order.
|
|
21
|
+
* The assumption is that since only one action is changed at each time, we don't have to verify the actual contents of the lists.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { DatasourceAction } from '../../../analytics/types';
|
|
4
3
|
import type { JiraConfigModalProps } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* This method should be called when one atomic action is performed on columns: adding new item, removing one item, changing items order.
|
|
7
|
-
* The assumption is that since only one action is changed at each time, we don't have to verify the actual contents of the lists.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
10
4
|
export declare const PlainJiraIssuesConfigModal: (props: JiraConfigModalProps) => jsx.JSX.Element;
|
|
11
5
|
export declare const JiraIssuesConfigModal: import("react").ForwardRefExoticComponent<JiraConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"@atlaskit/smart-user-picker": "6.9.3",
|
|
71
71
|
"@atlaskit/spinner": "^16.1.0",
|
|
72
72
|
"@atlaskit/tag": "^12.2.0",
|
|
73
|
-
"@atlaskit/textfield": "6.3.
|
|
74
|
-
"@atlaskit/theme": "^12.
|
|
75
|
-
"@atlaskit/tokens": "^1.
|
|
73
|
+
"@atlaskit/textfield": "6.3.1",
|
|
74
|
+
"@atlaskit/theme": "^12.8.0",
|
|
75
|
+
"@atlaskit/tokens": "^1.46.0",
|
|
76
76
|
"@atlaskit/tooltip": "^18.3.0",
|
|
77
77
|
"@atlaskit/ufo": "^0.2.4",
|
|
78
78
|
"@atlaskit/width-detector": "^4.2.0",
|