@atlaskit/link-datasource 4.30.0 → 4.30.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.30.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c60de47015108`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60de47015108) -
8
+ Fix types for editor related dependencies
9
+ - Updated dependencies
10
+
3
11
  ## 4.30.0
4
12
 
5
13
  ### Minor Changes
@@ -93,7 +93,7 @@ var useLoadOptions = exports.useLoadOptions = function useLoadOptions(_ref2) {
93
93
  hasFailed: false
94
94
  });
95
95
  }
96
- }).catch(function (err) {
96
+ }).catch(function (_err) {
97
97
  showErrorFlag();
98
98
  dispatch({
99
99
  isLoading: false,
@@ -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 (e, analyticsEvent) {
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
- classNamePrefix = _ref2$classNamePrefix === void 0 ? 'assets-datasource-modal--object-schema-select' : _ref2$classNamePrefix,
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 (e, analyticsEvent) {
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(userCount, availableWidth) {
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;
@@ -55,7 +55,7 @@ export const useLoadOptions = ({
55
55
  hasFailed: false
56
56
  });
57
57
  }
58
- }).catch(err => {
58
+ }).catch(_err => {
59
59
  showErrorFlag();
60
60
  dispatch({
61
61
  isLoading: false,
@@ -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((e, analyticsEvent) => {
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((e, analyticsEvent) => {
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 = (userCount, availableWidth) => {
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;
@@ -86,7 +86,7 @@ export var useLoadOptions = function useLoadOptions(_ref2) {
86
86
  hasFailed: false
87
87
  });
88
88
  }
89
- }).catch(function (err) {
89
+ }).catch(function (_err) {
90
90
  showErrorFlag();
91
91
  dispatch({
92
92
  isLoading: false,
@@ -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 (e, analyticsEvent) {
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
- classNamePrefix = _ref2$classNamePrefix === void 0 ? 'assets-datasource-modal--object-schema-select' : _ref2$classNamePrefix,
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 (e, analyticsEvent) {
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(userCount, availableWidth) {
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 A, ...infer R] ? R : never;
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<Parameters extends DatasourceParameters> = PropsWithChildren<{
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 A,
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<Parameters extends DatasourceParameters> = PropsWithChildren<{
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.0",
3
+ "version": "4.30.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -79,7 +79,7 @@
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.6.0",
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",