@atlaskit/analytics-namespaced-context 6.14.0 → 7.0.1

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.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#174338](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174338)
8
+ [`8e0f35b2c60f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e0f35b2c60f3) -
9
+ Add omni channel analytics listner and namespaced context
10
+
11
+ ## 7.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
16
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
17
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
18
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
19
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
20
+ React 17 may come via non-major semver releases.
21
+
22
+ Please refer this community post for more details:
23
+ 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
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 6.14.0
4
30
 
5
31
  ### Minor Changes
@@ -4,7 +4,7 @@
4
4
  "declaration": true,
5
5
  "target": "es5",
6
6
  "composite": true,
7
- "outDir": "../dist",
7
+ "outDir": "../../../../../confluence/tsDist/@atlaskit__analytics-namespaced-context",
8
8
  "rootDir": "../"
9
9
  },
10
10
  "include": [
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.passionfruit.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../passionfruit/tsDist/@atlaskit__analytics-namespaced-context/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../analytics-next/afm-passionfruit/tsconfig.json"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../townsquare/tsDist/@atlaskit__analytics-namespaced-context/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../analytics-next/afm-townsquare/tsconfig.json"
22
+ }
23
+ ]
24
+ }
@@ -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.OmniChannelAnalyticsContext = exports.OMNI_CHANNEL_CONTEXT = void 0;
8
+ var _createNamespaceContext = _interopRequireDefault(require("./helper/createNamespaceContext"));
9
+ var OMNI_CHANNEL_CONTEXT = exports.OMNI_CHANNEL_CONTEXT = 'omniChannelCtx';
10
+ var OmniChannelAnalyticsContext = exports.OmniChannelAnalyticsContext = (0, _createNamespaceContext.default)(OMNI_CHANNEL_CONTEXT, 'OmniChannelAnalyticsContext');
package/dist/cjs/index.js CHANGED
@@ -123,6 +123,18 @@ Object.defineProperty(exports, "NotificationsAnalyticsContext", {
123
123
  return _NotificationsAnalyticsContext.NotificationsAnalyticsContext;
124
124
  }
125
125
  });
126
+ Object.defineProperty(exports, "OMNI_CHANNEL_CONTEXT", {
127
+ enumerable: true,
128
+ get: function get() {
129
+ return _OmniChannelAnalyticsContext.OMNI_CHANNEL_CONTEXT;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "OmniChannelAnalyticsContext", {
133
+ enumerable: true,
134
+ get: function get() {
135
+ return _OmniChannelAnalyticsContext.OmniChannelAnalyticsContext;
136
+ }
137
+ });
126
138
  Object.defineProperty(exports, "PEOPLE_TEAMS_CONTEXT", {
127
139
  enumerable: true,
128
140
  get: function get() {
@@ -171,4 +183,5 @@ var _LinkingPlatformAnalyticsContext = require("./LinkingPlatformAnalyticsContex
171
183
  var _PostOfficeAnalyticsContext = require("./PostOfficeAnalyticsContext");
172
184
  var _AIMateAnalyticsContext = require("./AIMateAnalyticsContext");
173
185
  var _AVPAnalyticsContext = require("./AVPAnalyticsContext");
174
- var _GrowthAnalyticsContext = require("./GrowthAnalyticsContext");
186
+ var _GrowthAnalyticsContext = require("./GrowthAnalyticsContext");
187
+ var _OmniChannelAnalyticsContext = require("./OmniChannelAnalyticsContext");
@@ -0,0 +1,3 @@
1
+ import createNamespaceContext from './helper/createNamespaceContext';
2
+ export const OMNI_CHANNEL_CONTEXT = 'omniChannelCtx';
3
+ export const OmniChannelAnalyticsContext = createNamespaceContext(OMNI_CHANNEL_CONTEXT, 'OmniChannelAnalyticsContext');
@@ -10,4 +10,5 @@ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './Lin
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';
13
+ export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
14
+ export { OMNI_CHANNEL_CONTEXT, OmniChannelAnalyticsContext } from './OmniChannelAnalyticsContext';
@@ -0,0 +1,3 @@
1
+ import createNamespaceContext from './helper/createNamespaceContext';
2
+ export var OMNI_CHANNEL_CONTEXT = 'omniChannelCtx';
3
+ export var OmniChannelAnalyticsContext = createNamespaceContext(OMNI_CHANNEL_CONTEXT, 'OmniChannelAnalyticsContext');
package/dist/esm/index.js CHANGED
@@ -10,4 +10,5 @@ export { LINKING_PLATFORM_CONTEXT, LinkingPlatformAnalyticsContext } from './Lin
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';
13
+ export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
14
+ export { OMNI_CHANNEL_CONTEXT, OmniChannelAnalyticsContext } from './OmniChannelAnalyticsContext';
@@ -0,0 +1,4 @@
1
+ import { type FunctionComponent } from 'react';
2
+ import { Props } from './helper/createNamespaceContext';
3
+ export declare const OMNI_CHANNEL_CONTEXT = "omniChannelCtx";
4
+ export declare const OmniChannelAnalyticsContext: FunctionComponent<Props>;
@@ -11,3 +11,4 @@ export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAna
11
11
  export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
12
12
  export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
13
13
  export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
14
+ export { OMNI_CHANNEL_CONTEXT, OmniChannelAnalyticsContext } from './OmniChannelAnalyticsContext';
@@ -0,0 +1,4 @@
1
+ import { type FunctionComponent } from 'react';
2
+ import { Props } from './helper/createNamespaceContext';
3
+ export declare const OMNI_CHANNEL_CONTEXT = "omniChannelCtx";
4
+ export declare const OmniChannelAnalyticsContext: FunctionComponent<Props>;
@@ -11,3 +11,4 @@ export { POST_OFFICE_CONTEXT, PostOfficeAnalyticsContext } from './PostOfficeAna
11
11
  export { AI_MATE_CONTEXT, AIMateAnalyticsContext } from './AIMateAnalyticsContext';
12
12
  export { AVP_CONTEXT, AVPAnalyticsContext } from './AVPAnalyticsContext';
13
13
  export { GROWTH_CONTEXT, GrowthAnalyticsContext } from './GrowthAnalyticsContext';
14
+ export { OMNI_CHANNEL_CONTEXT, OmniChannelAnalyticsContext } from './OmniChannelAnalyticsContext';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-namespaced-context",
3
- "version": "6.14.0",
3
+ "version": "7.0.1",
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.1.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",