@atlaskit/analytics-namespaced-context 6.8.0 → 6.9.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 +12 -0
- package/dist/cjs/AIMateAnalyticsContext.js +10 -0
- package/dist/cjs/index.js +14 -1
- package/dist/es2019/AIMateAnalyticsContext.js +3 -0
- package/dist/es2019/index.js +2 -1
- package/dist/esm/AIMateAnalyticsContext.js +3 -0
- package/dist/esm/index.js +2 -1
- package/dist/types/AIMateAnalyticsContext.d.ts +4 -0
- package/dist/types/AtlasAnalyticsContext.d.ts +2 -2
- package/dist/types/FabricEditorAnalyticsContext.d.ts +2 -2
- package/dist/types/FabricElementsAnalyticsContext.d.ts +2 -2
- package/dist/types/LinkingPlatformAnalyticsContext.d.ts +2 -2
- package/dist/types/NavigationAnalyticsContext.d.ts +2 -2
- package/dist/types/NotificationsAnalyticsContext.d.ts +2 -2
- package/dist/types/PeopleTeamsAnalyticsContext.d.ts +2 -2
- package/dist/types/PostOfficeAnalyticsContext.d.ts +2 -2
- package/dist/types/RecentWorkAnalyticsContext.d.ts +2 -2
- package/dist/types/helper/createNamespaceContext.d.ts +5 -4
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/AIMateAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.5/AtlasAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/FabricEditorAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/FabricElementsAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/LinkingPlatformAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/NavigationAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/NotificationsAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/PeopleTeamsAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/PostOfficeAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/RecentWorkAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/helper/createNamespaceContext.d.ts +5 -4
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/analytics-namespaced-context
|
|
2
2
|
|
|
3
|
+
## 6.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
|
|
8
|
+
|
|
9
|
+
## 6.9.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#66015](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66015) [`fc1f1eafbc0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc1f1eafbc0d) - Add AI Mate analytics listener and namespaced context
|
|
14
|
+
|
|
3
15
|
## 6.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AI_MATE_CONTEXT = exports.AIMateAnalyticsContext = void 0;
|
|
8
|
+
var _createNamespaceContext = _interopRequireDefault(require("./helper/createNamespaceContext"));
|
|
9
|
+
var AI_MATE_CONTEXT = exports.AI_MATE_CONTEXT = 'aiMateCtx';
|
|
10
|
+
var AIMateAnalyticsContext = exports.AIMateAnalyticsContext = (0, _createNamespaceContext.default)(AI_MATE_CONTEXT, 'AIMateAnalyticsContext');
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "AIMateAnalyticsContext", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _AIMateAnalyticsContext.AIMateAnalyticsContext;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AI_MATE_CONTEXT", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _AIMateAnalyticsContext.AI_MATE_CONTEXT;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
6
18
|
Object.defineProperty(exports, "ATLAS_CONTEXT", {
|
|
7
19
|
enumerable: true,
|
|
8
20
|
get: function get() {
|
|
@@ -132,4 +144,5 @@ var _NotificationsAnalyticsContext = require("./NotificationsAnalyticsContext");
|
|
|
132
144
|
var _RecentWorkAnalyticsContext = require("./RecentWorkAnalyticsContext");
|
|
133
145
|
var _AtlasAnalyticsContext = require("./AtlasAnalyticsContext");
|
|
134
146
|
var _LinkingPlatformAnalyticsContext = require("./LinkingPlatformAnalyticsContext");
|
|
135
|
-
var _PostOfficeAnalyticsContext = require("./PostOfficeAnalyticsContext");
|
|
147
|
+
var _PostOfficeAnalyticsContext = require("./PostOfficeAnalyticsContext");
|
|
148
|
+
var _AIMateAnalyticsContext = require("./AIMateAnalyticsContext");
|
package/dist/es2019/index.js
CHANGED
|
@@ -7,4 +7,5 @@ export { NOTIFICATIONS_CONTEXT, NotificationsAnalyticsContext } from './Notifica
|
|
|
7
7
|
export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext } from './RecentWorkAnalyticsContext';
|
|
8
8
|
export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
|
|
9
9
|
export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './LinkingPlatformAnalyticsContext';
|
|
10
|
-
export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
|
|
10
|
+
export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
|
|
11
|
+
export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
|
package/dist/esm/index.js
CHANGED
|
@@ -7,4 +7,5 @@ export { NOTIFICATIONS_CONTEXT, NotificationsAnalyticsContext } from './Notifica
|
|
|
7
7
|
export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext } from './RecentWorkAnalyticsContext';
|
|
8
8
|
export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
|
|
9
9
|
export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './LinkingPlatformAnalyticsContext';
|
|
10
|
-
export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
|
|
10
|
+
export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
|
|
11
|
+
export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const ATLAS_CONTEXT = "atlasCtx";
|
|
4
|
-
export declare const AtlasAnalyticsContext:
|
|
4
|
+
export declare const AtlasAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const EDITOR_CONTEXT = "fabricEditorCtx";
|
|
4
4
|
export declare enum EDITOR_APPEARANCE_CONTEXT {
|
|
@@ -17,5 +17,5 @@ type FabricEditorAnalyticsContextProps = Props & {
|
|
|
17
17
|
editorSessionId: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export declare const FabricEditorAnalyticsContext:
|
|
20
|
+
export declare const FabricEditorAnalyticsContext: FunctionComponent<FabricEditorAnalyticsContextProps>;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const ELEMENTS_CONTEXT = "fabricElementsCtx";
|
|
4
|
-
export declare const FabricElementsAnalyticsContext:
|
|
4
|
+
export declare const FabricElementsAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const LINKING_PLATFORM_CONTEXT = "linkingPlatformCtx";
|
|
4
|
-
export declare const LinkingPlatformAnalyticsContext:
|
|
4
|
+
export declare const LinkingPlatformAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const NAVIGATION_CONTEXT = "navigationCtx";
|
|
4
|
-
export declare const NavigationAnalyticsContext:
|
|
4
|
+
export declare const NavigationAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const NOTIFICATIONS_CONTEXT = "NotificationsCtx";
|
|
4
|
-
export declare const NotificationsAnalyticsContext:
|
|
4
|
+
export declare const NotificationsAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const PEOPLE_TEAMS_CONTEXT = "peopleTeamsCtx";
|
|
4
|
-
export declare const PeopleTeamsAnalyticsContext:
|
|
4
|
+
export declare const PeopleTeamsAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const POST_OFFICE_CONTEXT = "postOfficeCtx";
|
|
4
|
-
export declare const PostOfficeAnalyticsContext:
|
|
4
|
+
export declare const PostOfficeAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const RECENT_WORK_CONTEXT = "RecentWorkCtx";
|
|
4
|
-
export declare const RecentWorkAnalyticsContext:
|
|
4
|
+
export declare const RecentWorkAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export type Props = {
|
|
4
|
-
children?: ReactNode;
|
|
2
|
+
export type Props = React.PropsWithChildren<{
|
|
5
3
|
data: {};
|
|
4
|
+
}>;
|
|
5
|
+
declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => {
|
|
6
|
+
(props: T): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
6
8
|
};
|
|
7
|
-
declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => React.StatelessComponent<T>;
|
|
8
9
|
export default createNamespaceContext;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext, } from './RecentWorkAn
|
|
|
8
8
|
export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
|
|
9
9
|
export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext, } from './LinkingPlatformAnalyticsContext';
|
|
10
10
|
export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext, } from './PostOfficeAnalyticsContext';
|
|
11
|
+
export { AI_MATE_CONTEXT, AIMateAnalyticsContext, } from './AIMateAnalyticsContext';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const ATLAS_CONTEXT = "atlasCtx";
|
|
4
|
-
export declare const AtlasAnalyticsContext:
|
|
4
|
+
export declare const AtlasAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const EDITOR_CONTEXT = "fabricEditorCtx";
|
|
4
4
|
export declare enum EDITOR_APPEARANCE_CONTEXT {
|
|
@@ -17,5 +17,5 @@ type FabricEditorAnalyticsContextProps = Props & {
|
|
|
17
17
|
editorSessionId: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export declare const FabricEditorAnalyticsContext:
|
|
20
|
+
export declare const FabricEditorAnalyticsContext: FunctionComponent<FabricEditorAnalyticsContextProps>;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const ELEMENTS_CONTEXT = "fabricElementsCtx";
|
|
4
|
-
export declare const FabricElementsAnalyticsContext:
|
|
4
|
+
export declare const FabricElementsAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const LINKING_PLATFORM_CONTEXT = "linkingPlatformCtx";
|
|
4
|
-
export declare const LinkingPlatformAnalyticsContext:
|
|
4
|
+
export declare const LinkingPlatformAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const NAVIGATION_CONTEXT = "navigationCtx";
|
|
4
|
-
export declare const NavigationAnalyticsContext:
|
|
4
|
+
export declare const NavigationAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const NOTIFICATIONS_CONTEXT = "NotificationsCtx";
|
|
4
|
-
export declare const NotificationsAnalyticsContext:
|
|
4
|
+
export declare const NotificationsAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const PEOPLE_TEAMS_CONTEXT = "peopleTeamsCtx";
|
|
4
|
-
export declare const PeopleTeamsAnalyticsContext:
|
|
4
|
+
export declare const PeopleTeamsAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const POST_OFFICE_CONTEXT = "postOfficeCtx";
|
|
4
|
-
export declare const PostOfficeAnalyticsContext:
|
|
4
|
+
export declare const PostOfficeAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Props } from './helper/createNamespaceContext';
|
|
3
3
|
export declare const RECENT_WORK_CONTEXT = "RecentWorkCtx";
|
|
4
|
-
export declare const RecentWorkAnalyticsContext:
|
|
4
|
+
export declare const RecentWorkAnalyticsContext: FunctionComponent<Props>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export type Props = {
|
|
4
|
-
children?: ReactNode;
|
|
2
|
+
export type Props = React.PropsWithChildren<{
|
|
5
3
|
data: {};
|
|
4
|
+
}>;
|
|
5
|
+
declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => {
|
|
6
|
+
(props: T): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
6
8
|
};
|
|
7
|
-
declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => React.StatelessComponent<T>;
|
|
8
9
|
export default createNamespaceContext;
|
|
@@ -8,3 +8,4 @@ export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext, } from './RecentWorkAn
|
|
|
8
8
|
export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
|
|
9
9
|
export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext, } from './LinkingPlatformAnalyticsContext';
|
|
10
10
|
export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext, } from './PostOfficeAnalyticsContext';
|
|
11
|
+
export { AI_MATE_CONTEXT, AIMateAnalyticsContext, } from './AIMateAnalyticsContext';
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/analytics-namespaced-context",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.1",
|
|
4
4
|
"description": "Provides a namespace for AnalyticsContext data (@atlaskit/analytics-next)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
9
|
"author": "Atlassian Pty Ltd",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@atlaskit/analytics-next": "^9.
|
|
45
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|