@atlaskit/link-datasource 1.19.32 → 1.19.34
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 +12 -0
- package/dist/cjs/analytics/constants.js +11 -4
- package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/es2019/analytics/constants.js +10 -3
- package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +2 -2
- package/dist/es2019/ui/assets-modal/modal/index.js +2 -2
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +2 -2
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +2 -2
- package/dist/esm/analytics/constants.js +10 -3
- package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +2 -2
- package/dist/esm/ui/assets-modal/modal/index.js +2 -2
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +2 -2
- package/dist/esm/ui/jira-issues-modal/modal/index.js +2 -2
- package/dist/types/analytics/constants.d.ts +11 -2
- package/dist/types/analytics/generated/analytics.types.d.ts +3 -4
- package/dist/types-ts4.5/analytics/constants.d.ts +11 -2
- package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +3 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.19.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#62410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62410) [`57566ae14827`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57566ae14827) - Added a global analytics context that adds `component` to context of all analytic events to generate `componentHierarchy` attribute.
|
|
8
|
+
|
|
9
|
+
## 1.19.33
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.19.32
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -3,9 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.componentMetadata = exports.EVENT_CHANNEL = void 0;
|
|
7
7
|
var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'media';
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var componentMetadata = exports.componentMetadata = {
|
|
9
|
+
tableView: {
|
|
10
|
+
component: 'datasourceTable'
|
|
11
|
+
},
|
|
12
|
+
configModal: {
|
|
13
|
+
component: 'datasourceConfigModal'
|
|
14
|
+
},
|
|
15
|
+
generic: {
|
|
16
|
+
component: 'datasource'
|
|
17
|
+
}
|
|
11
18
|
};
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
9
9
|
var _constants = require("../../constants");
|
|
10
10
|
var _index = require("../../index");
|
|
11
|
-
var DatasourceRenderFailedAnalyticsWrapper = (0, _analyticsNext.withAnalyticsContext)(_constants.
|
|
11
|
+
var DatasourceRenderFailedAnalyticsWrapper = (0, _analyticsNext.withAnalyticsContext)(_constants.componentMetadata.generic)(function (props) {
|
|
12
12
|
var _useDatasourceAnalyti = (0, _index.useDatasourceAnalyticsEvents)(),
|
|
13
13
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
14
14
|
(0, _react.useEffect)(function () {
|
|
@@ -380,7 +380,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
380
380
|
var analyticsContextAttributes = {
|
|
381
381
|
dataProvider: 'jsm-assets'
|
|
382
382
|
};
|
|
383
|
-
var analyticsContextData = _objectSpread(_objectSpread({}, _constants.
|
|
383
|
+
var analyticsContextData = _objectSpread(_objectSpread({}, _constants.componentMetadata.configModal), {}, {
|
|
384
384
|
source: 'datasourceConfigModal'
|
|
385
385
|
});
|
|
386
386
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -162,4 +162,4 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
162
162
|
url: url
|
|
163
163
|
})));
|
|
164
164
|
};
|
|
165
|
-
var DatasourceTableView = exports.DatasourceTableView = (0, _analyticsNext.withAnalyticsContext)(_constants.
|
|
165
|
+
var DatasourceTableView = exports.DatasourceTableView = (0, _analyticsNext.withAnalyticsContext)(_constants.componentMetadata.tableView)(DatasourceTableViewWithoutAnalytics);
|
|
@@ -607,7 +607,7 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
|
|
|
607
607
|
var analyticsContextAttributes = {
|
|
608
608
|
dataProvider: 'jira-issues'
|
|
609
609
|
};
|
|
610
|
-
var analyticsContextData = _objectSpread(_objectSpread({}, _constants.
|
|
610
|
+
var analyticsContextData = _objectSpread(_objectSpread({}, _constants.componentMetadata.configModal), {}, {
|
|
611
611
|
source: 'datasourceConfigModal'
|
|
612
612
|
});
|
|
613
613
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export const EVENT_CHANNEL = 'media';
|
|
2
|
-
export const
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export const componentMetadata = {
|
|
3
|
+
tableView: {
|
|
4
|
+
component: 'datasourceTable'
|
|
5
|
+
},
|
|
6
|
+
configModal: {
|
|
7
|
+
component: 'datasourceConfigModal'
|
|
8
|
+
},
|
|
9
|
+
generic: {
|
|
10
|
+
component: 'datasource'
|
|
11
|
+
}
|
|
5
12
|
};
|
package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
|
-
import {
|
|
3
|
+
import { componentMetadata } from '../../constants';
|
|
4
4
|
import { useDatasourceAnalyticsEvents } from '../../index';
|
|
5
|
-
const DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(
|
|
5
|
+
const DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(componentMetadata.generic)(props => {
|
|
6
6
|
const {
|
|
7
7
|
fireEvent
|
|
8
8
|
} = useDatasourceAnalyticsEvents();
|
|
@@ -9,7 +9,7 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
9
9
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
10
10
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
11
11
|
import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
12
|
-
import {
|
|
12
|
+
import { componentMetadata } from '../../../analytics/constants';
|
|
13
13
|
import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
|
|
14
14
|
import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
15
15
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
@@ -356,7 +356,7 @@ const analyticsContextAttributes = {
|
|
|
356
356
|
dataProvider: 'jsm-assets'
|
|
357
357
|
};
|
|
358
358
|
const analyticsContextData = {
|
|
359
|
-
...
|
|
359
|
+
...componentMetadata.configModal,
|
|
360
360
|
source: 'datasourceConfigModal'
|
|
361
361
|
};
|
|
362
362
|
const contextData = {
|
|
@@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
5
5
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
6
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
7
7
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
8
|
-
import {
|
|
8
|
+
import { componentMetadata } from '../../analytics/constants';
|
|
9
9
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
10
10
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
11
11
|
import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
@@ -157,4 +157,4 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
157
157
|
url: url
|
|
158
158
|
})));
|
|
159
159
|
};
|
|
160
|
-
export const DatasourceTableView = withAnalyticsContext(
|
|
160
|
+
export const DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(DatasourceTableViewWithoutAnalytics);
|
|
@@ -12,7 +12,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
12
12
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
13
13
|
import { B400, N0, N40, N800 } from '@atlaskit/theme/colors';
|
|
14
14
|
import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
15
|
-
import {
|
|
15
|
+
import { componentMetadata } from '../../../analytics/constants';
|
|
16
16
|
import { DatasourceAction, DatasourceDisplay } from '../../../analytics/types';
|
|
17
17
|
import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
18
18
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
@@ -556,7 +556,7 @@ const analyticsContextAttributes = {
|
|
|
556
556
|
dataProvider: 'jira-issues'
|
|
557
557
|
};
|
|
558
558
|
const analyticsContextData = {
|
|
559
|
-
...
|
|
559
|
+
...componentMetadata.configModal,
|
|
560
560
|
source: 'datasourceConfigModal'
|
|
561
561
|
};
|
|
562
562
|
const contextData = {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export var EVENT_CHANNEL = 'media';
|
|
2
|
-
export var
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export var componentMetadata = {
|
|
3
|
+
tableView: {
|
|
4
|
+
component: 'datasourceTable'
|
|
5
|
+
},
|
|
6
|
+
configModal: {
|
|
7
|
+
component: 'datasourceConfigModal'
|
|
8
|
+
},
|
|
9
|
+
generic: {
|
|
10
|
+
component: 'datasource'
|
|
11
|
+
}
|
|
5
12
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
|
-
import {
|
|
3
|
+
import { componentMetadata } from '../../constants';
|
|
4
4
|
import { useDatasourceAnalyticsEvents } from '../../index';
|
|
5
|
-
var DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(
|
|
5
|
+
var DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(componentMetadata.generic)(function (props) {
|
|
6
6
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
7
7
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
8
8
|
useEffect(function () {
|
|
@@ -13,7 +13,7 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
13
13
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
14
14
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
15
15
|
import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
16
|
-
import {
|
|
16
|
+
import { componentMetadata } from '../../../analytics/constants';
|
|
17
17
|
import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
|
|
18
18
|
import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
19
19
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
@@ -371,7 +371,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
371
371
|
var analyticsContextAttributes = {
|
|
372
372
|
dataProvider: 'jsm-assets'
|
|
373
373
|
};
|
|
374
|
-
var analyticsContextData = _objectSpread(_objectSpread({},
|
|
374
|
+
var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.configModal), {}, {
|
|
375
375
|
source: 'datasourceConfigModal'
|
|
376
376
|
});
|
|
377
377
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
5
5
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
6
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
7
7
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
8
|
-
import {
|
|
8
|
+
import { componentMetadata } from '../../analytics/constants';
|
|
9
9
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
10
10
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
11
11
|
import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
@@ -154,4 +154,4 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
154
154
|
url: url
|
|
155
155
|
})));
|
|
156
156
|
};
|
|
157
|
-
export var DatasourceTableView = withAnalyticsContext(
|
|
157
|
+
export var DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(DatasourceTableViewWithoutAnalytics);
|
|
@@ -19,7 +19,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
19
19
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
20
20
|
import { B400, N0, N40, N800 } from '@atlaskit/theme/colors';
|
|
21
21
|
import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
22
|
-
import {
|
|
22
|
+
import { componentMetadata } from '../../../analytics/constants';
|
|
23
23
|
import { DatasourceAction, DatasourceDisplay } from '../../../analytics/types';
|
|
24
24
|
import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
25
25
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
@@ -598,7 +598,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
598
598
|
var analyticsContextAttributes = {
|
|
599
599
|
dataProvider: 'jira-issues'
|
|
600
600
|
};
|
|
601
|
-
var analyticsContextData = _objectSpread(_objectSpread({},
|
|
601
|
+
var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.configModal), {}, {
|
|
602
602
|
source: 'datasourceConfigModal'
|
|
603
603
|
});
|
|
604
604
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { PackageMetaDataType } from './generated/analytics.types';
|
|
2
1
|
export declare const EVENT_CHANNEL = "media";
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const componentMetadata: {
|
|
3
|
+
tableView: {
|
|
4
|
+
component: string;
|
|
5
|
+
};
|
|
6
|
+
configModal: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
generic: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c9cb39dfcf360ccc71b740ba1353dc6b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
packageVersion: string;
|
|
9
|
+
export type ComponentMetaDataType = {
|
|
10
|
+
component: string;
|
|
12
11
|
};
|
|
13
12
|
export type AnalyticsContextType = {
|
|
14
13
|
source: 'datasourceConfigModal';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { PackageMetaDataType } from './generated/analytics.types';
|
|
2
1
|
export declare const EVENT_CHANNEL = "media";
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const componentMetadata: {
|
|
3
|
+
tableView: {
|
|
4
|
+
component: string;
|
|
5
|
+
};
|
|
6
|
+
configModal: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
generic: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c9cb39dfcf360ccc71b740ba1353dc6b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
packageVersion: string;
|
|
9
|
+
export type ComponentMetaDataType = {
|
|
10
|
+
component: string;
|
|
12
11
|
};
|
|
13
12
|
export type AnalyticsContextType = {
|
|
14
13
|
source: 'datasourceConfigModal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.34",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop": "^0.25.0",
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^0.12.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
57
|
-
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.
|
|
57
|
+
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.18.0",
|
|
58
58
|
"@atlaskit/primitives": "^1.15.0",
|
|
59
59
|
"@atlaskit/select": "^17.0.3",
|
|
60
60
|
"@atlaskit/smart-card": "^26.43.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@atlaskit/tag": "^12.0.0",
|
|
63
63
|
"@atlaskit/textfield": "6.0.0",
|
|
64
64
|
"@atlaskit/theme": "^12.6.0",
|
|
65
|
-
"@atlaskit/tokens": "^1.
|
|
66
|
-
"@atlaskit/tooltip": "^18.
|
|
65
|
+
"@atlaskit/tokens": "^1.31.0",
|
|
66
|
+
"@atlaskit/tooltip": "^18.1.0",
|
|
67
67
|
"@atlaskit/ufo": "^0.2.4",
|
|
68
68
|
"@atlassianlabs/jql-editor": "^2.0.1",
|
|
69
69
|
"@babel/runtime": "^7.0.0",
|