@atlaskit/analytics-namespaced-context 6.5.1 → 6.5.2

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,11 @@
1
1
  # @atlaskit/analytics-namespaced-context
2
2
 
3
+ ## 6.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
3
9
  ## 6.5.1
4
10
 
5
11
  ### Patch Changes
@@ -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
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1"
3
+ "version": "6.5.2"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1"
3
+ "version": "6.5.2"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.5.1"
3
+ "version": "6.5.2"
4
4
  }
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,21 @@
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 {};
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1 @@
1
+ export declare const MEDIA_CONTEXT = "mediaCtx";
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,8 @@
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';
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.5.2",
4
4
  "description": "Provides a namespace for AnalyticsContext data (@atlaskit/analytics-next)",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,13 @@
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
+ },
15
22
  "atlaskit:src": "src/index.ts",
16
23
  "af:exports": {
17
24
  "./MediaAnalyticsContext": "./src/MediaAnalyticsContext.tsx",
@@ -42,7 +49,7 @@
42
49
  "enzyme": "^3.10.0",
43
50
  "enzyme-adapter-react-16": "^1.15.1",
44
51
  "react": "^16.8.0",
45
- "typescript": "4.3.5"
52
+ "typescript": "4.5.5"
46
53
  },
47
54
  "keywords": [
48
55
  "fabric",
package/report.api.md CHANGED
@@ -1,6 +1,10 @@
1
- ## API Report File for "@atlaskit/analytics-namespaced-context".
1
+ ## API Report File for "@atlaskit/analytics-namespaced-context"
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
4
8
 
5
9
  [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
10
 
@@ -8,25 +12,37 @@
8
12
  import { ReactNode } from 'react';
9
13
  import { StatelessComponent } from 'react';
10
14
 
11
- export declare const ATLAS_CONTEXT = 'atlasCtx';
15
+ // @public (undocumented)
16
+ export const ATLAS_CONTEXT = 'atlasCtx';
12
17
 
13
- export declare const AtlasAnalyticsContext: StatelessComponent<Props>;
18
+ // @public (undocumented)
19
+ export const AtlasAnalyticsContext: StatelessComponent<Props>;
14
20
 
15
- export declare enum EDITOR_APPEARANCE_CONTEXT {
21
+ // @public (undocumented)
22
+ export enum EDITOR_APPEARANCE_CONTEXT {
23
+ // (undocumented)
24
+ CHROMELESS = 'chromeless',
25
+ // (undocumented)
26
+ COMMENT = 'comment',
27
+ // (undocumented)
16
28
  FIXED_WIDTH = 'fixedWidth',
29
+ // (undocumented)
17
30
  FULL_WIDTH = 'fullWidth',
18
- COMMENT = 'comment',
19
- CHROMELESS = 'chromeless',
31
+ // (undocumented)
20
32
  MOBILE = 'mobile',
21
33
  }
22
34
 
23
- export declare const EDITOR_CONTEXT = 'fabricEditorCtx';
35
+ // @public (undocumented)
36
+ export const EDITOR_CONTEXT = 'fabricEditorCtx';
24
37
 
25
- export declare const ELEMENTS_CONTEXT = 'fabricElementsCtx';
38
+ // @public (undocumented)
39
+ export const ELEMENTS_CONTEXT = 'fabricElementsCtx';
26
40
 
27
- export declare const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
41
+ // @public (undocumented)
42
+ export const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
28
43
 
29
- declare type FabricEditorAnalyticsContextProps = Props & {
44
+ // @public (undocumented)
45
+ type FabricEditorAnalyticsContextProps = Props & {
30
46
  data: {
31
47
  appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
32
48
  packageName: string;
@@ -36,30 +52,41 @@ declare type FabricEditorAnalyticsContextProps = Props & {
36
52
  };
37
53
  };
38
54
 
39
- export declare const FabricElementsAnalyticsContext: StatelessComponent<Props>;
55
+ // @public (undocumented)
56
+ export const FabricElementsAnalyticsContext: StatelessComponent<Props>;
40
57
 
41
- export declare const MEDIA_CONTEXT = 'mediaCtx';
58
+ // @public (undocumented)
59
+ export const MEDIA_CONTEXT = 'mediaCtx';
42
60
 
43
- export declare const NAVIGATION_CONTEXT = 'navigationCtx';
61
+ // @public (undocumented)
62
+ export const NAVIGATION_CONTEXT = 'navigationCtx';
44
63
 
45
- export declare const NavigationAnalyticsContext: StatelessComponent<Props>;
64
+ // @public (undocumented)
65
+ export const NavigationAnalyticsContext: StatelessComponent<Props>;
46
66
 
47
- export declare const NOTIFICATIONS_CONTEXT = 'NotificationsCtx';
67
+ // @public (undocumented)
68
+ export const NOTIFICATIONS_CONTEXT = 'NotificationsCtx';
48
69
 
49
- export declare const NotificationsAnalyticsContext: StatelessComponent<Props>;
70
+ // @public (undocumented)
71
+ export const NotificationsAnalyticsContext: StatelessComponent<Props>;
50
72
 
51
- export declare const PEOPLE_TEAMS_CONTEXT = 'peopleTeamsCtx';
73
+ // @public (undocumented)
74
+ export const PEOPLE_TEAMS_CONTEXT = 'peopleTeamsCtx';
52
75
 
53
- export declare const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
76
+ // @public (undocumented)
77
+ export const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
54
78
 
55
- declare type Props = {
79
+ // @public (undocumented)
80
+ type Props = {
56
81
  children?: ReactNode;
57
82
  data: {};
58
83
  };
59
84
 
60
- export declare const RECENT_WORK_CONTEXT = 'RecentWorkCtx';
85
+ // @public (undocumented)
86
+ export const RECENT_WORK_CONTEXT = 'RecentWorkCtx';
61
87
 
62
- export declare const RecentWorkAnalyticsContext: StatelessComponent<Props>;
88
+ // @public (undocumented)
89
+ export const RecentWorkAnalyticsContext: StatelessComponent<Props>;
63
90
 
64
- export {};
91
+ // (No @packageDocumentation comment for this package)
65
92
  ```