Socket
Socket
Sign inDemoInstall

@atlaskit/analytics-next

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/analytics-next - npm Package Compare versions

Comparing version 9.3.0 to 9.3.1

afm-jira/tsconfig.json

458

CHANGELOG.md
# @atlaskit/analytics-next
## 9.3.1
### Patch Changes
- Updated dependencies
## 9.3.0

@@ -7,3 +13,5 @@

- [#92779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92779) [`3aa3cd8db606`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3aa3cd8db606) - Improve compatibility with React 18
- [#92779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92779)
[`3aa3cd8db606`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3aa3cd8db606) -
Improve compatibility with React 18

@@ -14,3 +22,6 @@ ## 9.2.3

- [#87314](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87314) [`36ccb66917fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/36ccb66917fb) - Fix a bug in ModernAnalyticsContext when it's bit late to update data in new React context when mounting a component
- [#87314](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87314)
[`36ccb66917fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/36ccb66917fb) -
Fix a bug in ModernAnalyticsContext when it's bit late to update data in new React context when
mounting a component

@@ -21,3 +32,5 @@ ## 9.2.2

- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
Upgrade Typescript from `4.9.5` to `5.4.2`

@@ -28,3 +41,5 @@ ## 9.2.1

- [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
- [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085)
[`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) -
Update usage of `React.FC` to explicity include `children`

@@ -35,3 +50,5 @@ ## 9.2.0

- [#69804](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69804) [`0443b2194bd9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0443b2194bd9) - Allow using modern react context via platform feature flags
- [#69804](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69804)
[`0443b2194bd9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0443b2194bd9) -
Allow using modern react context via platform feature flags

@@ -42,3 +59,5 @@ ## 9.1.4

- [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731) [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
- [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731)
[`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete
version.json

@@ -49,3 +68,5 @@ ## 9.1.3

- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
legacy types are published for TS 4.5-4.8

@@ -56,3 +77,5 @@ ## 9.1.2

- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
Typescript from `4.5.5` to `4.9.5`

@@ -63,3 +86,5 @@ ## 9.1.1

- [#33292](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33292) [`7cc1e8f18ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cc1e8f18ec) - Move analytics-next to maintenance mode
- [#33292](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33292)
[`7cc1e8f18ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cc1e8f18ec) - Move
analytics-next to maintenance mode

@@ -70,3 +95,5 @@ ## 9.1.0

- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
minor dependency bump

@@ -77,3 +104,5 @@ ## 9.0.2

- [#33013](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33013) [`7caf968e4cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7caf968e4cf) - Move analytics-next to maintenance mode
- [#33013](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33013)
[`7caf968e4cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7caf968e4cf) - Move
analytics-next to maintenance mode

@@ -84,3 +113,5 @@ ## 9.0.1

- [#32312](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32312) [`fbff320b423`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fbff320b423) - Move package to continuous model and to push model consumption
- [#32312](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32312)
[`fbff320b423`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fbff320b423) - Move
package to continuous model and to push model consumption

@@ -91,3 +122,5 @@ ## 9.0.0

- [#29470](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29470) [`cf21f06ff72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf21f06ff72) - Bugfix, removed sending event fn and deprecated AnalyticErrorBoundary
- [#29470](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29470)
[`cf21f06ff72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf21f06ff72) - Bugfix,
removed sending event fn and deprecated AnalyticErrorBoundary

@@ -98,3 +131,5 @@ ## 8.3.5

- [#26436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26436) [`ccdc8e150f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ccdc8e150f9) - AFO-771 Analytics next - fix node process check
- [#26436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26436)
[`ccdc8e150f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ccdc8e150f9) - AFO-771
Analytics next - fix node process check

@@ -105,3 +140,5 @@ ## 8.3.4

- [#26220](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26220) [`2cbb787f8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cbb787f8b3) - AFO-711 Analytics-next: nullable check for context
- [#26220](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26220)
[`2cbb787f8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cbb787f8b3) - AFO-711
Analytics-next: nullable check for context

@@ -112,3 +149,5 @@ ## 8.3.3

- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
Typescript from `4.3.5` to `4.5.5`

@@ -119,3 +158,5 @@ ## 8.3.2

- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
Typescript from `4.2.4` to `4.3.5`.

@@ -126,3 +167,5 @@ ## 8.3.1

- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
to TypeScript 4.2.4

@@ -133,3 +176,6 @@ ## 8.3.0

- [#14012](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14012) [`37fd554209e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37fd554209e) - Add instance checks for analytics events in analytics-next. Update check in mpt-analytics for events too.
- [#14012](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14012)
[`37fd554209e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37fd554209e) - Add
instance checks for analytics events in analytics-next. Update check in mpt-analytics for events
too.

@@ -140,3 +186,5 @@ ## 8.2.1

- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`a4420ad5104`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4420ad5104) - Improves referential stability of analytics-next wrapped callbacks
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
[`a4420ad5104`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4420ad5104) - Improves
referential stability of analytics-next wrapped callbacks

@@ -147,3 +195,6 @@ ## 8.2.0

- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`0dbf0427287`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dbf0427287) - [ux] Added new optional props to allow executing on catching error and rendering an error screen on error
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328)
[`0dbf0427287`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dbf0427287) - [ux]
Added new optional props to allow executing on catching error and rendering an error screen on
error

@@ -154,3 +205,5 @@ ## 8.1.4

- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167)
[`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates
to development dependency `storybook-addon-performance`

@@ -161,3 +214,5 @@ ## 8.1.3

- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`5a9b102eef0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5a9b102eef0) - Add optional actionSubject parameter to usePlatformLeafHandlerHook
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230)
[`5a9b102eef0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5a9b102eef0) - Add
optional actionSubject parameter to usePlatformLeafHandlerHook

@@ -168,3 +223,5 @@ ## 8.1.2

- [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083) [`b290f591719`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b290f591719) - Add process type check in analytics next
- [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083)
[`b290f591719`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b290f591719) - Add
process type check in analytics next

@@ -175,3 +232,5 @@ ## 8.1.1

- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
packages using babel rather than tsc

@@ -182,3 +241,6 @@ ## 8.1.0

- [#5693](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5693) [`4eb71695b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eb71695b5) - Added usePlatformLeafSyntheticEventHandler, which acts similarly to usePlatformLeafEventHandler but is used for synthetic events where the event handler takes no `value` prop
- [#5693](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5693)
[`4eb71695b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eb71695b5) - Added
usePlatformLeafSyntheticEventHandler, which acts similarly to usePlatformLeafEventHandler but is
used for synthetic events where the event handler takes no `value` prop

@@ -189,5 +251,8 @@ ## 8.0.2

- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
Also add `typescript` to `devDependencies` to denote version that the package was built with.
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
`devDependencies` to denote version that the package was built with.

@@ -198,3 +263,5 @@ ## 8.0.1

- [#5412](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5412) [`b6af9198dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6af9198dd) - Restructure back to original lite mode file structure
- [#5412](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5412)
[`b6af9198dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6af9198dd) -
Restructure back to original lite mode file structure

@@ -205,5 +272,9 @@ ## 8.0.0

- [#5344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5344) [`b485472340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b485472340) - Export WithContextProps type to prevent deep import path references in dependent packages declaration output.
- [#5344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5344)
[`b485472340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b485472340) - Export
WithContextProps type to prevent deep import path references in dependent packages declaration
output.
Released as a major to prevent existing Atlaskit dependencies that use analytics-next from breaking when analytics-next file structure changes in the future.
Released as a major to prevent existing Atlaskit dependencies that use analytics-next from
breaking when analytics-next file structure changes in the future.

@@ -214,3 +285,5 @@ ## 7.1.1

- [#5164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5164) [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working
- [#5164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5164)
[`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo
analytics-next file restructure to allow external ts definitions to continue working

@@ -221,3 +294,5 @@ ## 7.1.0

- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`0e2a914932`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2a914932) - ### Additions
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
[`0e2a914932`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2a914932) - ###
Additions

@@ -247,7 +322,10 @@ - Added a new hook `useAnalyticsEventHandler` for sole use in Atlaskit components

(Legacy React context)[https://reactjs.org/docs/legacy-context.html] will be removed in a future version of React.
(Legacy React context)[https://reactjs.org/docs/legacy-context.html] will be removed in a future
version of React.
In addition its presence can be (problematic for performance)[https://twitter.com/dan_abramov/status/1064559184010723330].
In addition its presence can be (problematic for
performance)[https://twitter.com/dan_abramov/status/1064559184010723330].
As a result, we have taken steps to migrate away from it and use the new (React Context API)[https://reactjs.org/docs/context.html].
As a result, we have taken steps to migrate away from it and use the new (React Context
API)[https://reactjs.org/docs/context.html].

@@ -258,17 +336,22 @@ To achieve this we are rolling the drop out in 2 phases:

We have changed analytics components to receive modern context. Listeners and the Context layer will provide both modern and legacy context by default.
We have changed analytics components to receive modern context. Listeners and the Context layer
will provide both modern and legacy context by default.
At their own risk, package consumers can opt in to no longer supply legacy context by using the environment variable
ANALYTICS_NEXT_MODERN_CONTEXT=true.
At their own risk, package consumers can opt in to no longer supply legacy context by using the
environment variable ANALYTICS_NEXT_MODERN_CONTEXT=true.
When doing so, any analytics consumers that rely on legacy context will not receive any, and events may be lost! This would happen when using old atlaskit packages that consume a version of @atlaskit/analytics-next before this version.
When doing so, any analytics consumers that rely on legacy context will not receive any, and
events may be lost! This would happen when using old atlaskit packages that consume a version of
@atlaskit/analytics-next before this version.
#### Phase II (future major)
In a future release (TBA) we will remove all legacy context support and clean up the branching around ANALYTICS_NEXT_MODERN_CONTEXT.
After this point, @atlaskit/analytics-next will not work with components that use a version prior to this one.
In a future release (TBA) we will remove all legacy context support and clean up the branching
around ANALYTICS_NEXT_MODERN_CONTEXT. After this point, @atlaskit/analytics-next will not work
with components that use a version prior to this one.
### Patch Changes
- [`967279b3f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967279b3f8) - Fix for type names that ship with new hook
- [`967279b3f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967279b3f8) - Fix for
type names that ship with new hook

@@ -279,6 +362,8 @@ ## 7.0.3

- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
to TypeScript 3.9.6 and tslib to 2.0.0
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
to prevent duplicates of tslib being bundled.
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
upgrade to prevent duplicates of tslib being bundled.

@@ -291,3 +376,5 @@ - Updated dependencies

- [#4344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4344) [`723a322186`](https://bitbucket.org/atlassian/atlassian-frontend/commits/723a322186) - Hotfix to have a stable react context across multiple versions of @atlaskit/analytics-next
- [#4344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4344)
[`723a322186`](https://bitbucket.org/atlassian/atlassian-frontend/commits/723a322186) - Hotfix to
have a stable react context across multiple versions of @atlaskit/analytics-next

@@ -298,3 +385,6 @@ ## 7.0.1

- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`bff2f273bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bff2f273bf) - useAnalyticsEvents will no longer log errors when used without an AnalyticsListerner or AnalyticsContext
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
[`bff2f273bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bff2f273bf) -
useAnalyticsEvents will no longer log errors when used without an AnalyticsListerner or
AnalyticsContext

@@ -305,4 +395,7 @@ ## 7.0.0

- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
dropping IE11 support, from this version onwards there are no warranties of the package working in
IE11. For more information see:
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534

@@ -315,5 +408,8 @@ ## 6.3.6

Deletes internal package @atlaskit/type-helpers and removes all usages. @atlaskit/type-helpers has been superseded by native typescript helper utilities.- Updated dependencies [168b5f90e5](https://bitbucket.org/atlassian/atlassian-frontend/commits/168b5f90e5):
Deletes internal package @atlaskit/type-helpers and removes all usages. @atlaskit/type-helpers has
been superseded by native typescript helper utilities.- Updated dependencies
[168b5f90e5](https://bitbucket.org/atlassian/atlassian-frontend/commits/168b5f90e5):
- Updated dependencies [109004a98e](https://bitbucket.org/atlassian/atlassian-frontend/commits/109004a98e):
- Updated dependencies
[109004a98e](https://bitbucket.org/atlassian/atlassian-frontend/commits/109004a98e):
- @atlaskit/docs@8.5.1

@@ -328,3 +424,4 @@ - @atlaskit/button@13.3.10

Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):

@@ -350,5 +447,7 @@ - @atlaskit/docs@8.3.2

Fixes useAnalyticsEvents() not having a stable function reference.- [patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
Fixes useAnalyticsEvents() not having a stable function reference.-
[patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
Fixes data type to Object- Updated dependencies [24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
Fixes data type to Object- Updated dependencies
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):

@@ -379,3 +478,5 @@ - @atlaskit/field-text@9.0.14

Bug fix for using the hook with nested contexts, performance improvements, new `useAnalyticsEventsCallback` hook to provide a performance enhanced-abstraction for firing events with a callback.
Bug fix for using the hook with nested contexts, performance improvements, new
`useAnalyticsEventsCallback` hook to provide a performance enhanced-abstraction for firing events
with a callback.

@@ -388,3 +489,7 @@ ## 6.2.0

- Introduces a new custom React hook, `useAnalyticsEvents_experimental`, for creating analytics events within functional components. This hook replaces the need for the `withAnalyticsEvents` HOC. See the [Reference documentation](https://atlaskit.atlassian.com/packages/core/analytics-next/docs/reference) for details on how to use this new hook.
- Introduces a new custom React hook, `useAnalyticsEvents_experimental`, for creating analytics
events within functional components. This hook replaces the need for the `withAnalyticsEvents`
HOC. See the
[Reference documentation](https://atlaskit.atlassian.com/packages/core/analytics-next/docs/reference)
for details on how to use this new hook.

@@ -408,3 +513,4 @@ ## 6.1.0

Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
non-relative imports as relative imports

@@ -433,3 +539,4 @@ ## 6.0.2

Analytics-next has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No behavioural changes.
Analytics-next has been converted to Typescript. Typescript consumers will now get static type
safety. Flow types are no longer provided. No behavioural changes.

@@ -443,7 +550,12 @@ **Breaking changes**

- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide props as a generic type.
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide props as a generic type.
- Type `WithAnalyticsEventProps` has been renamed to `WithAnalyticsEventsProps` to match source code
- Type `CreateUIAnalyticsEventSignature` has been renamed to `CreateUIAnalyticsEvent` to match source code
- Type `UIAnalyticsEventHandlerSignature` has been renamed to `UIAnalyticsEventHandler` to match source code
- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
props as a generic type.
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
props as a generic type.
- Type `WithAnalyticsEventProps` has been renamed to `WithAnalyticsEventsProps` to match source
code
- Type `CreateUIAnalyticsEventSignature` has been renamed to `CreateUIAnalyticsEvent` to match
source code
- Type `UIAnalyticsEventHandlerSignature` has been renamed to `UIAnalyticsEventHandler` to match
source code
- Type `AnalyticsEventsPayload` has been renamed to `AnalyticsEventPayload`

@@ -508,3 +620,5 @@ - Type `ObjectType` has been removed, please use `Record<string, any>` or `[key: string]: any`

- Plug-and-play component. As soon and it's wrapping a component it's fully integrated.
- It has Analytics context and events integrated already. Keep in mind it requires `AnalyticsListener` as a top level component to work properly, otherwise it won't trigger analytics events.
- It has Analytics context and events integrated already. Keep in mind it requires
`AnalyticsListener` as a top level component to work properly, otherwise it won't trigger
analytics events.

@@ -557,3 +671,4 @@ ## 5.3.1

analytics-next now exports an ambient module declaration which resolves an issue with types being required via relative imports
analytics-next now exports an ambient module declaration which resolves an issue with types being
required via relative imports

@@ -566,3 +681,5 @@ ## 5.1.0

TypeScript users of withAnalyticsEvents and withAnalyticsContext are now required to provide props as a generic type. This is so that TypeScript can correctly calculate the props and defaultProps of the returned component.
TypeScript users of withAnalyticsEvents and withAnalyticsContext are now required to provide props
as a generic type. This is so that TypeScript can correctly calculate the props and defaultProps
of the returned component.

@@ -601,3 +718,4 @@ Before:

- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
this package, please ensure you use at least this version of react and react-dom.

@@ -608,3 +726,4 @@ ## 4.0.5

- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next supplied from itself.
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
supplied from itself.

@@ -619,3 +738,4 @@ ## 4.0.4

- Updated dependencies [1e826b2966](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e826b2966):
- Updated dependencies
[1e826b2966](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e826b2966):
- @atlaskit/docs@7.0.2

@@ -633,3 +753,4 @@ - @atlaskit/field-text@8.0.2

- Updated dependencies [9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
- Updated dependencies
[9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
- @atlaskit/docs@7.0.1

@@ -647,4 +768,5 @@ - @atlaskit/field-text@8.0.1

As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain `import` and
`export` declarations.
As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only
distribute esm. This means all distributed code will be transpiled, but will still contain
`import` and `export` declarations.

@@ -663,11 +785,22 @@ The major reason for doing this is to allow us to support multiple entry points in packages, e.g:

This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't _actually_ supposed to be used. 2. We are unable to do this _internally_ in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.
This has a couple of issues. 1, it treats the file system as API making internal refactors harder,
we have to worry about how consumers might be using things that aren't _actually_ supposed to be
used. 2. We are unable to do this _internally_ in @atlaskit packages. This leads to lots of
packages bundling all of theme, just to use a single color, especially in situations where tree
shaking fails.
To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.
To support being able to use multiple entrypoints internally, we unfortunately cannot have
multiple distributions as they would need to have very different imports from of their own
internal dependencies.
ES Modules are widely supported by all modern bundlers and can be worked around in node environments.
ES Modules are widely supported by all modern bundlers and can be worked around in node
environments.
We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.
We may choose to revisit this solution in the future if we find any unintended condequences, but
we see this as a pretty sane path forward which should lead to some major bundle size decreases,
saner API's and simpler package architecture.
Please reach out to #fabric-build (if in Atlassian) or create an issue in [Design System Support](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for external) if you have any questions or queries about this.
Please reach out to #fabric-build (if in Atlassian) or create an issue in
[Design System Support](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for
external) if you have any questions or queries about this.

@@ -704,8 +837,13 @@ ## 3.2.1

- Type `withAnalyticsEvents` and `withAnalyticsContext` HOCs so that they do not lose flow types of the components they wrap when chained together.
- Type `withAnalyticsEvents` and `withAnalyticsContext` HOCs so that they do not lose flow types
of the components they wrap when chained together.
This will fix flow types not flowing through all of the components that we have instrumented with analytics as they are typically wrapped with both HOCs. To get flow types flowing
through your components again, upgrade them to the latest version and also update their @atlaskit/analytics-next dependency to the latest version.
This will fix flow types not flowing through all of the components that we have instrumented
with analytics as they are typically wrapped with both HOCs. To get flow types flowing through
your components again, upgrade them to the latest version and also update their
@atlaskit/analytics-next dependency to the latest version.
We also now export `AnalyticsContextWrappedComp` and `AnalyticsEventsWrappedComp` parameterised types that allow you to explicitly type components wrapped with these HOCs which is necessary in cases where the HOC wrapping is extracted into another function.
We also now export `AnalyticsContextWrappedComp` and `AnalyticsEventsWrappedComp` parameterised
types that allow you to explicitly type components wrapped with these HOCs which is necessary in
cases where the HOC wrapping is extracted into another function.

@@ -720,25 +858,34 @@ ## 3.0.11

- [patch] Adds missing implicit @babel/runtime dependency [b71751b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b71751b)
- [patch] Adds missing implicit @babel/runtime dependency
[b71751b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b71751b)
## 3.0.9
- [patch] adds missing babel-runtime dependency to package json [93b031a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/93b031a)
- [patch] adds missing babel-runtime dependency to package json
[93b031a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/93b031a)
## 3.0.8
- [patch] Fixing analytics events for checkbox/radio/select [3e428e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3e428e3)
- [patch] Fixing analytics events for checkbox/radio/select
[3e428e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3e428e3)
## 3.0.7
- [patch] Loosen AnalyticsEventPayload type to cater for Screen events [2d4b52e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2d4b52e)
- [patch] Loosen AnalyticsEventPayload type to cater for Screen events
[2d4b52e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2d4b52e)
## 3.0.5
- [patch] Loosen AnalyticsEventCreator return type [f7432a2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f7432a2)
- [none] Updated dependencies [f7432a2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f7432a2)
- [patch] Loosen AnalyticsEventCreator return type
[f7432a2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f7432a2)
- [none] Updated dependencies
[f7432a2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f7432a2)
## 3.0.4
- [patch] update the dependency of react-dom to 16.4.2 due to vulnerability in previous versions read https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html for details [a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557)
- [none] Updated dependencies [a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557)
- [patch] update the dependency of react-dom to 16.4.2 due to vulnerability in previous versions
read https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html for details
[a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557)
- [none] Updated dependencies
[a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557)
- @atlaskit/field-text@7.0.4

@@ -749,3 +896,4 @@ - @atlaskit/button@9.0.5

- [patch] Updated dependencies [acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
- [patch] Updated dependencies
[acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
- @atlaskit/button@9.0.4

@@ -757,4 +905,6 @@ - @atlaskit/field-text@7.0.3

- [patch] Add a SSR test for every package, add react-dom and build-utils in devDependencies [7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5)
- [none] Updated dependencies [7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5)
- [patch] Add a SSR test for every package, add react-dom and build-utils in devDependencies
[7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5)
- [none] Updated dependencies
[7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5)
- @atlaskit/field-text@7.0.2

@@ -765,4 +915,6 @@ - @atlaskit/button@9.0.3

- [patch] Move analytics tests and replace elements to core [49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
- [none] Updated dependencies [49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
- [patch] Move analytics tests and replace elements to core
[49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
- [none] Updated dependencies
[49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
- @atlaskit/field-text@7.0.1

@@ -774,8 +926,11 @@ - @atlaskit/button@9.0.2

- [major] Updates to React ^16.4.0 [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
- [major] Updated dependencies [563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
- [major] Updates to React ^16.4.0
[7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
- [major] Updated dependencies
[563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
- @atlaskit/field-text@7.0.0
- @atlaskit/button@9.0.0
- @atlaskit/docs@5.0.0
- [major] Updated dependencies [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
- [major] Updated dependencies
[7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
- @atlaskit/field-text@7.0.0

@@ -787,9 +942,13 @@ - @atlaskit/button@9.0.0

- [patch] removes requirement of children to be a single React node [53cba6b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/53cba6b)
- [none] Updated dependencies [53cba6b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/53cba6b)
- [patch] removes requirement of children to be a single React node
[53cba6b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/53cba6b)
- [none] Updated dependencies
[53cba6b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/53cba6b)
## 2.1.8
- [patch] Update changelogs to remove duplicate [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
- [none] Updated dependencies [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
- [patch] Update changelogs to remove duplicate
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
- [none] Updated dependencies
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
- @atlaskit/button@8.1.1

@@ -800,3 +959,4 @@ - @atlaskit/docs@4.1.1

- [none] Updated dependencies [9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
- [none] Updated dependencies
[9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
- @atlaskit/docs@4.1.0

@@ -808,4 +968,6 @@ - @atlaskit/field-text@6.0.2

- [patch] Unpublish fake TS declaration file [ec9f11f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ec9f11f)
- [none] Updated dependencies [ec9f11f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ec9f11f)
- [patch] Unpublish fake TS declaration file
[ec9f11f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ec9f11f)
- [none] Updated dependencies
[ec9f11f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ec9f11f)

@@ -815,3 +977,4 @@ ## 2.1.5

- [patch] Update readme's [223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67)
- [patch] Updated dependencies [223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67)
- [patch] Updated dependencies
[223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67)
- @atlaskit/field-text@6.0.1

@@ -823,3 +986,4 @@ - @atlaskit/button@8.0.1

- [patch] Updated dependencies [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
- [patch] Updated dependencies
[1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
- @atlaskit/field-text@6.0.0

@@ -831,13 +995,20 @@ - @atlaskit/button@8.0.0

- [patch] Removed ambient typescript type declaration file from analytics-next - this may be a breaking change for typescript consumers [290d804](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/290d804)
- [none] Updated dependencies [290d804](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/290d804)
- [patch] Removed ambient typescript type declaration file from analytics-next - this may be a
breaking change for typescript consumers
[290d804](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/290d804)
- [none] Updated dependencies
[290d804](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/290d804)
## 2.1.2
- [patch] Fix prop callbacks specified in the create event map to not change reference values each render and instead only update when the original prop callback changes [586a80c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/586a80c)
- [none] Updated dependencies [586a80c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/586a80c)
- [patch] Fix prop callbacks specified in the create event map to not change reference values each
render and instead only update when the original prop callback changes
[586a80c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/586a80c)
- [none] Updated dependencies
[586a80c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/586a80c)
## 2.1.1
- [patch] Updated dependencies [d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
- [patch] Updated dependencies
[d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
- @atlaskit/field-text@5.0.3

@@ -849,69 +1020,90 @@ - @atlaskit/button@7.2.5

- [minor] Export cleanProps function that can be used to strip analytics props provided by our HOCs, useful when spreading props to a child element [973d6ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/973d6ea)
- [minor] Export cleanProps function that can be used to strip analytics props provided by our HOCs,
useful when spreading props to a child element
[973d6ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/973d6ea)
## 2.0.0
- [major] Bump to React 16.3. [4251858](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4251858)
- [major] Bump to React 16.3.
[4251858](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4251858)
## 1.1.10
- [patch] Adjusted exports to prevent attempted exporting of flow types in built code. [183ee96](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/183ee96)
- [patch] Adjusted exports to prevent attempted exporting of flow types in built code.
[183ee96](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/183ee96)
## 1.1.9
- [patch] Updates flow types of withAnalyticsEvents and withAnalyticsContext HOCs [26778bc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/26778bc)
- [patch] Uses element config flow type with button deprecation warnings hoc [a9aa90a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a9aa90a)
- [patch] Updates flow types of withAnalyticsEvents and withAnalyticsContext HOCs
[26778bc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/26778bc)
- [patch] Uses element config flow type with button deprecation warnings hoc
[a9aa90a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a9aa90a)
## 1.1.8
- [patch] Add "sideEffects: false" to AKM2 packages to allow consumer's to tree-shake [c3b018a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c3b018a)
- [patch] Add "sideEffects: false" to AKM2 packages to allow consumer's to tree-shake
[c3b018a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c3b018a)
## 1.1.7
- [patch] Fix/revert TS TDs in analytics-next [1284d32](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1284d32)
- [patch] Fix/revert TS TDs in analytics-next
[1284d32](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1284d32)
## 1.1.6
- [patch] Fix analytics-next TS type definition [9faaa5f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9faaa5f)
- [patch] Fix analytics-next TS type definition [7e26229](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e26229)
- [patch] Fix analytics-next TS type definition
[9faaa5f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9faaa5f)
- [patch] Fix analytics-next TS type definition
[7e26229](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e26229)
## 1.1.5
- [patch] Add analytics events for click and show actions of media-card [031d5da](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/031d5da)
- [patch] Add analytics events for click and show actions of media-card [b361185](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b361185)
- [patch] Add analytics events for click and show actions of media-card
[031d5da](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/031d5da)
- [patch] Add analytics events for click and show actions of media-card
[b361185](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b361185)
## 1.1.4
- [patch] fixes problem with withAnalyticsEvents HOC passing old function props to wrapped component [c88b030](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c88b030)
- [patch] fixes problem with withAnalyticsEvents HOC passing old function props to wrapped component
[c88b030](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c88b030)
## 1.1.3
- [patch] adds displayName to analytics HOCs [f69ccad](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f69ccad)
- [patch] adds displayName to analytics HOCs
[f69ccad](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f69ccad)
## 1.1.2
- [patch] Re-releasing due to potentially broken babel release [9ed0bba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ed0bba)
- [patch] Re-releasing due to potentially broken babel release
[9ed0bba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ed0bba)
## 1.1.1
- [patch] Remove min requirement of node 8 for analytics-next [c864671](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c864671)
- [patch] Remove min requirement of node 8 for analytics-next
[c864671](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c864671)
## 1.1.0
- [minor] adds createAndFireEvent utility method and updates docs [24a93fc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24a93fc)
- [minor] adds createAndFireEvent utility method and updates docs
[24a93fc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24a93fc)
## 1.0.3
- [patch] fixes flow type problem with wrapping stateless functional components in withAnalyticsEvents [8344ffb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8344ffb)
- [patch] fixes flow type problem with wrapping stateless functional components in
withAnalyticsEvents [8344ffb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8344ffb)
## 1.0.2
- [patch] Adds action key to analytics payload type [7deeaef](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7deeaef)
- [patch] Adds action key to analytics payload type
[7deeaef](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7deeaef)
## 1.0.1
- [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2 [1e57e5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e57e5a)
- [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2
[1e57e5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e57e5a)
## 1.0.0
- [major] release @atlaskit/analytics-next package [80695ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/80695ea)
- [major] release @atlaskit/analytics-next package
[80695ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/80695ea)

@@ -1,3 +0,3 @@

import { AnalyticsContextFunction } from './types';
import { type AnalyticsContextFunction } from './types';
declare const ExportedAnalyticsContext: AnalyticsContextFunction;
export default ExportedAnalyticsContext;
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
interface Props {

@@ -5,0 +5,0 @@ /** Children! */

@@ -1,3 +0,3 @@

import { AnalyticsContextFunction } from './types';
import { type AnalyticsContextFunction } from './types';
declare const AnalyticsContext: AnalyticsContextFunction;
export default AnalyticsContext;
/// <reference types="react" />
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
export type AnalyticsContextFunction = (props: {

@@ -4,0 +4,0 @@ /** Children! */

@@ -1,2 +0,2 @@

import React, { Component, ReactNode } from 'react';
import React, { Component, type ReactNode } from 'react';
type AnalyticsErrorBoundaryErrorInfo = {

@@ -21,5 +21,5 @@ componentStack: string;

constructor(props: AnalyticsErrorBoundaryProps);
componentDidCatch(error: Error, info?: AnalyticsErrorBoundaryErrorInfo): void;
componentDidCatch(error: Error, info: AnalyticsErrorBoundaryErrorInfo): void;
render(): JSX.Element | null;
}
export {};

@@ -1,3 +0,3 @@

import { AnalyticsListenerFunction } from './types';
import { type AnalyticsListenerFunction } from './types';
declare const ExportedAnalyticsListener: AnalyticsListenerFunction;
export default ExportedAnalyticsListener;
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import type { default as UIAnalyticsEvent } from '../../events/UIAnalyticsEvent';
type Props = {

@@ -6,0 +6,0 @@ /** Children! */

@@ -1,3 +0,3 @@

import { AnalyticsListenerFunction } from './types';
import { type AnalyticsListenerFunction } from './types';
declare const AnalyticsListener: AnalyticsListenerFunction;
export default AnalyticsListener;
/// <reference types="react" />
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import type UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
export type AnalyticsListenerFunction = (props: {

@@ -5,0 +5,0 @@ /** Children! */

@@ -1,2 +0,2 @@

import AnalyticsEvent, { AnalyticsEventPayload, AnalyticsEventProps } from './AnalyticsEvent';
import AnalyticsEvent, { type AnalyticsEventPayload, type AnalyticsEventProps } from './AnalyticsEvent';
type ChannelIdentifier = string;

@@ -3,0 +3,0 @@ type Context = Record<string, any>[];

import React from 'react';
import { CreateEventMap, CreateUIAnalyticsEvent } from '../types';
import { type CreateEventMap, type CreateUIAnalyticsEvent } from '../types';
export interface WithAnalyticsEventsProps {

@@ -4,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
export declare const useAnalyticsContext: () => AnalyticsReactContextInterface;

@@ -1,2 +0,2 @@

import { CreateUIAnalyticsEvent } from '../types';
import { type CreateUIAnalyticsEvent } from '../types';
export type UseAnalyticsEventsHook = {

@@ -3,0 +3,0 @@ createAnalyticsEvent: CreateUIAnalyticsEvent;

@@ -1,2 +0,2 @@

import { CreateEventMap } from '../types';
import { type CreateEventMap } from '../types';
export type PatchedPropsHook = {

@@ -3,0 +3,0 @@ patchedEventProps: CreateEventMap;

@@ -1,2 +0,2 @@

import UIAnalyticsEvent from '../events/UIAnalyticsEvent';
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
export type UsePlatformLeafEventHandlerHookArgs<T> = {

@@ -3,0 +3,0 @@ fn: (value: T, analyticsEvent: UIAnalyticsEvent) => void;

@@ -1,2 +0,2 @@

import UIAnalyticsEvent from '../events/UIAnalyticsEvent';
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
export type UsePlatformLeafSyntheticEventHandlerHookArgs = {

@@ -3,0 +3,0 @@ fn: (analyticsEvent: UIAnalyticsEvent) => void;

@@ -1,2 +0,2 @@

import { MutableRefObject } from 'react';
import { type MutableRefObject } from 'react';
export declare const useTrackedRef: <T>(value: T) => MutableRefObject<T>;
export type { CreateUIAnalyticsEvent } from './types';
export { default as AnalyticsEvent, isAnalyticsEvent, } from './events/AnalyticsEvent';
export type { AnalyticsEventPayload, AnalyticsEventProps, } from './events/AnalyticsEvent';
export { default as UIAnalyticsEvent, isUIAnalyticsEvent, } from './events/UIAnalyticsEvent';
export type { UIAnalyticsEventProps, UIAnalyticsEventHandler, } from './events/UIAnalyticsEvent';
export { default as AnalyticsEvent, isAnalyticsEvent } from './events/AnalyticsEvent';
export type { AnalyticsEventPayload, AnalyticsEventProps } from './events/AnalyticsEvent';
export { default as UIAnalyticsEvent, isUIAnalyticsEvent } from './events/UIAnalyticsEvent';
export type { UIAnalyticsEventProps, UIAnalyticsEventHandler } from './events/UIAnalyticsEvent';
export { default as AnalyticsListener } from './components/AnalyticsListener/index';

@@ -7,0 +7,0 @@ export { default as AnalyticsContext } from './components/AnalyticsContext/index';

@@ -1,3 +0,3 @@

import { AnalyticsEventPayload } from './events/AnalyticsEvent';
import UIAnalyticsEvent from './events/UIAnalyticsEvent';
import { type AnalyticsEventPayload } from './events/AnalyticsEvent';
import type UIAnalyticsEvent from './events/UIAnalyticsEvent';
export type CreateUIAnalyticsEvent = (payload: AnalyticsEventPayload) => UIAnalyticsEvent;

@@ -4,0 +4,0 @@ export type AnalyticsEventCreator = (create: CreateUIAnalyticsEvent, props: Record<string, any>) => UIAnalyticsEvent | undefined;

@@ -1,4 +0,4 @@

import { AnalyticsEventPayload } from '../events/AnalyticsEvent';
import { CreateUIAnalyticsEvent } from '../types';
import { type AnalyticsEventPayload } from '../events/AnalyticsEvent';
import { type CreateUIAnalyticsEvent } from '../types';
declare const _default: (channel?: string) => (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("..").UIAnalyticsEvent;
export default _default;

@@ -1,3 +0,3 @@

import { AnalyticsContextFunction } from './types';
import { type AnalyticsContextFunction } from './types';
declare const ExportedAnalyticsContext: AnalyticsContextFunction;
export default ExportedAnalyticsContext;
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
interface Props {

@@ -5,0 +5,0 @@ /** Children! */

@@ -1,3 +0,3 @@

import { AnalyticsContextFunction } from './types';
import { type AnalyticsContextFunction } from './types';
declare const AnalyticsContext: AnalyticsContextFunction;
export default AnalyticsContext;
/// <reference types="react" />
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
export type AnalyticsContextFunction = (props: {

@@ -4,0 +4,0 @@ /** Children! */

@@ -1,2 +0,2 @@

import React, { Component, ReactNode } from 'react';
import React, { Component, type ReactNode } from 'react';
type AnalyticsErrorBoundaryErrorInfo = {

@@ -21,5 +21,5 @@ componentStack: string;

constructor(props: AnalyticsErrorBoundaryProps);
componentDidCatch(error: Error, info?: AnalyticsErrorBoundaryErrorInfo): void;
componentDidCatch(error: Error, info: AnalyticsErrorBoundaryErrorInfo): void;
render(): JSX.Element | null;
}
export {};

@@ -1,3 +0,3 @@

import { AnalyticsListenerFunction } from './types';
import { type AnalyticsListenerFunction } from './types';
declare const ExportedAnalyticsListener: AnalyticsListenerFunction;
export default ExportedAnalyticsListener;
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import type { default as UIAnalyticsEvent } from '../../events/UIAnalyticsEvent';
type Props = {

@@ -6,0 +6,0 @@ /** Children! */

@@ -1,3 +0,3 @@

import { AnalyticsListenerFunction } from './types';
import { type AnalyticsListenerFunction } from './types';
declare const AnalyticsListener: AnalyticsListenerFunction;
export default AnalyticsListener;
/// <reference types="react" />
import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import type UIAnalyticsEvent from '../../events/UIAnalyticsEvent';
export type AnalyticsListenerFunction = (props: {

@@ -5,0 +5,0 @@ /** Children! */

@@ -1,2 +0,2 @@

import AnalyticsEvent, { AnalyticsEventPayload, AnalyticsEventProps } from './AnalyticsEvent';
import AnalyticsEvent, { type AnalyticsEventPayload, type AnalyticsEventProps } from './AnalyticsEvent';
type ChannelIdentifier = string;

@@ -3,0 +3,0 @@ type Context = Record<string, any>[];

import React from 'react';
import { CreateEventMap, CreateUIAnalyticsEvent } from '../types';
import { type CreateEventMap, type CreateUIAnalyticsEvent } from '../types';
export interface WithAnalyticsEventsProps {

@@ -4,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
import { type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
export declare const useAnalyticsContext: () => AnalyticsReactContextInterface;

@@ -1,2 +0,2 @@

import { CreateUIAnalyticsEvent } from '../types';
import { type CreateUIAnalyticsEvent } from '../types';
export type UseAnalyticsEventsHook = {

@@ -3,0 +3,0 @@ createAnalyticsEvent: CreateUIAnalyticsEvent;

@@ -1,2 +0,2 @@

import { CreateEventMap } from '../types';
import { type CreateEventMap } from '../types';
export type PatchedPropsHook = {

@@ -3,0 +3,0 @@ patchedEventProps: CreateEventMap;

@@ -1,2 +0,2 @@

import UIAnalyticsEvent from '../events/UIAnalyticsEvent';
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
export type UsePlatformLeafEventHandlerHookArgs<T> = {

@@ -3,0 +3,0 @@ fn: (value: T, analyticsEvent: UIAnalyticsEvent) => void;

@@ -1,2 +0,2 @@

import UIAnalyticsEvent from '../events/UIAnalyticsEvent';
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
export type UsePlatformLeafSyntheticEventHandlerHookArgs = {

@@ -3,0 +3,0 @@ fn: (analyticsEvent: UIAnalyticsEvent) => void;

@@ -1,2 +0,2 @@

import { MutableRefObject } from 'react';
import { type MutableRefObject } from 'react';
export declare const useTrackedRef: <T>(value: T) => MutableRefObject<T>;
export type { CreateUIAnalyticsEvent } from './types';
export { default as AnalyticsEvent, isAnalyticsEvent, } from './events/AnalyticsEvent';
export type { AnalyticsEventPayload, AnalyticsEventProps, } from './events/AnalyticsEvent';
export { default as UIAnalyticsEvent, isUIAnalyticsEvent, } from './events/UIAnalyticsEvent';
export type { UIAnalyticsEventProps, UIAnalyticsEventHandler, } from './events/UIAnalyticsEvent';
export { default as AnalyticsEvent, isAnalyticsEvent } from './events/AnalyticsEvent';
export type { AnalyticsEventPayload, AnalyticsEventProps } from './events/AnalyticsEvent';
export { default as UIAnalyticsEvent, isUIAnalyticsEvent } from './events/UIAnalyticsEvent';
export type { UIAnalyticsEventProps, UIAnalyticsEventHandler } from './events/UIAnalyticsEvent';
export { default as AnalyticsListener } from './components/AnalyticsListener/index';

@@ -7,0 +7,0 @@ export { default as AnalyticsContext } from './components/AnalyticsContext/index';

@@ -1,3 +0,3 @@

import { AnalyticsEventPayload } from './events/AnalyticsEvent';
import UIAnalyticsEvent from './events/UIAnalyticsEvent';
import { type AnalyticsEventPayload } from './events/AnalyticsEvent';
import type UIAnalyticsEvent from './events/UIAnalyticsEvent';
export type CreateUIAnalyticsEvent = (payload: AnalyticsEventPayload) => UIAnalyticsEvent;

@@ -4,0 +4,0 @@ export type AnalyticsEventCreator = (create: CreateUIAnalyticsEvent, props: Record<string, any>) => UIAnalyticsEvent | undefined;

@@ -1,4 +0,4 @@

import { AnalyticsEventPayload } from '../events/AnalyticsEvent';
import { CreateUIAnalyticsEvent } from '../types';
import { type AnalyticsEventPayload } from '../events/AnalyticsEvent';
import { type CreateUIAnalyticsEvent } from '../types';
declare const _default: (channel?: string) => (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("..").UIAnalyticsEvent;
export default _default;
{
"name": "@atlaskit/analytics-next",
"version": "9.3.0",
"description": "React components, HOCs and hooks to assist with tracking user activity with React components",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
"author": "Atlassian Pty Ltd",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module:es2019": "dist/es2019/index.js",
"types": "dist/types/index.d.ts",
"typesVersions": {
">=4.5 <4.9": {
"*": [
"dist/types-ts4.5/*",
"dist/types-ts4.5/index.d.ts"
]
}
},
"sideEffects": false,
"atlaskit:src": "src/index.ts",
"atlassian": {
"team": "UIP Frontend Observability",
"releaseModel": "continuous",
"productPushConsumption": [
"jira"
],
"website": {
"name": "Analytics next"
}
},
"./types": "./src/types.ts",
"af:exports": {
"./types": "./src/types.ts",
"./AnalyticsContext": "./src/components/AnalyticsContext/index.tsx",
"./AnalyticsListener": "./src/components/AnalyticsListener/index.tsx",
"./AnalyticsErrorBoundary": "./src/components/AnalyticsErrorBoundary.tsx",
"./withAnalyticsEvents": "./src/hocs/withAnalyticsEvents.tsx",
"./withAnalyticsContext": "./src/hocs/withAnalyticsContext.tsx",
"./usePlatformLeafEventHandler": "./src/hooks/usePlatformLeafEventHandler.ts",
"./useAnalyticsEvents": "./src/hooks/useAnalyticsEvents.ts",
"./useCallbackWithAnalytics": "./src/hooks/useCallbackWithAnalytics.ts",
"./usePatchedProps": "./src/hooks/usePatchedProps.ts",
"./AnalyticsEvent": "./src/events/AnalyticsEvent.ts",
"./UIAnalyticsEvent": "./src/events/UIAnalyticsEvent.ts",
"./createAndFireEvents": "./src/utils/createAndFireEvent.ts",
".": "./src/index.ts"
},
"dependencies": {
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
"@atlaskit/platform-feature-flags": "^0.2.2",
"@babel/runtime": "^7.0.0",
"prop-types": "^15.5.10",
"use-memo-one": "^1.1.1"
},
"peerDependencies": {
"react": "^16.8.0"
},
"devDependencies": {
"@atlaskit/ssr": "*",
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
"@atlassian/feature-flags-test-utils": "*",
"@testing-library/react": "^12.1.5",
"enzyme": "^3.10.0",
"react-dom": "^16.8.0",
"redux": "^3.7.2",
"storybook-addon-performance": "^0.16.0",
"typescript": "~5.4.2"
},
"techstack": {
"@atlassian/frontend": {
"import-structure": "atlassian-conventions"
},
"@repo/internal": {
"ui-components": [
"lite-mode"
],
"analytics": [
"analytics-next"
],
"design-tokens": [
"color"
],
"theming": [
"react-context"
],
"deprecation": [
"no-deprecated-imports"
]
}
},
"platform-feature-flags": {
"platform.analytics-next-use-modern-context_fqgbx": {
"type": "boolean"
}
},
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
}
"name": "@atlaskit/analytics-next",
"version": "9.3.1",
"description": "React components, HOCs and hooks to assist with tracking user activity with React components",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
"author": "Atlassian Pty Ltd",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module:es2019": "dist/es2019/index.js",
"types": "dist/types/index.d.ts",
"typesVersions": {
">=4.5 <4.9": {
"*": [
"dist/types-ts4.5/*",
"dist/types-ts4.5/index.d.ts"
]
}
},
"sideEffects": false,
"atlaskit:src": "src/index.ts",
"atlassian": {
"team": "UIP Frontend Observability",
"releaseModel": "continuous",
"productPushConsumption": [
"jira"
],
"website": {
"name": "Analytics next"
}
},
"./types": "./src/types.ts",
"af:exports": {
"./types": "./src/types.ts",
"./AnalyticsContext": "./src/components/AnalyticsContext/index.tsx",
"./AnalyticsListener": "./src/components/AnalyticsListener/index.tsx",
"./AnalyticsErrorBoundary": "./src/components/AnalyticsErrorBoundary.tsx",
"./withAnalyticsEvents": "./src/hocs/withAnalyticsEvents.tsx",
"./withAnalyticsContext": "./src/hocs/withAnalyticsContext.tsx",
"./usePlatformLeafEventHandler": "./src/hooks/usePlatformLeafEventHandler.ts",
"./useAnalyticsEvents": "./src/hooks/useAnalyticsEvents.ts",
"./useCallbackWithAnalytics": "./src/hooks/useCallbackWithAnalytics.ts",
"./usePatchedProps": "./src/hooks/usePatchedProps.ts",
"./AnalyticsEvent": "./src/events/AnalyticsEvent.ts",
"./UIAnalyticsEvent": "./src/events/UIAnalyticsEvent.ts",
"./createAndFireEvents": "./src/utils/createAndFireEvent.ts",
".": "./src/index.ts"
},
"dependencies": {
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
"@atlaskit/platform-feature-flags": "^0.3.0",
"@babel/runtime": "^7.0.0",
"prop-types": "^15.5.10",
"use-memo-one": "^1.1.1"
},
"peerDependencies": {
"react": "^16.8.0"
},
"devDependencies": {
"@atlaskit/ssr": "*",
"@atlassian/feature-flags-test-utils": "*",
"@testing-library/react": "^12.1.5",
"enzyme": "^3.10.0",
"react-dom": "^16.8.0",
"redux": "^3.7.2",
"storybook-addon-performance": "^0.16.0",
"typescript": "~5.4.2"
},
"techstack": {
"@atlassian/frontend": {
"import-structure": "atlassian-conventions"
},
"@repo/internal": {
"ui-components": [
"lite-mode"
],
"analytics": [
"analytics-next"
],
"design-tokens": [
"color"
],
"theming": [
"react-context"
],
"deprecation": [
"no-deprecated-imports"
]
}
},
"platform-feature-flags": {
"platform.analytics-next-use-modern-context_fqgbx": {
"type": "boolean"
}
}
}

@@ -5,3 +5,4 @@ <!-- API Report Version: 2.3 -->

> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
> Do not edit this file. This report is auto-generated using
> [API Extractor](https://api-extractor.com/).
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)

@@ -32,7 +33,7 @@

type AnalyticsContextFunction = (
props: {
children: React.ReactNode;
data: Object;
},
context?: AnalyticsReactContextInterface,
props: {
children: React.ReactNode;
data: Object;
},
context?: AnalyticsReactContextInterface,
) => JSX.Element;

@@ -42,10 +43,10 @@

export class AnalyticsErrorBoundary extends Component<
AnalyticsErrorBoundaryProps,
AnalyticsErrorBoundaryState
AnalyticsErrorBoundaryProps,
AnalyticsErrorBoundaryState
> {
constructor(props: AnalyticsErrorBoundaryProps);
// (undocumented)
componentDidCatch(error: Error, info?: AnalyticsErrorBoundaryErrorInfo): void;
// (undocumented)
render(): JSX.Element | null;
constructor(props: AnalyticsErrorBoundaryProps);
// (undocumented)
componentDidCatch(error: Error, info?: AnalyticsErrorBoundaryErrorInfo): void;
// (undocumented)
render(): JSX.Element | null;
}

@@ -55,3 +56,3 @@

type AnalyticsErrorBoundaryErrorInfo = {
componentStack: string;
componentStack: string;
};

@@ -61,11 +62,11 @@

export interface AnalyticsErrorBoundaryProps {
// (undocumented)
channel: string;
children: ReactNode;
// (undocumented)
data: {};
// (undocumented)
ErrorComponent?: React_2.ComponentType;
// (undocumented)
onError?: (error: Error, info?: AnalyticsErrorBoundaryErrorInfo) => void;
// (undocumented)
channel: string;
children: ReactNode;
// (undocumented)
data: {};
// (undocumented)
ErrorComponent?: React_2.ComponentType;
// (undocumented)
onError?: (error: Error, info?: AnalyticsErrorBoundaryErrorInfo) => void;
}

@@ -75,3 +76,3 @@

type AnalyticsErrorBoundaryState = {
hasError: boolean;
hasError: boolean;
};

@@ -81,22 +82,20 @@

export class AnalyticsEvent {
constructor(props: AnalyticsEventProps);
// (undocumented)
clone: () => AnalyticsEvent | null;
// (undocumented)
_isAnalyticsEvent: boolean;
// (undocumented)
payload: AnalyticsEventPayload;
// (undocumented)
update(updater: AnalyticsEventUpdater): this;
constructor(props: AnalyticsEventProps);
// (undocumented)
clone: () => AnalyticsEvent | null;
// (undocumented)
_isAnalyticsEvent: boolean;
// (undocumented)
payload: AnalyticsEventPayload;
// (undocumented)
update(updater: AnalyticsEventUpdater): this;
}
// @public (undocumented)
type AnalyticsEventCallback = (
payload: AnalyticsEventPayload,
) => AnalyticsEventPayload;
type AnalyticsEventCallback = (payload: AnalyticsEventPayload) => AnalyticsEventPayload;
// @public (undocumented)
type AnalyticsEventCreator = (
create: CreateUIAnalyticsEvent,
props: Record<string, any>,
create: CreateUIAnalyticsEvent,
props: Record<string, any>,
) => UIAnalyticsEvent | undefined;

@@ -109,3 +108,3 @@

export type AnalyticsEventProps = {
payload: AnalyticsEventPayload;
payload: AnalyticsEventPayload;
};

@@ -121,8 +120,8 @@

type AnalyticsListenerFunction = (
props: {
children?: React.ReactNode;
channel?: string;
onEvent: (event: UIAnalyticsEvent, channel?: string) => void;
},
context?: AnalyticsReactContextInterface,
props: {
children?: React.ReactNode;
channel?: string;
onEvent: (event: UIAnalyticsEvent, channel?: string) => void;
},
context?: AnalyticsReactContextInterface,
) => JSX.Element;

@@ -139,3 +138,3 @@

export function cleanProps(props: Record<string, any>): {
[x: string]: any;
[x: string]: any;
};

@@ -148,5 +147,5 @@

export const createAndFireEvent: (
channel?: string,
channel?: string,
) => (
payload: AnalyticsEventPayload,
payload: AnalyticsEventPayload,
) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;

@@ -161,5 +160,3 @@

// @public (undocumented)
export type CreateUIAnalyticsEvent = (
payload: AnalyticsEventPayload,
) => UIAnalyticsEvent;
export type CreateUIAnalyticsEvent = (payload: AnalyticsEventPayload) => UIAnalyticsEvent;

@@ -174,21 +171,19 @@ // @public (undocumented)

export class UIAnalyticsEvent extends AnalyticsEvent {
constructor(props: UIAnalyticsEventProps);
// (undocumented)
clone: () => UIAnalyticsEvent | null;
// (undocumented)
context: Context;
// (undocumented)
fire: (channel?: string) => void;
// (undocumented)
handlers: UIAnalyticsEventHandler[];
// (undocumented)
hasFired: boolean;
// (undocumented)
_isUIAnalyticsEvent: boolean;
// (undocumented)
update(
updater:
| ((payload: AnalyticsEventPayload) => AnalyticsEventPayload)
| Record<string, any>,
): this;
constructor(props: UIAnalyticsEventProps);
// (undocumented)
clone: () => UIAnalyticsEvent | null;
// (undocumented)
context: Context;
// (undocumented)
fire: (channel?: string) => void;
// (undocumented)
handlers: UIAnalyticsEventHandler[];
// (undocumented)
hasFired: boolean;
// (undocumented)
_isUIAnalyticsEvent: boolean;
// (undocumented)
update(
updater: ((payload: AnalyticsEventPayload) => AnalyticsEventPayload) | Record<string, any>,
): this;
}

@@ -198,4 +193,4 @@

export type UIAnalyticsEventHandler = (
event: UIAnalyticsEvent,
channel?: ChannelIdentifier,
event: UIAnalyticsEvent,
channel?: ChannelIdentifier,
) => void;

@@ -205,4 +200,4 @@

export type UIAnalyticsEventProps = AnalyticsEventProps & {
context?: Context;
handlers?: UIAnalyticsEventHandler[];
context?: Context;
handlers?: UIAnalyticsEventHandler[];
};

@@ -215,3 +210,3 @@

export type UseAnalyticsEventsHook = {
createAnalyticsEvent: CreateUIAnalyticsEvent;
createAnalyticsEvent: CreateUIAnalyticsEvent;
};

@@ -224,5 +219,5 @@

export type UseCallbackWithAnalyticsHook = (
method: (...args: any[]) => void,
payload: ((...args: any[]) => void) | Record<string, any>,
channel?: string,
method: (...args: any[]) => void,
payload: ((...args: any[]) => void) | Record<string, any>,
channel?: string,
) => (...args: any[]) => void;

@@ -232,9 +227,9 @@

export function usePlatformLeafEventHandler<T>({
fn,
action,
componentName,
actionSubject,
packageName,
packageVersion,
analyticsData,
fn,
action,
componentName,
actionSubject,
packageName,
packageVersion,
analyticsData,
}: UsePlatformLeafEventHandlerHookArgs<T>): (value: T) => void;

@@ -247,9 +242,9 @@

export type UsePlatformLeafEventHandlerHookArgs<T> = {
fn: (value: T, analyticsEvent: UIAnalyticsEvent) => void;
action: string;
componentName: string;
actionSubject?: string;
packageName: string;
packageVersion: string;
analyticsData?: Record<string, any>;
fn: (value: T, analyticsEvent: UIAnalyticsEvent) => void;
action: string;
componentName: string;
actionSubject?: string;
packageName: string;
packageVersion: string;
analyticsData?: Record<string, any>;
};

@@ -259,8 +254,8 @@

export function usePlatformLeafSyntheticEventHandler({
fn,
action,
componentName,
packageName,
packageVersion,
analyticsData,
fn,
action,
componentName,
packageName,
packageVersion,
analyticsData,
}: UsePlatformLeafSyntheticEventHandlerHookArgs): () => void;

@@ -273,8 +268,8 @@

export type UsePlatformLeafSyntheticEventHandlerHookArgs = {
fn: (analyticsEvent: UIAnalyticsEvent) => void;
action: string;
componentName: string;
packageName: string;
packageVersion: string;
analyticsData?: Record<string, any>;
fn: (analyticsEvent: UIAnalyticsEvent) => void;
action: string;
componentName: string;
packageName: string;
packageVersion: string;
analyticsData?: Record<string, any>;
};

@@ -284,10 +279,8 @@

export const withAnalyticsContext: (
defaultData?: any,
defaultData?: any,
) => <Props, Component>(
WrappedComponent: React_2.JSXElementConstructor<Props> & Component,
WrappedComponent: React_2.JSXElementConstructor<Props> & Component,
) => React_2.ForwardRefExoticComponent<
React_2.PropsWithoutRef<
JSX.LibraryManagedAttributes<Component, Props & WithContextProps>
> &
React_2.RefAttributes<any>
React_2.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> &
React_2.RefAttributes<any>
>;

@@ -297,13 +290,10 @@

export const withAnalyticsEvents: (
createEventMap?: CreateEventMap,
createEventMap?: CreateEventMap,
) => <Props extends WithAnalyticsEventsProps, Component>(
WrappedComponent: React_2.JSXElementConstructor<Props> & Component,
WrappedComponent: React_2.JSXElementConstructor<Props> & Component,
) => React_2.ForwardRefExoticComponent<
React_2.PropsWithoutRef<
JSX.LibraryManagedAttributes<
Component,
Omit<Props, keyof WithAnalyticsEventsProps>
>
> &
React_2.RefAttributes<any>
React_2.PropsWithoutRef<
JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>
> &
React_2.RefAttributes<any>
>;

@@ -313,5 +303,5 @@

export interface WithAnalyticsEventsProps {
createAnalyticsEvent?: CreateUIAnalyticsEvent;
// (undocumented)
ref?: React_2.Ref<any>;
createAnalyticsEvent?: CreateUIAnalyticsEvent;
// (undocumented)
ref?: React_2.Ref<any>;
}

@@ -321,4 +311,4 @@

export interface WithContextProps {
// (undocumented)
analyticsContext?: Record<string, any>;
// (undocumented)
analyticsContext?: Record<string, any>;
}

@@ -337,3 +327,3 @@

{
"react": "^16.8.0"
"react": "^16.8.0"
}

@@ -340,0 +330,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc