Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@atlaskit/analytics-namespaced-context

atlassian30.4kApache-2.06.12.1TypeScript support: included

Provides a namespace for AnalyticsContext data (@atlaskit/analytics-next)

fabric, ui

readme

changelog

@atlaskit/analytics-namespaced-context

6.12.1

Patch Changes

6.12.0

Minor Changes

6.11.0

Minor Changes

  • #127511 db30e29344013 - Widening range of react and react-dom peer dependencies from ^16.8.0 || ^17.0.0 || ~18.2.0 to the wider range of ^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).

    This change has been done to enable usage of `react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platform` packages.

Patch Changes

  • Updated dependencies

6.10.2

Patch Changes

  • Updated dependencies

6.10.1

Patch Changes

6.10.0

Minor Changes

6.9.2

Patch Changes

6.9.1

Patch Changes

6.9.0

Minor Changes

6.8.0

Minor Changes

6.7.4

Patch Changes

  • #41325 5ecc6e21ca8 - Enrol @atlaskit/analytics-namespaced-context to push model in JFE.

6.7.3

Patch Changes

6.7.2

Patch Changes

6.7.1

Patch Changes

6.7.0

Minor Changes

Patch Changes

  • Updated dependencies

6.6.1

Patch Changes

  • Updated dependencies

6.6.0

Minor Changes

6.5.2

Patch Changes

6.5.1

Patch Changes

6.5.0

Minor Changes

6.4.1

Patch Changes

6.4.0

Minor Changes

6.3.0

Minor Changes

6.2.0

Minor Changes

6.1.0

Minor Changes

6.0.0

Major Changes

  • #8644 4f1d3a6b22a - Refactored Media Analytics Namespaced Context (now delivered by our HOC in media-common)

5.1.4

Patch Changes

5.1.3

Patch Changes

  • #5497 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.

5.1.2

Patch Changes

  • Updated dependencies

5.1.1

Patch Changes

  • #3885 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.

5.1.0

Minor Changes

  • #3823 6faafb144c - Introduce MediaFeatureFlags. Refactor components to use.

Patch Changes

  • Updated dependencies

5.0.1

Patch Changes

5.0.0

Major Changes

Patch Changes

  • Updated dependencies

4.3.0

Minor Changes

4.2.0

Minor Changes

  • [minor]69b678b38c:

    Refactor media analytics listener to properly include context data. Add and use new media namespace analytics context in MediaCard

Patch Changes

4.1.11

Patch Changes

4.1.10

Patch Changes

FABDODGEM-13 Editor Damask Release - Internal post

BREAKING CHANGES


Affected Editor Components:

tables, media, mobile, emoji, tasks & decisions, analytics

Editor

Mobile

Media

i18n-tools

Bumped dependencies.

4.1.9

Patch Changes

  • [patch]35d2229b2a:

    Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.

4.1.8

Patch Changes

  • [patch]a2d0043716:

    Updated version of analytics-next to fix potential incompatibilities with TS 3.6

4.1.7

Patch Changes

  • [patch]097b696613:

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

4.1.6

Patch Changes

4.1.5

Patch Changes

  • [patch]926b43142b:

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

    Breaking changes

    • withAnalyticsForSumTypeProps alias has been removed, please use withAnalyticsEvents
    • AnalyticsContextWrappedComp alias has been removed, please use withAnalyticsContext

    Breaking changes to TypeScript annotations

    • 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
    • Type ObjectType has been removed, please use Record<string, any> or [key: string]: any
    • Type UIAnalyticsEventInterface has been removed, please use UIAnalyticsEvent
    • Type AnalyticsEventInterface has been removed, please use AnalyticsEvent
    • Type CreateAndFireEventFunction removed and should now be inferred by TypeScript
    • Type AnalyticsEventUpdater removed and should now be inferred by TypeScript

4.1.4

Patch Changes

  • [patch]9f8ab1084b:

    Consume analytics-next ts type definitions as an ambient declaration.

4.1.3

Patch Changes

  • [patch]bbff8a7d87:

    Fixes bug, missing version.json file

4.1.2

Patch Changes

  • [patch]18dfac7332:

    In this PR, we are:

    • Re-introducing dist build folders
    • Adding back cjs
    • Replacing es5 by cjs and es2015 by esm
    • Creating folders at the root for entry-points
    • Removing the generation of the entry-points at the root Please see this ticket or this page for further details

4.1.1

Patch Changes

  • [patch]d0db01b410:

    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.

    Before:

    withAnalyticsEvents()(Button) as ComponentClass<Props>;

    After:

    withAnalyticsEvents<Props>()(Button);

4.1.0

  • [minor]f53003a5ed:

    • ED-6741 Add 'appearance' to all editor analytics events

4.0.0

  • [major]7c17b35107:

    • 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.

3.0.3

3.0.2

  • [patch]3f28e6443c:

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

3.0.1

  • [patch]1bcaa1b991:

    • Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js

3.0.0

  • [major]9d5cc39394:

    • Dropped ES5 distributables from the typescript packages

2.2.1

2.2.0

  • [minor]8c65a38bfc:

    • enable noImplicitAny for elements analytics packages. Fix related issues.

2.1.5

2.1.4

  • [patch] Analytics event's 'source' field from GasPayload type is now optional. In most cases, the 'source' field is expected to be set by the integrator through AnalyticsContext. Thus it's recommended that components do not set it to avoid overriding the one provided by the integrating product. Analytics listeners are handling the case where the 'source' field couldn't be found by setting the default value "unknown" before sending the event through the client. 1c0ea95

2.1.3

  • [patch] fixed imports, docs and made GasPayload package attributes optional 6be5eed
  • [patch] use createAndFire function from analytics-next 095f356
  • [patch] Fixed TS errors and code improvements b290312
  • [patch] enable analytics-next TDs on analytics-listeners and analytics-namespaced-context e65f377

2.1.2

2.1.1

2.1.0

2.0.3

2.0.2

2.0.1

  • [patch] fixes problem with modules not being exported 80e90ed

2.0.0

1.0.3

1.0.2

1.0.1

  • [patch] wrapper for analytics-next AnalyticsContext to add a namespace 91e5997