@atlaskit/analytics-namespaced-context 6.5.0 → 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.
- package/AtlasAnalyticsContext/package.json +8 -1
- package/CHANGELOG.md +12 -0
- package/MediaAnalyticsContext/package.json +8 -1
- package/NavigationAnalyticsContext/package.json +8 -1
- package/PeopleTeamsAnalyticsContext/package.json +8 -1
- package/RecentWorkAnalyticsContext/package.json +8 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/AtlasAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.0/FabricEditorAnalyticsContext.d.ts +21 -0
- package/dist/types-ts4.0/FabricElementsAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.0/MediaAnalyticsContext.d.ts +1 -0
- package/dist/types-ts4.0/NavigationAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.0/NotificationsAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.0/PeopleTeamsAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.0/RecentWorkAnalyticsContext.d.ts +4 -0
- package/dist/types-ts4.0/helper/createNamespaceContext.d.ts +8 -0
- package/dist/types-ts4.0/index.d.ts +8 -0
- package/package.json +9 -2
- package/report.api.md +92 -0
|
@@ -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.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
|
+
|
|
9
|
+
## 6.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
14
|
+
|
|
3
15
|
## 6.5.0
|
|
4
16
|
|
|
5
17
|
### Minor 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
|
}
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
export declare const MEDIA_CONTEXT = "mediaCtx";
|
|
@@ -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.
|
|
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.
|
|
52
|
+
"typescript": "4.5.5"
|
|
46
53
|
},
|
|
47
54
|
"keywords": [
|
|
48
55
|
"fabric",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { ReactNode } from 'react';
|
|
13
|
+
import { StatelessComponent } from 'react';
|
|
14
|
+
|
|
15
|
+
// @public (undocumented)
|
|
16
|
+
export const ATLAS_CONTEXT = 'atlasCtx';
|
|
17
|
+
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
export const AtlasAnalyticsContext: StatelessComponent<Props>;
|
|
20
|
+
|
|
21
|
+
// @public (undocumented)
|
|
22
|
+
export enum EDITOR_APPEARANCE_CONTEXT {
|
|
23
|
+
// (undocumented)
|
|
24
|
+
CHROMELESS = 'chromeless',
|
|
25
|
+
// (undocumented)
|
|
26
|
+
COMMENT = 'comment',
|
|
27
|
+
// (undocumented)
|
|
28
|
+
FIXED_WIDTH = 'fixedWidth',
|
|
29
|
+
// (undocumented)
|
|
30
|
+
FULL_WIDTH = 'fullWidth',
|
|
31
|
+
// (undocumented)
|
|
32
|
+
MOBILE = 'mobile',
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export const EDITOR_CONTEXT = 'fabricEditorCtx';
|
|
37
|
+
|
|
38
|
+
// @public (undocumented)
|
|
39
|
+
export const ELEMENTS_CONTEXT = 'fabricElementsCtx';
|
|
40
|
+
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
export const FabricEditorAnalyticsContext: StatelessComponent<FabricEditorAnalyticsContextProps>;
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
type FabricEditorAnalyticsContextProps = Props & {
|
|
46
|
+
data: {
|
|
47
|
+
appearance: EDITOR_APPEARANCE_CONTEXT | undefined;
|
|
48
|
+
packageName: string;
|
|
49
|
+
packageVersion: string;
|
|
50
|
+
componentName: 'renderer' | 'editorCore';
|
|
51
|
+
editorSessionId: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// @public (undocumented)
|
|
56
|
+
export const FabricElementsAnalyticsContext: StatelessComponent<Props>;
|
|
57
|
+
|
|
58
|
+
// @public (undocumented)
|
|
59
|
+
export const MEDIA_CONTEXT = 'mediaCtx';
|
|
60
|
+
|
|
61
|
+
// @public (undocumented)
|
|
62
|
+
export const NAVIGATION_CONTEXT = 'navigationCtx';
|
|
63
|
+
|
|
64
|
+
// @public (undocumented)
|
|
65
|
+
export const NavigationAnalyticsContext: StatelessComponent<Props>;
|
|
66
|
+
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
export const NOTIFICATIONS_CONTEXT = 'NotificationsCtx';
|
|
69
|
+
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export const NotificationsAnalyticsContext: StatelessComponent<Props>;
|
|
72
|
+
|
|
73
|
+
// @public (undocumented)
|
|
74
|
+
export const PEOPLE_TEAMS_CONTEXT = 'peopleTeamsCtx';
|
|
75
|
+
|
|
76
|
+
// @public (undocumented)
|
|
77
|
+
export const PeopleTeamsAnalyticsContext: StatelessComponent<Props>;
|
|
78
|
+
|
|
79
|
+
// @public (undocumented)
|
|
80
|
+
type Props = {
|
|
81
|
+
children?: ReactNode;
|
|
82
|
+
data: {};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// @public (undocumented)
|
|
86
|
+
export const RECENT_WORK_CONTEXT = 'RecentWorkCtx';
|
|
87
|
+
|
|
88
|
+
// @public (undocumented)
|
|
89
|
+
export const RecentWorkAnalyticsContext: StatelessComponent<Props>;
|
|
90
|
+
|
|
91
|
+
// (No @packageDocumentation comment for this package)
|
|
92
|
+
```
|