@atlaskit/analytics-namespaced-context 6.7.0 → 6.7.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.
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/AtlasAnalyticsContext.js",
6
6
  "types": "../dist/types/AtlasAnalyticsContext.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/AtlasAnalyticsContext.d.ts"
10
+ "../dist/types-ts4.5/AtlasAnalyticsContext.d.ts"
11
11
  ]
12
12
  }
13
13
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/analytics-namespaced-context
2
2
 
3
+ ## 6.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 6.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 6.7.0
4
16
 
5
17
  ### Minor Changes
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/LinkingPlatformAnalyticsContext.js",
6
6
  "types": "../dist/types/LinkingPlatformAnalyticsContext.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/LinkingPlatformAnalyticsContext.d.ts"
10
+ "../dist/types-ts4.5/LinkingPlatformAnalyticsContext.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/MediaAnalyticsContext.js",
6
6
  "types": "../dist/types/MediaAnalyticsContext.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/MediaAnalyticsContext.d.ts"
10
+ "../dist/types-ts4.5/MediaAnalyticsContext.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/NavigationAnalyticsContext.js",
6
6
  "types": "../dist/types/NavigationAnalyticsContext.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/NavigationAnalyticsContext.d.ts"
10
+ "../dist/types-ts4.5/NavigationAnalyticsContext.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/PeopleTeamsAnalyticsContext.js",
6
6
  "types": "../dist/types/PeopleTeamsAnalyticsContext.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/PeopleTeamsAnalyticsContext.d.ts"
10
+ "../dist/types-ts4.5/PeopleTeamsAnalyticsContext.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -5,9 +5,9 @@
5
5
  "module:es2019": "../dist/es2019/RecentWorkAnalyticsContext.js",
6
6
  "types": "../dist/types/RecentWorkAnalyticsContext.d.ts",
7
7
  "typesVersions": {
8
- ">=4.0 <4.5": {
8
+ ">=4.5 <4.9": {
9
9
  "*": [
10
- "../dist/types-ts4.0/RecentWorkAnalyticsContext.d.ts"
10
+ "../dist/types-ts4.5/RecentWorkAnalyticsContext.d.ts"
11
11
  ]
12
12
  }
13
13
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.7.0"
3
+ "version": "6.7.2"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.7.0"
3
+ "version": "6.7.2"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.7.0"
3
+ "version": "6.7.2"
4
4
  }
@@ -8,7 +8,7 @@ export declare enum EDITOR_APPEARANCE_CONTEXT {
8
8
  CHROMELESS = "chromeless",
9
9
  MOBILE = "mobile"
10
10
  }
11
- declare type FabricEditorAnalyticsContextProps = Props & {
11
+ type FabricEditorAnalyticsContextProps = Props & {
12
12
  data: {
13
13
  appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
14
14
  packageName: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ReactNode } from 'react';
3
- export declare type Props = {
3
+ export type Props = {
4
4
  children?: ReactNode;
5
5
  data: {};
6
6
  };
@@ -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
+ 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,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>;
@@ -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 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,9 @@
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';
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.7.0",
3
+ "version": "6.7.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,14 @@
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.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "atlaskit:src": "src/index.ts",
16
24
  "af:exports": {
17
25
  "./MediaAnalyticsContext": "./src/MediaAnalyticsContext.tsx",
@@ -43,7 +51,7 @@
43
51
  "enzyme": "^3.10.0",
44
52
  "enzyme-adapter-react-16": "^1.15.1",
45
53
  "react": "^16.8.0",
46
- "typescript": "4.5.5"
54
+ "typescript": "~4.9.5"
47
55
  },
48
56
  "keywords": [
49
57
  "fabric",
@@ -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
+ ```