@atlaskit/analytics-namespaced-context 6.13.0 → 7.0.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,31 @@
1
1
  # @atlaskit/analytics-namespaced-context
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 6.14.0
22
+
23
+ ### Minor Changes
24
+
25
+ - [#113352](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113352)
26
+ [`f54cef561a5a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f54cef561a5a2) -
27
+ Add edition awareness analytics listener support
28
+
3
29
  ## 6.13.0
4
30
 
5
31
  ### Minor Changes
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.GrowthAnalyticsContext = exports.GROWTH_CONTEXT = void 0;
8
+ var _createNamespaceContext = _interopRequireDefault(require("./helper/createNamespaceContext"));
9
+ var GROWTH_CONTEXT = exports.GROWTH_CONTEXT = 'editionAwarenessCtx';
10
+ var GrowthAnalyticsContext = exports.GrowthAnalyticsContext = (0, _createNamespaceContext.default)(GROWTH_CONTEXT, 'GrowthAnalyticsContext');
package/dist/cjs/index.js CHANGED
@@ -69,6 +69,18 @@ Object.defineProperty(exports, "FabricElementsAnalyticsContext", {
69
69
  return _FabricElementsAnalyticsContext.FabricElementsAnalyticsContext;
70
70
  }
71
71
  });
72
+ Object.defineProperty(exports, "GROWTH_CONTEXT", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _GrowthAnalyticsContext.GROWTH_CONTEXT;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "GrowthAnalyticsContext", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _GrowthAnalyticsContext.GrowthAnalyticsContext;
82
+ }
83
+ });
72
84
  Object.defineProperty(exports, "LINKING_PLATFORM_CONTEXT", {
73
85
  enumerable: true,
74
86
  get: function get() {
@@ -158,4 +170,5 @@ var _AtlasAnalyticsContext = require("./AtlasAnalyticsContext");
158
170
  var _LinkingPlatformAnalyticsContext = require("./LinkingPlatformAnalyticsContext");
159
171
  var _PostOfficeAnalyticsContext = require("./PostOfficeAnalyticsContext");
160
172
  var _AIMateAnalyticsContext = require("./AIMateAnalyticsContext");
161
- var _AVPAnalyticsContext = require("./AVPAnalyticsContext");
173
+ var _AVPAnalyticsContext = require("./AVPAnalyticsContext");
174
+ var _GrowthAnalyticsContext = require("./GrowthAnalyticsContext");
@@ -0,0 +1,3 @@
1
+ import createNamespaceContext from './helper/createNamespaceContext';
2
+ export const GROWTH_CONTEXT = 'editionAwarenessCtx';
3
+ export const GrowthAnalyticsContext = createNamespaceContext(GROWTH_CONTEXT, 'GrowthAnalyticsContext');
@@ -9,4 +9,5 @@ export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
9
9
  export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './LinkingPlatformAnalyticsContext';
10
10
  export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
11
11
  export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
12
- export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
12
+ export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
13
+ export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
@@ -0,0 +1,3 @@
1
+ import createNamespaceContext from './helper/createNamespaceContext';
2
+ export var GROWTH_CONTEXT = 'editionAwarenessCtx';
3
+ export var GrowthAnalyticsContext = createNamespaceContext(GROWTH_CONTEXT, 'GrowthAnalyticsContext');
package/dist/esm/index.js CHANGED
@@ -9,4 +9,5 @@ export { ATLAS_CONTEXT, AtlasAnalyticsContext } from './AtlasAnalyticsContext';
9
9
  export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './LinkingPlatformAnalyticsContext';
10
10
  export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
11
11
  export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
12
- export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
12
+ export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
13
+ export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { type Props } from './helper/createNamespaceContext';
3
+ export declare const GROWTH_CONTEXT = "editionAwarenessCtx";
4
+ export declare const GrowthAnalyticsContext: {
5
+ (props: Props): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -3,7 +3,7 @@ export type Props = React.PropsWithChildren<{
3
3
  data: {};
4
4
  }>;
5
5
  declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => {
6
- (props: T): JSX.Element;
6
+ (props: T): React.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default createNamespaceContext;
@@ -10,3 +10,4 @@ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext, } from './Li
10
10
  export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
11
11
  export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
12
12
  export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
13
+ export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { type Props } from './helper/createNamespaceContext';
3
+ export declare const GROWTH_CONTEXT = "editionAwarenessCtx";
4
+ export declare const GrowthAnalyticsContext: {
5
+ (props: Props): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -3,7 +3,7 @@ export type Props = React.PropsWithChildren<{
3
3
  data: {};
4
4
  }>;
5
5
  declare const createNamespaceContext: <T extends Props>(namespace: string, displayName?: string) => {
6
- (props: T): JSX.Element;
6
+ (props: T): React.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default createNamespaceContext;
@@ -10,3 +10,4 @@ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext, } from './Li
10
10
  export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAnalyticsContext';
11
11
  export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
12
12
  export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
13
+ export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.13.0",
3
+ "version": "7.0.0",
4
4
  "description": "Provides a namespace for AnalyticsContext data (@atlaskit/analytics-next)",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,11 +40,11 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@atlaskit/analytics-next": "^10.3.0",
43
+ "@atlaskit/analytics-next": "^11.0.0",
44
44
  "@babel/runtime": "^7.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
47
+ "react": "^18.2.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@testing-library/react": "^13.4.0",