@atlaskit/analytics-next 11.1.4 → 11.2.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/AnalyticsReactContext/package.json +15 -0
- package/CHANGELOG.md +7 -0
- package/afm-cc/tsconfig.json +0 -1
- package/afm-jira/tsconfig.json +3 -6
- package/afm-products/tsconfig.json +0 -1
- package/cleanProps/package.json +15 -0
- package/dist/cjs/components/AnalyticsReactContext.js +13 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/utils/isModernContextEnabledEnv.js +2 -1
- package/dist/es2019/components/AnalyticsReactContext.js +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/utils/isModernContextEnabledEnv.js +2 -1
- package/dist/esm/components/AnalyticsReactContext.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/isModernContextEnabledEnv.js +2 -1
- package/dist/types/components/AnalyticsContext/index.d.ts +1 -1
- package/dist/types/components/AnalyticsContext/types.d.ts +1 -1
- package/dist/types/components/AnalyticsListener/LegacyAnalyticsListener.d.ts +1 -1
- package/dist/types/components/AnalyticsListener/index.d.ts +1 -1
- package/dist/types/components/AnalyticsListener/types.d.ts +1 -1
- package/dist/types/components/AnalyticsReactContext.d.ts +2 -0
- package/dist/types/hocs/withAnalyticsEvents.d.ts +1 -1
- package/dist/types/hooks/useAnalyticsEvents.d.ts +1 -1
- package/dist/types/hooks/usePatchedProps.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types/utils/createAndFireEvent.d.ts +2 -2
- package/dist/types/utils/isModernContextEnabledEnv.d.ts +2 -2
- package/dist/types-ts4.5/components/AnalyticsContext/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsContext/types.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsListener/LegacyAnalyticsListener.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsListener/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsListener/types.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsReactContext.d.ts +2 -0
- package/dist/types-ts4.5/hocs/withAnalyticsEvents.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useAnalyticsEvents.d.ts +1 -1
- package/dist/types-ts4.5/hooks/usePatchedProps.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/createAndFireEvent.d.ts +2 -2
- package/dist/types-ts4.5/utils/isModernContextEnabledEnv.d.ts +2 -2
- package/package.json +1 -1
- package/tsconfig.json +1 -2
- package/usePlatformLeafSyntheticEventHandler/package.json +15 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/analytics-next/AnalyticsReactContext",
|
|
3
|
+
"main": "../dist/cjs/components/AnalyticsReactContext.js",
|
|
4
|
+
"module": "../dist/esm/components/AnalyticsReactContext.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/AnalyticsReactContext.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/components/AnalyticsReactContext.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/components/AnalyticsReactContext.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/analytics-next
|
|
2
2
|
|
|
3
|
+
## 11.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a0a0a9bcde425`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a0a0a9bcde425) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
3
10
|
## 11.1.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
4
|
"target": "es5",
|
|
6
5
|
"outDir": "../../../../../jira/tsDist/@atlaskit__analytics-next/app",
|
|
7
6
|
"rootDir": "../",
|
|
8
7
|
"composite": true,
|
|
9
|
-
"noCheck": true
|
|
8
|
+
"noCheck": true,
|
|
9
|
+
"isolatedDeclarations": true
|
|
10
10
|
},
|
|
11
|
-
"include": [
|
|
12
|
-
"../src/**/*.ts",
|
|
13
|
-
"../src/**/*.tsx"
|
|
14
|
-
],
|
|
11
|
+
"include": ["../src/**/*.ts", "../src/**/*.tsx"],
|
|
15
12
|
"exclude": [
|
|
16
13
|
"../src/**/__tests__/*",
|
|
17
14
|
"../src/**/*.test.*",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/analytics-next/cleanProps",
|
|
3
|
+
"main": "../dist/cjs/utils/cleanProps.js",
|
|
4
|
+
"module": "../dist/esm/utils/cleanProps.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/utils/cleanProps.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/utils/cleanProps.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/utils/cleanProps.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _analyticsNextStableReactContext.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
package/dist/cjs/index.js
CHANGED
|
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "AnalyticsListener", {
|
|
|
44
44
|
Object.defineProperty(exports, "AnalyticsReactContext", {
|
|
45
45
|
enumerable: true,
|
|
46
46
|
get: function get() {
|
|
47
|
-
return
|
|
47
|
+
return _AnalyticsReactContext.default;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "UIAnalyticsEvent", {
|
|
@@ -126,7 +126,7 @@ var _index2 = _interopRequireDefault(require("./components/AnalyticsContext/inde
|
|
|
126
126
|
var _withAnalyticsContext = _interopRequireDefault(require("./hocs/withAnalyticsContext"));
|
|
127
127
|
var _AnalyticsErrorBoundary = _interopRequireDefault(require("./components/AnalyticsErrorBoundary"));
|
|
128
128
|
var _withAnalyticsEvents = _interopRequireDefault(require("./hocs/withAnalyticsEvents"));
|
|
129
|
-
var
|
|
129
|
+
var _AnalyticsReactContext = _interopRequireDefault(require("./components/AnalyticsReactContext"));
|
|
130
130
|
var _useAnalyticsEvents = require("./hooks/useAnalyticsEvents");
|
|
131
131
|
var _useCallbackWithAnalytics = require("./hooks/useCallbackWithAnalytics");
|
|
132
132
|
var _usePlatformLeafEventHandler = require("./hooks/usePlatformLeafEventHandler");
|
|
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _process$env;
|
|
8
8
|
/// <reference types="node" />
|
|
9
|
-
var
|
|
9
|
+
var _default_1 = typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']);
|
|
10
|
+
var _default = exports.default = _default_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@atlaskit/analytics-next-stable-react-context';
|
package/dist/es2019/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { default as AnalyticsErrorBoundary } from './components/AnalyticsErrorBo
|
|
|
12
12
|
// createAnalyticsEvent HOC
|
|
13
13
|
export { default as withAnalyticsEvents } from './hocs/withAnalyticsEvents';
|
|
14
14
|
// React context
|
|
15
|
-
export { default as AnalyticsReactContext } from '
|
|
15
|
+
export { default as AnalyticsReactContext } from './components/AnalyticsReactContext';
|
|
16
16
|
// Hook for creating and firing analytics events
|
|
17
17
|
export { useAnalyticsEvents } from './hooks/useAnalyticsEvents';
|
|
18
18
|
export { useCallbackWithAnalytics } from './hooks/useCallbackWithAnalytics';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
var _process$env;
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
|
|
3
|
+
const _default_1 = typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']);
|
|
4
|
+
export default _default_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@atlaskit/analytics-next-stable-react-context';
|
package/dist/esm/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { default as AnalyticsErrorBoundary } from './components/AnalyticsErrorBo
|
|
|
12
12
|
// createAnalyticsEvent HOC
|
|
13
13
|
export { default as withAnalyticsEvents } from './hocs/withAnalyticsEvents';
|
|
14
14
|
// React context
|
|
15
|
-
export { default as AnalyticsReactContext } from '
|
|
15
|
+
export { default as AnalyticsReactContext } from './components/AnalyticsReactContext';
|
|
16
16
|
// Hook for creating and firing analytics events
|
|
17
17
|
export { useAnalyticsEvents } from './hooks/useAnalyticsEvents';
|
|
18
18
|
export { useCallbackWithAnalytics } from './hooks/useCallbackWithAnalytics';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
var _process$env;
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
|
|
3
|
+
var _default_1 = typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']);
|
|
4
|
+
export default _default_1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
2
2
|
export type AnalyticsContextFunction = (props: {
|
|
3
3
|
/** Children! */
|
|
4
4
|
children: React.ReactNode;
|
|
@@ -24,8 +24,8 @@ declare class AnalyticsListener extends Component<Props> {
|
|
|
24
24
|
contextValue: AnalyticsReactContextInterface;
|
|
25
25
|
constructor(props: Props);
|
|
26
26
|
getChildContext: () => {
|
|
27
|
-
getAtlaskitAnalyticsEventHandlers: () => any[];
|
|
28
27
|
getAtlaskitAnalyticsContext: () => any;
|
|
28
|
+
getAtlaskitAnalyticsEventHandlers: () => any[];
|
|
29
29
|
};
|
|
30
30
|
getAnalyticsEventHandlers: () => any[];
|
|
31
31
|
getAtlaskitAnalyticsContext: () => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
2
2
|
import type UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
|
|
3
3
|
export type AnalyticsListenerFunction = (props: {
|
|
4
4
|
/** The channel to listen for events on. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { CreateEventMap, CreateUIAnalyticsEvent } from '../types';
|
|
3
3
|
export interface WithAnalyticsEventsProps {
|
|
4
4
|
/**
|
|
5
5
|
* You should not be accessing this prop under any circumstances.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export { default as AnalyticsErrorBoundary } from './components/AnalyticsErrorBo
|
|
|
11
11
|
export type { AnalyticsErrorBoundaryProps } from './components/AnalyticsErrorBoundary';
|
|
12
12
|
export { default as withAnalyticsEvents } from './hocs/withAnalyticsEvents';
|
|
13
13
|
export type { WithAnalyticsEventsProps } from './hocs/withAnalyticsEvents';
|
|
14
|
-
export { default as AnalyticsReactContext } from '
|
|
15
|
-
export type { AnalyticsReactContextInterface } from '
|
|
14
|
+
export { default as AnalyticsReactContext } from './components/AnalyticsReactContext';
|
|
15
|
+
export type { AnalyticsReactContextInterface } from './components/AnalyticsReactContext';
|
|
16
16
|
export { useAnalyticsEvents } from './hooks/useAnalyticsEvents';
|
|
17
17
|
export type { UseAnalyticsEventsHook } from './hooks/useAnalyticsEvents';
|
|
18
18
|
export { useCallbackWithAnalytics } from './hooks/useCallbackWithAnalytics';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsEventPayload } from './events/AnalyticsEvent';
|
|
2
2
|
import type UIAnalyticsEvent from './events/UIAnalyticsEvent';
|
|
3
3
|
export type CreateUIAnalyticsEvent = (payload: AnalyticsEventPayload) => UIAnalyticsEvent;
|
|
4
4
|
export type AnalyticsEventCreator = (create: CreateUIAnalyticsEvent, props: Record<string, any>) => UIAnalyticsEvent | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsEventPayload } from '../events/AnalyticsEvent';
|
|
2
2
|
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
|
|
3
|
-
import {
|
|
3
|
+
import type { CreateUIAnalyticsEvent } from '../types';
|
|
4
4
|
declare const _default: (channel?: string) => (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
5
5
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const _default_1: string | false | undefined;
|
|
2
|
+
export default _default_1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
2
2
|
export type AnalyticsContextFunction = (props: {
|
|
3
3
|
/** Children! */
|
|
4
4
|
children: React.ReactNode;
|
|
@@ -24,8 +24,8 @@ declare class AnalyticsListener extends Component<Props> {
|
|
|
24
24
|
contextValue: AnalyticsReactContextInterface;
|
|
25
25
|
constructor(props: Props);
|
|
26
26
|
getChildContext: () => {
|
|
27
|
-
getAtlaskitAnalyticsEventHandlers: () => any[];
|
|
28
27
|
getAtlaskitAnalyticsContext: () => any;
|
|
28
|
+
getAtlaskitAnalyticsEventHandlers: () => any[];
|
|
29
29
|
};
|
|
30
30
|
getAnalyticsEventHandlers: () => any[];
|
|
31
31
|
getAtlaskitAnalyticsContext: () => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
2
2
|
import type UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
|
|
3
3
|
export type AnalyticsListenerFunction = (props: {
|
|
4
4
|
/** The channel to listen for events on. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { CreateEventMap, CreateUIAnalyticsEvent } from '../types';
|
|
3
3
|
export interface WithAnalyticsEventsProps {
|
|
4
4
|
/**
|
|
5
5
|
* You should not be accessing this prop under any circumstances.
|
|
@@ -11,8 +11,8 @@ export { default as AnalyticsErrorBoundary } from './components/AnalyticsErrorBo
|
|
|
11
11
|
export type { AnalyticsErrorBoundaryProps } from './components/AnalyticsErrorBoundary';
|
|
12
12
|
export { default as withAnalyticsEvents } from './hocs/withAnalyticsEvents';
|
|
13
13
|
export type { WithAnalyticsEventsProps } from './hocs/withAnalyticsEvents';
|
|
14
|
-
export { default as AnalyticsReactContext } from '
|
|
15
|
-
export type { AnalyticsReactContextInterface } from '
|
|
14
|
+
export { default as AnalyticsReactContext } from './components/AnalyticsReactContext';
|
|
15
|
+
export type { AnalyticsReactContextInterface } from './components/AnalyticsReactContext';
|
|
16
16
|
export { useAnalyticsEvents } from './hooks/useAnalyticsEvents';
|
|
17
17
|
export type { UseAnalyticsEventsHook } from './hooks/useAnalyticsEvents';
|
|
18
18
|
export { useCallbackWithAnalytics } from './hooks/useCallbackWithAnalytics';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsEventPayload } from './events/AnalyticsEvent';
|
|
2
2
|
import type UIAnalyticsEvent from './events/UIAnalyticsEvent';
|
|
3
3
|
export type CreateUIAnalyticsEvent = (payload: AnalyticsEventPayload) => UIAnalyticsEvent;
|
|
4
4
|
export type AnalyticsEventCreator = (create: CreateUIAnalyticsEvent, props: Record<string, any>) => UIAnalyticsEvent | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnalyticsEventPayload } from '../events/AnalyticsEvent';
|
|
2
2
|
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
|
|
3
|
-
import {
|
|
3
|
+
import type { CreateUIAnalyticsEvent } from '../types';
|
|
4
4
|
declare const _default: (channel?: string) => (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
5
5
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const _default_1: string | false | undefined;
|
|
2
|
+
export default _default_1;
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/analytics-next/usePlatformLeafSyntheticEventHandler",
|
|
3
|
+
"main": "../dist/cjs/hooks/usePlatformLeafSyntheticEventHandler.js",
|
|
4
|
+
"module": "../dist/esm/hooks/usePlatformLeafSyntheticEventHandler.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/hooks/usePlatformLeafSyntheticEventHandler.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/hooks/usePlatformLeafSyntheticEventHandler.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/hooks/usePlatformLeafSyntheticEventHandler.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|