@atlaskit/link-datasource 1.29.4 → 1.30.0
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/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +126 -33
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +50 -0
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +6 -4
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +6 -6
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.js +66 -0
- package/dist/cjs/ui/confluence-search-modal/basic-filters/index.js +12 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +36 -13
- package/dist/cjs/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +116 -31
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +50 -0
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +6 -4
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +6 -6
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.js +57 -0
- package/dist/es2019/ui/confluence-search-modal/basic-filters/index.js +8 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +32 -7
- package/dist/es2019/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +128 -35
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +50 -0
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +6 -4
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +6 -6
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.js +59 -0
- package/dist/esm/ui/confluence-search-modal/basic-filters/index.js +12 -2
- package/dist/esm/ui/confluence-search-modal/modal/index.js +36 -13
- package/dist/esm/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/types/ui/common/modal/popup-select/types.d.ts +3 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.d.ts +4 -3
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.d.ts +50 -0
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.d.ts +4 -4
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +6 -0
- package/dist/types/ui/confluence-search-modal/basic-filters/index.d.ts +2 -2
- package/dist/types/ui/confluence-search-modal/confluence-search-container/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/modal/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/types.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/popup-select/types.d.ts +3 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.d.ts +4 -3
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.d.ts +50 -0
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.d.ts +4 -4
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/utils.d.ts +6 -0
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/confluence-search-container/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/types.d.ts +3 -3
- package/package.json +10 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DatasourceAdf, InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
-
import { ConfigModalProps } from '../../common/types';
|
|
3
|
-
import { DateRangeType } from '../common/modal/popup-select/types';
|
|
1
|
+
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
+
import { type ConfigModalProps } from '../../common/types';
|
|
3
|
+
import { type DateRangeType } from '../common/modal/popup-select/types';
|
|
4
4
|
export interface ConfluenceSearchConfigModalProps extends ConfigModalProps<InlineCardAdf | ConfluenceSearchDatasourceAdf, ConfluenceSearchDatasourceParameters> {
|
|
5
5
|
disableDisplayDropdown?: boolean;
|
|
6
6
|
overrideParameters?: Pick<ConfluenceSearchDatasourceParameters, 'entityTypes'>;
|
|
@@ -20,8 +20,10 @@ export type AvatarLabelOption = OptionBase & {
|
|
|
20
20
|
};
|
|
21
21
|
export type DateRangeType = 'anyTime' | 'today' | 'yesterday' | 'past7Days' | 'past30Days' | 'pastYear' | 'custom';
|
|
22
22
|
export type DateRangeOption = OptionBase & {
|
|
23
|
-
optionType: '
|
|
23
|
+
optionType: 'dateRange';
|
|
24
24
|
value: DateRangeType;
|
|
25
|
+
from?: string;
|
|
26
|
+
to?: string;
|
|
25
27
|
};
|
|
26
28
|
export type SelectOption = IconLabelOption | LozengeLabelOption | AvatarLabelOption | DateRangeOption;
|
|
27
29
|
export type FormatOptionLabel = (option: SelectOption) => ReactElement;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { type DateRangeOption } from '../../../../common/modal/popup-select/types';
|
|
3
3
|
import { CLOLBasicFilters } from '../../types';
|
|
4
4
|
interface DateRangeProps {
|
|
5
|
-
onSelectionChange: (filterType: CLOLBasicFilters, options:
|
|
5
|
+
onSelectionChange: (filterType: CLOLBasicFilters, options: DateRangeOption) => void;
|
|
6
|
+
selection?: DateRangeOption;
|
|
6
7
|
}
|
|
7
|
-
export declare const DateRangePicker: ({ onSelectionChange }: DateRangeProps) => JSX.Element;
|
|
8
|
+
export declare const DateRangePicker: ({ onSelectionChange, selection, }: DateRangeProps) => JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -39,4 +39,54 @@ export declare const dateRangeMessages: {
|
|
|
39
39
|
defaultMessage: string;
|
|
40
40
|
description: string;
|
|
41
41
|
};
|
|
42
|
+
dateRangeFrom: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
dateRangeTo: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
dateRangeDateInputPlaceholder: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
dateRangeCustomInvalidDateAfterToday: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
dateRangeCustomInvalidToDateAfterToday: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
dateRangeCustomInvalidDateAfterEnd: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
dateRangeToLabel: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
dateRangeUpdateButton: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
dateRangeBeforeLabel: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
dateRangeAfterLabel: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
42
92
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { TriggerProps } from '@atlaskit/popup/types';
|
|
3
3
|
export interface PopupTriggerProps {
|
|
4
4
|
triggerProps: TriggerProps;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
labelPrefix: string;
|
|
7
7
|
selectedLabel?: string;
|
|
8
|
-
|
|
8
|
+
onClick: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const PopupTrigger: ({ triggerProps,
|
|
10
|
+
export declare const PopupTrigger: ({ triggerProps, isSelected, labelPrefix, selectedLabel, onClick, }: PopupTriggerProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type IntlShape } from 'react-intl-next';
|
|
3
|
+
import { type DateRangeOption, type DateRangeType } from '../../../../common/modal/popup-select/types';
|
|
4
|
+
export declare const getDropdownLabel: (option: DateRangeType | undefined, formatMessage: IntlShape['formatMessage']) => string;
|
|
5
|
+
export declare const getCurrentOptionLabel: (formatDate: IntlShape['formatDate'], formatMessage: IntlShape['formatMessage'], selection?: DateRangeOption) => string;
|
|
6
|
+
export declare const getInvalidDateRange: (from: string | undefined, to: string | undefined) => JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SelectOption } from '../../common/modal/popup-select/types';
|
|
3
|
-
import { CLOLBasicFilters, SelectedOptionsMap } from './types';
|
|
2
|
+
import { type SelectOption } from '../../common/modal/popup-select/types';
|
|
3
|
+
import { type CLOLBasicFilters, type SelectedOptionsMap } from './types';
|
|
4
4
|
export interface BasicFilterContainerProps {
|
|
5
5
|
cloudId?: string;
|
|
6
6
|
selections: SelectedOptionsMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CLOLBasicFilters, SelectedOptionsMap } from '../basic-filters/types';
|
|
2
|
+
import { CLOLBasicFilters, type SelectedOptionsMap } from '../basic-filters/types';
|
|
3
3
|
export type FilterInitialSelectionMap = {
|
|
4
4
|
[CLOLBasicFilters.editedOrCreatedBy]?: string[];
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { DatasourceAction } from '../../../analytics/types';
|
|
4
|
-
import { ConfluenceSearchConfigModalProps } from '../types';
|
|
4
|
+
import { type ConfluenceSearchConfigModalProps } from '../types';
|
|
5
5
|
export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibleColumnKeys: string[]) => DatasourceAction;
|
|
6
6
|
export declare const PlainConfluenceSearchConfigModal: (props: ConfluenceSearchConfigModalProps) => jsx.JSX.Element;
|
|
7
7
|
export declare const ConfluenceSearchConfigModal: import("react").ForwardRefExoticComponent<ConfluenceSearchConfigModalProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DatasourceAdf, InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
-
import { ConfigModalProps } from '../../common/types';
|
|
3
|
-
import { DateRangeType } from '../common/modal/popup-select/types';
|
|
1
|
+
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
+
import { type ConfigModalProps } from '../../common/types';
|
|
3
|
+
import { type DateRangeType } from '../common/modal/popup-select/types';
|
|
4
4
|
export interface ConfluenceSearchConfigModalProps extends ConfigModalProps<InlineCardAdf | ConfluenceSearchDatasourceAdf, ConfluenceSearchDatasourceParameters> {
|
|
5
5
|
disableDisplayDropdown?: boolean;
|
|
6
6
|
overrideParameters?: Pick<ConfluenceSearchDatasourceParameters, 'entityTypes'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
"analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource --output ./src/analytics/generated"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^35.
|
|
35
|
+
"@atlaskit/adf-schema": "^35.12.1",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
37
37
|
"@atlaskit/avatar": "^21.5.0",
|
|
38
38
|
"@atlaskit/avatar-group": "^9.5.0",
|
|
39
|
-
"@atlaskit/badge": "^16.
|
|
39
|
+
"@atlaskit/badge": "^16.1.0",
|
|
40
40
|
"@atlaskit/button": "^17.14.0",
|
|
41
|
+
"@atlaskit/datetime-picker": "^13.0.0",
|
|
41
42
|
"@atlaskit/dropdown-menu": "^12.9.0",
|
|
42
43
|
"@atlaskit/editor-prosemirror": "4.0.0",
|
|
43
44
|
"@atlaskit/empty-state": "^7.8.0",
|
|
@@ -55,23 +56,23 @@
|
|
|
55
56
|
"@atlaskit/linking-types": "^8.8.0",
|
|
56
57
|
"@atlaskit/logo": "^13.15.0",
|
|
57
58
|
"@atlaskit/lozenge": "^11.7.0",
|
|
58
|
-
"@atlaskit/modal-dialog": "^12.
|
|
59
|
+
"@atlaskit/modal-dialog": "^12.13.0",
|
|
59
60
|
"@atlaskit/outbound-auth-flow-client": "^3.4.5",
|
|
60
61
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
61
|
-
"@atlaskit/popup": "^1.
|
|
62
|
+
"@atlaskit/popup": "^1.15.0",
|
|
62
63
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.0",
|
|
63
64
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
64
65
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.1.0",
|
|
65
66
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
66
|
-
"@atlaskit/primitives": "^5.
|
|
67
|
-
"@atlaskit/select": "^17.
|
|
68
|
-
"@atlaskit/smart-card": "^26.
|
|
67
|
+
"@atlaskit/primitives": "^5.7.0",
|
|
68
|
+
"@atlaskit/select": "^17.7.0",
|
|
69
|
+
"@atlaskit/smart-card": "^26.58.0",
|
|
69
70
|
"@atlaskit/smart-user-picker": "6.9.3",
|
|
70
71
|
"@atlaskit/spinner": "^16.0.0",
|
|
71
72
|
"@atlaskit/tag": "^12.0.0",
|
|
72
73
|
"@atlaskit/textfield": "6.1.3",
|
|
73
74
|
"@atlaskit/theme": "^12.7.0",
|
|
74
|
-
"@atlaskit/tokens": "^1.
|
|
75
|
+
"@atlaskit/tokens": "^1.44.0",
|
|
75
76
|
"@atlaskit/tooltip": "^18.2.0",
|
|
76
77
|
"@atlaskit/ufo": "^0.2.4",
|
|
77
78
|
"@atlaskit/width-detector": "^4.1.7",
|