@atlaskit/link-datasource 4.30.0 → 4.30.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/CHANGELOG.md +15 -0
- package/dist/cjs/hooks/useLoadOptions.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/cjs/ui/common/modal/insert-button/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/es2019/hooks/useLoadOptions.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/es2019/ui/common/modal/insert-button/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/esm/hooks/useLoadOptions.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/esm/ui/common/modal/insert-button/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/types/hooks/useErrorLogger.d.ts +1 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types/ui/common/modal/insert-button/index.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useErrorLogger.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/insert-button/index.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.30.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
|
|
8
|
+
EDITOR-2791 bump adf-schema
|
|
9
|
+
|
|
10
|
+
## 4.30.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`c60de47015108`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60de47015108) -
|
|
15
|
+
Fix types for editor related dependencies
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.30.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -226,7 +226,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
226
226
|
// agreement with BE that we will use `key` for rendering smartlink
|
|
227
227
|
return data === null || data === void 0 || (_data$key = data.key) === null || _data$key === void 0 || (_data$key = _data$key.data) === null || _data$key === void 0 ? void 0 : _data$key.url;
|
|
228
228
|
}, [responseItems]);
|
|
229
|
-
var onInsertPressed = (0, _react.useCallback)(function (
|
|
229
|
+
var onInsertPressed = (0, _react.useCallback)(function (_e, analyticsEvent) {
|
|
230
230
|
var _insertButtonClickedE;
|
|
231
231
|
if (!aql || !schemaId || !workspaceId) {
|
|
232
232
|
return;
|
|
@@ -75,7 +75,7 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
|
|
|
75
75
|
workspaceId = _ref2.workspaceId,
|
|
76
76
|
initialObjectSchemas = _ref2.initialObjectSchemas,
|
|
77
77
|
_ref2$classNamePrefix = _ref2.classNamePrefix,
|
|
78
|
-
|
|
78
|
+
_classNamePrefix = _ref2$classNamePrefix === void 0 ? 'assets-datasource-modal--object-schema-select' : _ref2$classNamePrefix,
|
|
79
79
|
_ref2$testId = _ref2.testId,
|
|
80
80
|
testId = _ref2$testId === void 0 ? 'assets-datasource-modal--object-schema-select' : _ref2$testId;
|
|
81
81
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
@@ -39,7 +39,7 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
|
|
|
39
39
|
var _useViewModeContext = (0, _useViewModeContext2.useViewModeContext)(),
|
|
40
40
|
currentViewMode = _useViewModeContext.currentViewMode;
|
|
41
41
|
var isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
|
|
42
|
-
var onInsertPressed = (0, _react.useCallback)(function (
|
|
42
|
+
var onInsertPressed = (0, _react.useCallback)(function (_e, analyticsEvent) {
|
|
43
43
|
var _insertButtonClickedE;
|
|
44
44
|
if (!parameters || !isValidParameters(parameters) || !url) {
|
|
45
45
|
return;
|
|
@@ -43,7 +43,7 @@ var AvatarGroupWrapperStyles = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
|
43
43
|
if (process.env.NODE_ENV !== 'production') {
|
|
44
44
|
AvatarGroupWrapperStyles.displayName = 'AvatarGroupWrapperStyles';
|
|
45
45
|
}
|
|
46
|
-
var getMaxUserCount = function getMaxUserCount(
|
|
46
|
+
var getMaxUserCount = function getMaxUserCount(_userCount, availableWidth) {
|
|
47
47
|
if (availableWidth <= 28) {
|
|
48
48
|
// If width is less than or equal to 28px, we should only display the user count
|
|
49
49
|
return 1;
|
|
@@ -200,7 +200,7 @@ const PlainAssetsConfigModal = props => {
|
|
|
200
200
|
// agreement with BE that we will use `key` for rendering smartlink
|
|
201
201
|
return data === null || data === void 0 ? void 0 : (_data$key = data.key) === null || _data$key === void 0 ? void 0 : (_data$key$data = _data$key.data) === null || _data$key$data === void 0 ? void 0 : _data$key$data.url;
|
|
202
202
|
}, [responseItems]);
|
|
203
|
-
const onInsertPressed = useCallback((
|
|
203
|
+
const onInsertPressed = useCallback((_e, analyticsEvent) => {
|
|
204
204
|
var _insertButtonClickedE;
|
|
205
205
|
if (!aql || !schemaId || !workspaceId) {
|
|
206
206
|
return;
|
|
@@ -54,7 +54,7 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
54
54
|
value,
|
|
55
55
|
workspaceId,
|
|
56
56
|
initialObjectSchemas,
|
|
57
|
-
classNamePrefix = 'assets-datasource-modal--object-schema-select',
|
|
57
|
+
classNamePrefix: _classNamePrefix = 'assets-datasource-modal--object-schema-select',
|
|
58
58
|
testId = 'assets-datasource-modal--object-schema-select'
|
|
59
59
|
}) => {
|
|
60
60
|
const {
|
|
@@ -31,7 +31,7 @@ export const InsertButton = ({
|
|
|
31
31
|
currentViewMode
|
|
32
32
|
} = useViewModeContext();
|
|
33
33
|
const isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
|
|
34
|
-
const onInsertPressed = useCallback((
|
|
34
|
+
const onInsertPressed = useCallback((_e, analyticsEvent) => {
|
|
35
35
|
var _insertButtonClickedE;
|
|
36
36
|
if (!parameters || !isValidParameters(parameters) || !url) {
|
|
37
37
|
return;
|
|
@@ -32,7 +32,7 @@ const AvatarGroupWrapperStyles = forwardRef(({
|
|
|
32
32
|
if (process.env.NODE_ENV !== 'production') {
|
|
33
33
|
AvatarGroupWrapperStyles.displayName = 'AvatarGroupWrapperStyles';
|
|
34
34
|
}
|
|
35
|
-
const getMaxUserCount = (
|
|
35
|
+
const getMaxUserCount = (_userCount, availableWidth) => {
|
|
36
36
|
if (availableWidth <= 28) {
|
|
37
37
|
// If width is less than or equal to 28px, we should only display the user count
|
|
38
38
|
return 1;
|
|
@@ -217,7 +217,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
217
217
|
// agreement with BE that we will use `key` for rendering smartlink
|
|
218
218
|
return data === null || data === void 0 || (_data$key = data.key) === null || _data$key === void 0 || (_data$key = _data$key.data) === null || _data$key === void 0 ? void 0 : _data$key.url;
|
|
219
219
|
}, [responseItems]);
|
|
220
|
-
var onInsertPressed = useCallback(function (
|
|
220
|
+
var onInsertPressed = useCallback(function (_e, analyticsEvent) {
|
|
221
221
|
var _insertButtonClickedE;
|
|
222
222
|
if (!aql || !schemaId || !workspaceId) {
|
|
223
223
|
return;
|
|
@@ -68,7 +68,7 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
|
|
|
68
68
|
workspaceId = _ref2.workspaceId,
|
|
69
69
|
initialObjectSchemas = _ref2.initialObjectSchemas,
|
|
70
70
|
_ref2$classNamePrefix = _ref2.classNamePrefix,
|
|
71
|
-
|
|
71
|
+
_classNamePrefix = _ref2$classNamePrefix === void 0 ? 'assets-datasource-modal--object-schema-select' : _ref2$classNamePrefix,
|
|
72
72
|
_ref2$testId = _ref2.testId,
|
|
73
73
|
testId = _ref2$testId === void 0 ? 'assets-datasource-modal--object-schema-select' : _ref2$testId;
|
|
74
74
|
var _useIntl = useIntl(),
|
|
@@ -30,7 +30,7 @@ export var InsertButton = function InsertButton(_ref) {
|
|
|
30
30
|
var _useViewModeContext = useViewModeContext(),
|
|
31
31
|
currentViewMode = _useViewModeContext.currentViewMode;
|
|
32
32
|
var isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
|
|
33
|
-
var onInsertPressed = useCallback(function (
|
|
33
|
+
var onInsertPressed = useCallback(function (_e, analyticsEvent) {
|
|
34
34
|
var _insertButtonClickedE;
|
|
35
35
|
if (!parameters || !isValidParameters(parameters) || !url) {
|
|
36
36
|
return;
|
|
@@ -35,7 +35,7 @@ var AvatarGroupWrapperStyles = forwardRef(function (_ref, __cmplr) {
|
|
|
35
35
|
if (process.env.NODE_ENV !== 'production') {
|
|
36
36
|
AvatarGroupWrapperStyles.displayName = 'AvatarGroupWrapperStyles';
|
|
37
37
|
}
|
|
38
|
-
var getMaxUserCount = function getMaxUserCount(
|
|
38
|
+
var getMaxUserCount = function getMaxUserCount(_userCount, availableWidth) {
|
|
39
39
|
if (availableWidth <= 28) {
|
|
40
40
|
// If width is less than or equal to 28px, we should only display the user count
|
|
41
41
|
return 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { captureException } from '@atlaskit/linking-common/sentry';
|
|
2
2
|
import { type DatasourceOperationFailedAttributesType } from '../analytics/generated/analytics.types';
|
|
3
|
-
type Tail<T extends any[]> = T extends [infer
|
|
3
|
+
type Tail<T extends any[]> = T extends [infer _A, ...infer R] ? R : never;
|
|
4
4
|
/**
|
|
5
5
|
* This function is just a wrapper around captureException that checks if the enable-sentry-client FF is enabled
|
|
6
6
|
* and error is instanceof Error. We have to override the type of error from captureException to unknown so we use
|
|
@@ -21,5 +21,5 @@ export declare const selectInAModalStyleFixProps: {
|
|
|
21
21
|
};
|
|
22
22
|
menuPortalTarget: HTMLElement;
|
|
23
23
|
};
|
|
24
|
-
export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, initialObjectSchemas, classNamePrefix, testId, }: AssetsObjectSchemaSelectProps) => JSX.Element;
|
|
24
|
+
export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, initialObjectSchemas, classNamePrefix: _classNamePrefix, testId, }: AssetsObjectSchemaSelectProps) => JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type DatasourceParameters } from '@atlaskit/linking-types';
|
|
3
|
-
export type InsertButtonProps<
|
|
3
|
+
export type InsertButtonProps<_Parameters extends DatasourceParameters> = PropsWithChildren<{
|
|
4
4
|
getAnalyticsPayload: () => Record<string, any>;
|
|
5
5
|
testId?: string;
|
|
6
6
|
url: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { captureException } from '@atlaskit/linking-common/sentry';
|
|
2
2
|
import { type DatasourceOperationFailedAttributesType } from '../analytics/generated/analytics.types';
|
|
3
3
|
type Tail<T extends any[]> = T extends [
|
|
4
|
-
infer
|
|
4
|
+
infer _A,
|
|
5
5
|
...infer R
|
|
6
6
|
] ? R : never;
|
|
7
7
|
/**
|
|
@@ -21,5 +21,5 @@ export declare const selectInAModalStyleFixProps: {
|
|
|
21
21
|
};
|
|
22
22
|
menuPortalTarget: HTMLElement;
|
|
23
23
|
};
|
|
24
|
-
export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, initialObjectSchemas, classNamePrefix, testId, }: AssetsObjectSchemaSelectProps) => JSX.Element;
|
|
24
|
+
export declare const AssetsObjectSchemaSelect: ({ value, workspaceId, initialObjectSchemas, classNamePrefix: _classNamePrefix, testId, }: AssetsObjectSchemaSelectProps) => JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type DatasourceParameters } from '@atlaskit/linking-types';
|
|
3
|
-
export type InsertButtonProps<
|
|
3
|
+
export type InsertButtonProps<_Parameters extends DatasourceParameters> = PropsWithChildren<{
|
|
4
4
|
getAnalyticsPayload: () => Record<string, any>;
|
|
5
5
|
testId?: string;
|
|
6
6
|
url: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.30.
|
|
3
|
+
"version": "4.30.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^51.
|
|
39
|
+
"@atlaskit/adf-schema": "^51.4.0",
|
|
40
40
|
"@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.7.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
62
62
|
"@atlaskit/jql-editor": "^5.8.0",
|
|
63
63
|
"@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
|
|
64
|
-
"@atlaskit/layering": "^3.
|
|
64
|
+
"@atlaskit/layering": "^3.4.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
67
67
|
"@atlaskit/linking-common": "^9.8.0",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^16.1.0",
|
|
80
80
|
"@atlaskit/react-select": "^3.9.0",
|
|
81
81
|
"@atlaskit/select": "^21.4.0",
|
|
82
|
-
"@atlaskit/smart-card": "^43.
|
|
82
|
+
"@atlaskit/smart-card": "^43.7.0",
|
|
83
83
|
"@atlaskit/smart-user-picker": "^8.4.0",
|
|
84
84
|
"@atlaskit/spinner": "^19.0.0",
|
|
85
85
|
"@atlaskit/tag": "^14.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^8.1.0",
|
|
87
87
|
"@atlaskit/theme": "^21.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^8.0.0",
|
|
89
|
-
"@atlaskit/tooltip": "^20.
|
|
89
|
+
"@atlaskit/tooltip": "^20.9.0",
|
|
90
90
|
"@atlaskit/ufo": "^0.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^5.0.0",
|
|
92
92
|
"@babel/runtime": "^7.0.0",
|