@atlaskit/analytics-namespaced-context 6.5.2 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 6.5.2
4
10
 
5
11
  ### 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
+ }
@@ -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.2"
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.2"
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.2"
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.2",
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/"
@@ -12,13 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*"
19
- ]
20
- }
21
- },
22
15
  "atlaskit:src": "src/index.ts",
23
16
  "af:exports": {
24
17
  "./MediaAnalyticsContext": "./src/MediaAnalyticsContext.tsx",
@@ -26,6 +19,7 @@
26
19
  "./PeopleTeamsAnalyticsContext": "./src/PeopleTeamsAnalyticsContext.tsx",
27
20
  "./RecentWorkAnalyticsContext": "./src/RecentWorkAnalyticsContext.tsx",
28
21
  "./AtlasAnalyticsContext": "./src/AtlasAnalyticsContext.tsx",
22
+ "./LinkingPlatformAnalyticsContext": "./src/LinkingPlatformAnalyticsContext.tsx",
29
23
  ".": "./src/index.ts"
30
24
  },
31
25
  "atlassian": {
@@ -43,7 +37,7 @@
43
37
  "react": "^16.8.0"
44
38
  },
45
39
  "devDependencies": {
46
- "@atlaskit/analytics-listeners": "^8.3.0",
40
+ "@atlaskit/analytics-listeners": "^8.4.0",
47
41
  "@atlaskit/docs": "*",
48
42
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
49
43
  "enzyme": "^3.10.0",
package/report.api.md CHANGED
@@ -1,12 +1,18 @@
1
+ <!-- API Report Version: 2.3 -->
2
+
1
3
  ## API Report File for "@atlaskit/analytics-namespaced-context"
2
4
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
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
4
9
 
5
- <!--
6
- Generated API Report version: 2.0
7
- -->
10
+ - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
8
12
 
9
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
13
+ ### Main Entry Types
14
+
15
+ <!--SECTION START: Main Entry Types-->
10
16
 
11
17
  ```ts
12
18
  import { ReactNode } from 'react';
@@ -47,7 +53,7 @@ type FabricEditorAnalyticsContextProps = Props & {
47
53
  appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
48
54
  packageName: string;
49
55
  packageVersion: string;
50
- componentName: 'renderer' | 'editorCore';
56
+ componentName: 'editorCore' | 'renderer';
51
57
  editorSessionId: string;
52
58
  };
53
59
  };
@@ -55,6 +61,12 @@ type FabricEditorAnalyticsContextProps = Props & {
55
61
  // @public (undocumented)
56
62
  export const FabricElementsAnalyticsContext: StatelessComponent<Props>;
57
63
 
64
+ // @public (undocumented)
65
+ export const LINKING_PLATFORM_CONTEXT = 'linkingPlatformCtx';
66
+
67
+ // @public (undocumented)
68
+ export const LinkingPlatformAnalyticsContext: StatelessComponent<Props>;
69
+
58
70
  // @public (undocumented)
59
71
  export const MEDIA_CONTEXT = 'mediaCtx';
60
72
 
@@ -90,3 +102,17 @@ export const RecentWorkAnalyticsContext: StatelessComponent<Props>;
90
102
 
91
103
  // (No @packageDocumentation comment for this package)
92
104
  ```
105
+
106
+ <!--SECTION END: Main Entry Types-->
107
+
108
+ ### Peer Dependencies
109
+
110
+ <!--SECTION START: Peer Dependencies-->
111
+
112
+ ```json
113
+ {
114
+ "react": "^16.8.0"
115
+ }
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
+ ```
@@ -1,4 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const ATLAS_CONTEXT = "atlasCtx";
4
- export declare const AtlasAnalyticsContext: StatelessComponent<Props>;
@@ -1,21 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const EDITOR_CONTEXT = "fabricEditorCtx";
4
- export declare enum EDITOR_APPEARANCE_CONTEXT {
5
- FIXED_WIDTH = "fixedWidth",
6
- FULL_WIDTH = "fullWidth",
7
- COMMENT = "comment",
8
- CHROMELESS = "chromeless",
9
- MOBILE = "mobile"
10
- }
11
- declare type FabricEditorAnalyticsContextProps = Props & {
12
- data: {
13
- appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
14
- packageName: string;
15
- packageVersion: string;
16
- componentName: 'renderer' | 'editorCore';
17
- editorSessionId: string;
18
- };
19
- };
20
- export declare const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
21
- export {};
@@ -1,4 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const ELEMENTS_CONTEXT = "fabricElementsCtx";
4
- export declare const FabricElementsAnalyticsContext: StatelessComponent<Props>;
@@ -1 +0,0 @@
1
- export declare const MEDIA_CONTEXT = "mediaCtx";
@@ -1,4 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const NAVIGATION_CONTEXT = "navigationCtx";
4
- export declare const NavigationAnalyticsContext: StatelessComponent<Props>;
@@ -1,4 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const NOTIFICATIONS_CONTEXT = "NotificationsCtx";
4
- export declare const NotificationsAnalyticsContext: StatelessComponent<Props>;
@@ -1,4 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const PEOPLE_TEAMS_CONTEXT = "peopleTeamsCtx";
4
- export declare const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
@@ -1,4 +0,0 @@
1
- import { StatelessComponent } from 'react';
2
- import { Props } from './helper/createNamespaceContext';
3
- export declare const RECENT_WORK_CONTEXT = "RecentWorkCtx";
4
- export declare const RecentWorkAnalyticsContext: StatelessComponent<Props>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { ReactNode } from 'react';
3
- export declare type Props = {
4
- children?: ReactNode;
5
- data: {};
6
- };
7
- declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => React.StatelessComponent<T>;
8
- export default createNamespaceContext;
@@ -1,8 +0,0 @@
1
- export { ELEMENTS_CONTEXT, FabricElementsAnalyticsContext, } from './FabricElementsAnalyticsContext';
2
- export { NAVIGATION_CONTEXT, NavigationAnalyticsContext, } from './NavigationAnalyticsContext';
3
- export { EDITOR_CONTEXT, EDITOR_APPEARANCE_CONTEXT, FabricEditorAnalyticsContext, } from './FabricEditorAnalyticsContext';
4
- export { MEDIA_CONTEXT } from './MediaAnalyticsContext';
5
- export { PEOPLE_TEAMS_CONTEXT, PeopleTeamsAnalyticsContext, } from './PeopleTeamsAnalyticsContext';
6
- export { NOTIFICATIONS_CONTEXT, NotificationsAnalyticsContext, } from './NotificationsAnalyticsContext';
7
- export { RECENT_WORK_CONTEXT, RecentWorkAnalyticsContext, } from './RecentWorkAnalyticsContext';
8
- export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';