@atlaskit/analytics-namespaced-context 6.5.1 → 6.6.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.
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/AtlasAnalyticsContext.js",
4
4
  "module": "../dist/esm/AtlasAnalyticsContext.js",
5
5
  "module:es2019": "../dist/es2019/AtlasAnalyticsContext.js",
6
- "types": "../dist/types/AtlasAnalyticsContext.d.ts"
6
+ "types": "../dist/types/AtlasAnalyticsContext.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/AtlasAnalyticsContext.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/analytics-namespaced-context
2
2
 
3
+ ## 6.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f07e3c52271`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f07e3c52271) - Added linkingPlatform namespaced context
8
+
9
+ ## 6.5.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
14
+
3
15
  ## 6.5.1
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@atlaskit/analytics-namespaced-context/LinkingPlatformAnalyticsContext",
3
+ "main": "../dist/cjs/LinkingPlatformAnalyticsContext.js",
4
+ "module": "../dist/esm/LinkingPlatformAnalyticsContext.js",
5
+ "module:es2019": "../dist/es2019/LinkingPlatformAnalyticsContext.js",
6
+ "types": "../dist/types/LinkingPlatformAnalyticsContext.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/LinkingPlatformAnalyticsContext.d.ts"
11
+ ]
12
+ }
13
+ }
14
+ }
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/MediaAnalyticsContext.js",
4
4
  "module": "../dist/esm/MediaAnalyticsContext.js",
5
5
  "module:es2019": "../dist/es2019/MediaAnalyticsContext.js",
6
- "types": "../dist/types/MediaAnalyticsContext.d.ts"
6
+ "types": "../dist/types/MediaAnalyticsContext.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/MediaAnalyticsContext.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/NavigationAnalyticsContext.js",
4
4
  "module": "../dist/esm/NavigationAnalyticsContext.js",
5
5
  "module:es2019": "../dist/es2019/NavigationAnalyticsContext.js",
6
- "types": "../dist/types/NavigationAnalyticsContext.d.ts"
6
+ "types": "../dist/types/NavigationAnalyticsContext.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/NavigationAnalyticsContext.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/PeopleTeamsAnalyticsContext.js",
4
4
  "module": "../dist/esm/PeopleTeamsAnalyticsContext.js",
5
5
  "module:es2019": "../dist/es2019/PeopleTeamsAnalyticsContext.js",
6
- "types": "../dist/types/PeopleTeamsAnalyticsContext.d.ts"
6
+ "types": "../dist/types/PeopleTeamsAnalyticsContext.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/PeopleTeamsAnalyticsContext.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/RecentWorkAnalyticsContext.js",
4
4
  "module": "../dist/esm/RecentWorkAnalyticsContext.js",
5
5
  "module:es2019": "../dist/es2019/RecentWorkAnalyticsContext.js",
6
- "types": "../dist/types/RecentWorkAnalyticsContext.d.ts"
6
+ "types": "../dist/types/RecentWorkAnalyticsContext.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/RecentWorkAnalyticsContext.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.LinkingPlatformAnalyticsContext = exports.LINKING_PLATFORM_CONTEXT = void 0;
9
+
10
+ var _createNamespaceContext = _interopRequireDefault(require("./helper/createNamespaceContext"));
11
+
12
+ var LINKING_PLATFORM_CONTEXT = 'linkingPlatformCtx';
13
+ exports.LINKING_PLATFORM_CONTEXT = LINKING_PLATFORM_CONTEXT;
14
+ var LinkingPlatformAnalyticsContext = (0, _createNamespaceContext.default)(LINKING_PLATFORM_CONTEXT, 'LinkingPlatformAnalyticsContext');
15
+ exports.LinkingPlatformAnalyticsContext = LinkingPlatformAnalyticsContext;
package/dist/cjs/index.js CHANGED
@@ -45,6 +45,18 @@ Object.defineProperty(exports, "FabricElementsAnalyticsContext", {
45
45
  return _FabricElementsAnalyticsContext.FabricElementsAnalyticsContext;
46
46
  }
47
47
  });
48
+ Object.defineProperty(exports, "LINKING_PLATFORM_CONTEXT", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _LinkingPlatformAnalyticsContext.LINKING_PLATFORM_CONTEXT;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "LinkingPlatformAnalyticsContext", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _LinkingPlatformAnalyticsContext.LinkingPlatformAnalyticsContext;
58
+ }
59
+ });
48
60
  Object.defineProperty(exports, "MEDIA_CONTEXT", {
49
61
  enumerable: true,
50
62
  get: function get() {
@@ -114,4 +126,6 @@ var _NotificationsAnalyticsContext = require("./NotificationsAnalyticsContext");
114
126
 
115
127
  var _RecentWorkAnalyticsContext = require("./RecentWorkAnalyticsContext");
116
128
 
117
- var _AtlasAnalyticsContext = require("./AtlasAnalyticsContext");
129
+ var _AtlasAnalyticsContext = require("./AtlasAnalyticsContext");
130
+
131
+ var _LinkingPlatformAnalyticsContext = require("./LinkingPlatformAnalyticsContext");
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1"
3
+ "version": "6.6.0"
4
4
  }
@@ -0,0 +1,3 @@
1
+ import createNamespaceContext from './helper/createNamespaceContext';
2
+ export const LINKING_PLATFORM_CONTEXT = 'linkingPlatformCtx';
3
+ export const LinkingPlatformAnalyticsContext = createNamespaceContext(LINKING_PLATFORM_CONTEXT, 'LinkingPlatformAnalyticsContext');
@@ -5,4 +5,5 @@ export { MEDIA_CONTEXT } from './MediaAnalyticsContext';
5
5
  export { PEOPLE_TEAMS_CONTEXT, PeopleTeamsAnalyticsContext } from './PeopleTeamsAnalyticsContext';
6
6
  export { NOTIFICATIONS_CONTEXT, NotificationsAnalyticsContext } from './NotificationsAnalyticsContext';
7
7
  export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext } from './RecentWorkAnalyticsContext';
8
- export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
8
+ export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
9
+ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './LinkingPlatformAnalyticsContext';
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1"
3
+ "version": "6.6.0"
4
4
  }
@@ -0,0 +1,3 @@
1
+ import createNamespaceContext from './helper/createNamespaceContext';
2
+ export var LINKING_PLATFORM_CONTEXT = 'linkingPlatformCtx';
3
+ export var LinkingPlatformAnalyticsContext = createNamespaceContext(LINKING_PLATFORM_CONTEXT, 'LinkingPlatformAnalyticsContext');
package/dist/esm/index.js CHANGED
@@ -5,4 +5,5 @@ export { MEDIA_CONTEXT } from './MediaAnalyticsContext';
5
5
  export { PEOPLE_TEAMS_CONTEXT, PeopleTeamsAnalyticsContext } from './PeopleTeamsAnalyticsContext';
6
6
  export { NOTIFICATIONS_CONTEXT, NotificationsAnalyticsContext } from './NotificationsAnalyticsContext';
7
7
  export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext } from './RecentWorkAnalyticsContext';
8
- export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
8
+ export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
9
+ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './LinkingPlatformAnalyticsContext';
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1"
3
+ "version": "6.6.0"
4
4
  }
@@ -0,0 +1,4 @@
1
+ import { StatelessComponent } from 'react';
2
+ import { Props } from './helper/createNamespaceContext';
3
+ export declare const LINKING_PLATFORM_CONTEXT = "linkingPlatformCtx";
4
+ export declare const LinkingPlatformAnalyticsContext: StatelessComponent<Props>;
@@ -6,3 +6,4 @@ export { PEOPLE_TEAMS_CONTEXT, PeopleTeamsAnalyticsContext, } from './PeopleTeam
6
6
  export { NOTIFICATIONS_CONTEXT, NotificationsAnalyticsContext, } from './NotificationsAnalyticsContext';
7
7
  export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext, } from './RecentWorkAnalyticsContext';
8
8
  export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
9
+ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext, } from './LinkingPlatformAnalyticsContext';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1",
3
+ "version": "6.6.0",
4
4
  "description": "Provides a namespace for AnalyticsContext data (@atlaskit/analytics-next)",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,6 +19,7 @@
19
19
  "./PeopleTeamsAnalyticsContext": "./src/PeopleTeamsAnalyticsContext.tsx",
20
20
  "./RecentWorkAnalyticsContext": "./src/RecentWorkAnalyticsContext.tsx",
21
21
  "./AtlasAnalyticsContext": "./src/AtlasAnalyticsContext.tsx",
22
+ "./LinkingPlatformAnalyticsContext": "./src/LinkingPlatformAnalyticsContext.tsx",
22
23
  ".": "./src/index.ts"
23
24
  },
24
25
  "atlassian": {
@@ -36,13 +37,13 @@
36
37
  "react": "^16.8.0"
37
38
  },
38
39
  "devDependencies": {
39
- "@atlaskit/analytics-listeners": "^8.3.0",
40
+ "@atlaskit/analytics-listeners": "^8.4.0",
40
41
  "@atlaskit/docs": "*",
41
42
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
42
43
  "enzyme": "^3.10.0",
43
44
  "enzyme-adapter-react-16": "^1.15.1",
44
45
  "react": "^16.8.0",
45
- "typescript": "4.3.5"
46
+ "typescript": "4.5.5"
46
47
  },
47
48
  "keywords": [
48
49
  "fabric",
package/report.api.md CHANGED
@@ -1,65 +1,118 @@
1
- ## API Report File for "@atlaskit/analytics-namespaced-context".
1
+ <!-- API Report Version: 2.3 -->
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ ## API Report File for "@atlaskit/analytics-namespaced-context"
4
4
 
5
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
12
+
13
+ ### Main Entry Types
14
+
15
+ <!--SECTION START: Main Entry Types-->
6
16
 
7
17
  ```ts
8
18
  import { ReactNode } from 'react';
9
19
  import { StatelessComponent } from 'react';
10
20
 
11
- export declare const ATLAS_CONTEXT = 'atlasCtx';
21
+ // @public (undocumented)
22
+ export const ATLAS_CONTEXT = 'atlasCtx';
12
23
 
13
- export declare const AtlasAnalyticsContext: StatelessComponent<Props>;
24
+ // @public (undocumented)
25
+ export const AtlasAnalyticsContext: StatelessComponent<Props>;
14
26
 
15
- export declare enum EDITOR_APPEARANCE_CONTEXT {
27
+ // @public (undocumented)
28
+ export enum EDITOR_APPEARANCE_CONTEXT {
29
+ // (undocumented)
30
+ CHROMELESS = 'chromeless',
31
+ // (undocumented)
32
+ COMMENT = 'comment',
33
+ // (undocumented)
16
34
  FIXED_WIDTH = 'fixedWidth',
35
+ // (undocumented)
17
36
  FULL_WIDTH = 'fullWidth',
18
- COMMENT = 'comment',
19
- CHROMELESS = 'chromeless',
37
+ // (undocumented)
20
38
  MOBILE = 'mobile',
21
39
  }
22
40
 
23
- export declare const EDITOR_CONTEXT = 'fabricEditorCtx';
41
+ // @public (undocumented)
42
+ export const EDITOR_CONTEXT = 'fabricEditorCtx';
24
43
 
25
- export declare const ELEMENTS_CONTEXT = 'fabricElementsCtx';
44
+ // @public (undocumented)
45
+ export const ELEMENTS_CONTEXT = 'fabricElementsCtx';
26
46
 
27
- export declare const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
47
+ // @public (undocumented)
48
+ export const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
28
49
 
29
- declare type FabricEditorAnalyticsContextProps = Props & {
50
+ // @public (undocumented)
51
+ type FabricEditorAnalyticsContextProps = Props & {
30
52
  data: {
31
53
  appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
32
54
  packageName: string;
33
55
  packageVersion: string;
34
- componentName: 'renderer' | 'editorCore';
56
+ componentName: 'editorCore' | 'renderer';
35
57
  editorSessionId: string;
36
58
  };
37
59
  };
38
60
 
39
- export declare const FabricElementsAnalyticsContext: StatelessComponent<Props>;
61
+ // @public (undocumented)
62
+ export const FabricElementsAnalyticsContext: StatelessComponent<Props>;
63
+
64
+ // @public (undocumented)
65
+ export const LINKING_PLATFORM_CONTEXT = 'linkingPlatformCtx';
40
66
 
41
- export declare const MEDIA_CONTEXT = 'mediaCtx';
67
+ // @public (undocumented)
68
+ export const LinkingPlatformAnalyticsContext: StatelessComponent<Props>;
42
69
 
43
- export declare const NAVIGATION_CONTEXT = 'navigationCtx';
70
+ // @public (undocumented)
71
+ export const MEDIA_CONTEXT = 'mediaCtx';
44
72
 
45
- export declare const NavigationAnalyticsContext: StatelessComponent<Props>;
73
+ // @public (undocumented)
74
+ export const NAVIGATION_CONTEXT = 'navigationCtx';
46
75
 
47
- export declare const NOTIFICATIONS_CONTEXT = 'NotificationsCtx';
76
+ // @public (undocumented)
77
+ export const NavigationAnalyticsContext: StatelessComponent<Props>;
48
78
 
49
- export declare const NotificationsAnalyticsContext: StatelessComponent<Props>;
79
+ // @public (undocumented)
80
+ export const NOTIFICATIONS_CONTEXT = 'NotificationsCtx';
50
81
 
51
- export declare const PEOPLE_TEAMS_CONTEXT = 'peopleTeamsCtx';
82
+ // @public (undocumented)
83
+ export const NotificationsAnalyticsContext: StatelessComponent<Props>;
52
84
 
53
- export declare const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
85
+ // @public (undocumented)
86
+ export const PEOPLE_TEAMS_CONTEXT = 'peopleTeamsCtx';
54
87
 
55
- declare type Props = {
88
+ // @public (undocumented)
89
+ export const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
90
+
91
+ // @public (undocumented)
92
+ type Props = {
56
93
  children?: ReactNode;
57
94
  data: {};
58
95
  };
59
96
 
60
- export declare const RECENT_WORK_CONTEXT = 'RecentWorkCtx';
97
+ // @public (undocumented)
98
+ export const RECENT_WORK_CONTEXT = 'RecentWorkCtx';
99
+
100
+ // @public (undocumented)
101
+ export const RecentWorkAnalyticsContext: StatelessComponent<Props>;
102
+
103
+ // (No @packageDocumentation comment for this package)
104
+ ```
105
+
106
+ <!--SECTION END: Main Entry Types-->
107
+
108
+ ### Peer Dependencies
61
109
 
62
- export declare const RecentWorkAnalyticsContext: StatelessComponent<Props>;
110
+ <!--SECTION START: Peer Dependencies-->
63
111
 
64
- export {};
112
+ ```json
113
+ {
114
+ "react": "^16.8.0"
115
+ }
65
116
  ```
117
+
118
+ <!--SECTION END: Peer Dependencies-->
@@ -0,0 +1,94 @@
1
+ ## API Report File for "@atlaskit/analytics-namespaced-context"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { ReactNode } from 'react';
8
+ import { StatelessComponent } from 'react';
9
+
10
+ // @public (undocumented)
11
+ export const ATLAS_CONTEXT = "atlasCtx";
12
+
13
+ // @public (undocumented)
14
+ export const AtlasAnalyticsContext: StatelessComponent<Props>;
15
+
16
+ // @public (undocumented)
17
+ export enum EDITOR_APPEARANCE_CONTEXT {
18
+ // (undocumented)
19
+ CHROMELESS = "chromeless",
20
+ // (undocumented)
21
+ COMMENT = "comment",
22
+ // (undocumented)
23
+ FIXED_WIDTH = "fixedWidth",
24
+ // (undocumented)
25
+ FULL_WIDTH = "fullWidth",
26
+ // (undocumented)
27
+ MOBILE = "mobile"
28
+ }
29
+
30
+ // @public (undocumented)
31
+ export const EDITOR_CONTEXT = "fabricEditorCtx";
32
+
33
+ // @public (undocumented)
34
+ export const ELEMENTS_CONTEXT = "fabricElementsCtx";
35
+
36
+ // @public (undocumented)
37
+ export const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
38
+
39
+ // @public (undocumented)
40
+ type FabricEditorAnalyticsContextProps = Props & {
41
+ data: {
42
+ appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
43
+ packageName: string;
44
+ packageVersion: string;
45
+ componentName: 'editorCore' | 'renderer';
46
+ editorSessionId: string;
47
+ };
48
+ };
49
+
50
+ // @public (undocumented)
51
+ export const FabricElementsAnalyticsContext: StatelessComponent<Props>;
52
+
53
+ // @public (undocumented)
54
+ export const LINKING_PLATFORM_CONTEXT = "linkingPlatformCtx";
55
+
56
+ // @public (undocumented)
57
+ export const LinkingPlatformAnalyticsContext: StatelessComponent<Props>;
58
+
59
+ // @public (undocumented)
60
+ export const MEDIA_CONTEXT = "mediaCtx";
61
+
62
+ // @public (undocumented)
63
+ export const NAVIGATION_CONTEXT = "navigationCtx";
64
+
65
+ // @public (undocumented)
66
+ export const NavigationAnalyticsContext: StatelessComponent<Props>;
67
+
68
+ // @public (undocumented)
69
+ export const NOTIFICATIONS_CONTEXT = "NotificationsCtx";
70
+
71
+ // @public (undocumented)
72
+ export const NotificationsAnalyticsContext: StatelessComponent<Props>;
73
+
74
+ // @public (undocumented)
75
+ export const PEOPLE_TEAMS_CONTEXT = "peopleTeamsCtx";
76
+
77
+ // @public (undocumented)
78
+ export const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
79
+
80
+ // @public (undocumented)
81
+ type Props = {
82
+ children?: ReactNode;
83
+ data: {};
84
+ };
85
+
86
+ // @public (undocumented)
87
+ export const RECENT_WORK_CONTEXT = "RecentWorkCtx";
88
+
89
+ // @public (undocumented)
90
+ export const RecentWorkAnalyticsContext: StatelessComponent<Props>;
91
+
92
+ // (No @packageDocumentation comment for this package)
93
+
94
+ ```