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

Package detail

@kalamazoo/smart-card

stevenselcuk20Apache-2.01.0.2TypeScript support: included

Smart card component

readme

changelog

@kalamazoo/smart-card

12.6.2

Patch Changes

12.6.1

Patch Changes

12.6.0

Minor Changes

  • [minor]2f5306772c:

    Updated analytics events and changed error handling to better support fallback onto blue links

12.5.11

Patch Changes

  • [patch]47ff615517:

    Ensure smartlinks client handles errors batched with JsonLd- [patch]ae4f336a3a:

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.

12.5.10

Patch Changes

12.5.9

12.5.8

Patch Changes

  • [patch]35d2229b2a:

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

12.5.7

Patch Changes

  • [patch]a2d0043716:

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

12.5.6

12.5.5

Patch Changes

  • [patch]fc79969f86:

    Update all the theme imports in media to use multi entry points

12.5.4

Patch Changes

  • [patch]b8fd0f0847:

    hot-88372: fix css props breaking in layoutNG.

12.5.3

Patch Changes

  • [patch]07dd73fa12:

    FM-2240 Fix issue where smart links would cause hybrid renderer to crash in Android

12.5.2

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

12.5.1

Patch Changes

12.5.0

Minor Changes

  • [minor]bdee736f14:

    ED-7175: unify smart link and hyperlink toolbars

    Also updates the toDOM and parseDOM on ADF nodes, making url optional.

    Smart cards can now optionally be passed an onResolve callback, of the shape:

    onResolve?: (data: { url?: string; title?: string }) => void;

    This gets fired when the view resolves a smart card from JSON-LD, either via the client or the data prop.

Patch Changes

  • [patch]32a88ae6b7:

    SL-365: link target for smart link should come from props rather than JSON-LD

    This also reduces the possibility of XSS attacks. Implementors should still verify they're not passing invalid URLs to the smart-card components.- [patch]7f1bab3c93:

    SL-359: pass onClick props to pending and error states

12.4.4

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

12.4.3

12.4.2

Patch Changes

  • [patch]77b09e36eb:

    fix: provide the correct url for the edge proxy to api-private.atlassian.com

12.4.1

Patch Changes

  • [patch]688f2957ca:

    Fixes various TypeScript errors which were previously failing silently

12.4.0

Minor Changes

  • [minor]b19bf68c22:

    fix: when environment is not provided then default to using the edge proxy instead

12.3.5

Patch Changes

  • [patch]6695dbd447:

    fix: ensure smartlinks render a not found view when the link resource isn't found

12.3.4

Patch Changes

  • [patch]19a83a0c7e:

    fixed issues with cards not updating after authentication

12.3.3

Patch Changes

  • [patch]8903a232f7:

    fix: fallback to blue links when resolve is unsupported

12.3.2

Patch Changes

  • [patch]9f8ab1084b:

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

12.3.1

Patch Changes

  • [patch]6742fbf2cc:

    bugfix, fixes missing version.json file

12.3.0

Minor Changes

  • [minor]602ab89822:

    SL-345 add property for disabling auth flow of Smart Links (for Mobile).

12.2.8

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

12.2.7

Patch Changes

  • [patch]b346bb2963:

    added support for batching of link resolve requests in Smart Card client.

12.2.6

Patch Changes

  • [patch]c95713b660:

    fix lazy rendering offset to be more portable between devices

12.2.5

12.2.4

Patch Changes

  • [patch]aed5ccba18:

    SL-343 fix behaviour when using middle-click or clicking inside of iframes for inline Smart Links.

12.2.3

12.2.2

Patch Changes

  • [patch]4258086c0d:

    fix: some smartlinks with sourcecode artifacts were being incorrectly rendered

12.2.1

Patch Changes

  • [patch]b5eb352152:

    SL-336: fix page crash when state is undefined.

12.2.0

Minor Changes

  • [minor]09f094a7a2:

    SL-259: bump react-lazily-render, remove react-lazily-render-scroll-parent.

12.1.1

Patch Changes

  • [patch]8e50d00fc6:

    SL-331: fix edit handler for smart-card.

12.1.0

Minor Changes

  • [minor]86bf524679:

    ED-7117, ED-7087: Fix copy pasting smart links out of editor. Fallback to HTML anchor tag if errors occur during rendering (e.g. no provider found).

12.0.0

Major Changes

  • [major]393fb6acd2:

    refactor @kalamazoo/smart-card front-end: simplification. BREAKING CHANGE: Client no longer accepts configuration options as first argument; deprecated in favour of new state management layer.

11.1.6

11.1.5

Patch Changes

  • [patch]1347760307:

    • fix pull request, branch and commit name formatting

11.1.4

11.1.3

  • [patch]b0ef06c685:

    • This is just a safety release in case anything strange happened in in the previous one. See Pull Request #5942 for details

11.1.2

11.1.1

11.1.0

  • [minor]4969df0716:

    • fix lazy rendering bugs in Smart Links.

11.0.5

11.0.4

  • [patch]94ffb3b638:

    • check for taskType icon in the json payload

11.0.3

  • [patch]6a52b3d258:

    • fix for clicking behaviour in view/edit mode for Inline Smart Links.

11.0.2

  • [patch]7e18a6398b:

    • improve type safety when defining smart-card environment

11.0.1

  • [patch]b7687b9981:

    • Changed smart link functionality so that it will open in the same tab if clicked.

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

10.5.0

  • [minor]593404cba8:

    • add status lozenge to source code issue references.

10.4.2

10.4.1

  • [patch]3e4c4d7e2d:

    • fix: send 'Origin' header in resolve requests

10.4.0

  • [minor]da5a7f3390:

    • fix third-party link extractors to resolve URLs more accurately.

10.3.1

10.3.0

  • [minor]ce985861c3:

    • Added analytics for UI actions, and updated existing operational analytics events

10.2.4

10.2.3

  • [patch]3f28e6443c:

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

10.2.2

10.2.1

  • [patch]d13fad66df:

    • Enable esModuleInterop for typescript, this allows correct use of default exports

10.2.0

  • [minor]9b0dd21ce7:

    • allow the appearance of lozenges within smart link tasks to be configured

10.1.2

  • [patch]aa117f5341:

    • fix alignment and UI for inline Smart Links.

10.1.1

10.1.0

  • [minor]11a6c98707:

    • refactor Smart Links frontend directory structure.

10.0.2

10.0.1

  • [patch]1bcaa1b991:

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

10.0.0

  • [major]9d5cc39394:

    • Dropped ES5 distributables from the typescript packages

9.11.4

  • [patch]8ed53a1cbb:

    • fix padding, wrapping for inline smart links.

9.11.3

9.11.2

9.11.1

9.11.0

9.10.0

  • [minor]ea423a619f:

    • Fixed the call to the /check endpoint

9.9.0

9.8.0

  • [minor]1594f351d9:

    • added inline extractors for Bitbucket and Github.

9.7.1

9.7.0

  • [minor]1c62bcce7d:

    • Fix a problem with smart cards not appearing sometimes when lazy rendered and lazy loaded after code-split.

9.6.8

  • [patch]af3918bc89:

    • The url part of the unauthorized link is now grey

9.6.7

9.6.6

  • [patch]5ae645d661:

    • Fixing analytics in smart-cards

9.6.5

  • [patch]2035bef8fb:

    • Fix inline extractor priority preventing @type arrays in some cases.

9.6.4

  • [patch]56c5a4b41f:

    • Fix "try again" should not be showing when there are no auth methods

9.6.3

  • [patch]63e6f7d420:

    • Fix missing attributes for link view

9.6.2

  • [patch]cbc601aed3:

    • Added missing type of events for Confluence

9.6.1

  • [patch]bef9abc8de:

    • added background colour to inline card views, fixed icon alignment.

9.6.0

  • [minor]27b12fdfc6:

    • added support for rendering of icons in Jira links

9.5.0

  • [minor]d664fc3d49:

    • added support for rendering of icons with Confluence links

9.4.1

9.4.0

  • [minor]8ff07c1:

    • Analytics, first attempt, validate the idea
  • [minor]7777442:

    • More analytics for smart links
  • [minor]7302ea6:

    • Analytics for smart cards

9.3.0

  • [minor]150626e:

    • add support for source code repository urls (currently Bitbucket and Github) in smart-cards.

9.2.2

9.2.1

  • [patch]9c50550:

    • Do not show connect button if there are no auth methods.

9.2.0

  • [minor]95f98cc:

    • User can click on a smart card to open a new window/tab

9.1.0

  • [minor]1175616:

    • Simplified error state in inline cards: no red state anymore, just blue link

9.0.4

9.0.3

9.0.2

9.0.1

  • [patch]4c0c2a0:

    • Fix Cards throwing Error when client is not provided.

9.0.0

  • [major]df32968:

    • Introduced pending state (which is represented as a link) and a race between resolving state and the data fetch.

8.8.5

8.8.4

8.8.3

8.8.2

  • [patch]b859e08:

    • Update dependent versions

8.8.1

8.8.0

  • [minor]93b31fa:

    • Add support for nested <SmartCardProvider />

8.7.1

  • [patch]00cd9a8:

    • Add tag support for inline task card.

8.7.0

  • [minor]e89e244:

    • Implemented time-based caching for the client.

8.6.3

  • [patch]4b989c3:

    • Fix inline cards crashing after change to the format.

8.6.2

  • [patch]a567cc9:

    • Improve rendering of Smart Cards.

8.6.1

  • [patch]7bc4461:

    • ED-5565: support connecting external React.Context to nodeviews

8.6.0

  • [minor]1aa57ab:

    Clean up for media up and new task converter for smart cards

  • [minor]d310628:

    Added a converter for atlassian:task type

8.5.2

  • [patch] ED-5439: add block smart cards, toolbar switcher 5f8bdfe

8.5.1

  • [patch] fix cards being reloaded with the same definition id b4b6a45

8.5.0

  • [minor] Added task converter 8678076

8.4.1

  • [patch] Update blockcard and inline card exports to be compatible with tree shaking. Preperation for asyncloading parts of smart card ced32d0

8.4.0

  • [minor] Client to be extended 039c0ad

8.3.3

  • [patch] Replace @atlassian/outbound-auth-flow-client with @kalamazoo/ faff9c1

8.3.2

  • [patch] expose onClick handler for Card 3f5585c

8.3.1

  • [patch] Additional test case 9b86661

8.3.0

  • [minor] Refactored the rxjs set up for smart cards 026c96e

8.2.4

  • [patch] Removes usages of rxjs/Rx d098f25

8.2.3

  • [patch] Fix rxjs and date-fns import in TS components ab15cee

8.2.2

8.2.1

  • [patch] Fix rxjs imports to only import what's needed 2e0ce2b

8.2.0

  • [minor] Added isSelected to the Card component (inline resolved view) 6666d82

8.1.2

8.1.1

8.1.0

  • [minor] Switched to the amerizan way of spelling unauthorized 7c223f9

8.0.1

8.0.0

  • [major] fix call to ORS by switching to fetch from XHR 48b95b0
  • [patch] Cleaner fetch function e9b1477

7.0.6

7.0.5

  • [patch] ED-4824: added renderer support for smart cards 7cf0a78

7.0.4

  • [patch] ED-5222: bump react-lazily-render package 5844820

7.0.3

  • [patch] Fix es5 exports of some of the newer modules 3f0cd7d

7.0.2

7.0.1

  • [patch] Fix CORS request in Smart Card b0e2ce3

7.0.0

6.0.1

6.0.0

5.3.3

5.3.2

5.3.1

5.3.0

  • [minor] Error view for inline smart card 74a0d46
  • [minor] Implemented auth error view for the inline card 6c6f078
  • [minor] Implemented auth error view for inline SC 5bb26b4

5.2.1

5.2.0

5.1.1

  • [patch] Fix UI issues with inline card resolving view 2de7ce7
  • [patch] Fix for inline resolved card 97efb49
  • [patch] Fix the resolving view f86d117

5.1.0

  • [minor] added the LinkView for inline cards in the resolving/errored state 823caef

5.0.0

  • [major] Renamed and refactored the resolved for inline cards 732d2f5

4.0.0

3.0.4

3.0.3

  • [patch] fix inline smart-cards to support styled-components v1 35d547f

3.0.2

3.0.1

  • [patch] add @types/prop-types to dependencies of smart-card d558d2b

3.0.0

  • [major] Renamed smart card components and exposed inline smart card views 1094bb6

2.0.2

  • [patch] Implemented <InlineCardView /> for displaying a smart card inline with text. This view is NOT directly exported to consumers. 293b3a7

2.0.1

  • [patch] Added missing dependencies and added lint rule to catch them all 0672503

2.0.0

  • [major] Bump to React 16.3. 4251858

1.0.2

  • [patch] fixed missing and inccorect versions of dependencies 7bfbb09
  • [patch] fix dependencies 0e57cde

1.0.1

  • [patch] fix path for atkaskit in package.json 6ac9661