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

Package detail

@kalamazoo/media-editor

stevenselcuk7Apache-2.01.0.2TypeScript support: included

Media component for image annotations

readme

changelog

@kalamazoo/media-editor

37.0.3

Patch Changes

37.0.2

Patch Changes

  • [patch]a4517c2de6:

    Pin perf-marks package, as it contains invalid es5 in latest release

37.0.1

Patch Changes

37.0.0

Major Changes

  • [major]c3e65f1b9e:

    Breaking change

    remove deprecated "context" property from media components in favor of "mediaClientConfig"

    This affects all public media UI components:

    • Card
    • Filmstrip
    • SmartMediaEditor
    • MediaImage
    • Dropzone
    • Clipboard
    • Browser
    • MediaPicker
    • MediaViewer

    Before:

    import {ContextFactory} from '@kalamazoo/media-core';
    import {Card} from '@kalamazoo/media-card'
    import {SmartMediaEditor} from '@kalamazoo/media-editor'
    import {Filmstrip} from '@kalamazoo/media-filmstrip'
    import {MediaImage} from '@kalamazoo/media-image'
    import {MediaViewer} from '@kalamazoo/media-viewer'
    import {Dropzone, Clipboard, Browser, MediaPicker} from '@kalamazoo/media-picker';
    
    const context = ContextFactory.creat({
      authProvider: () => Promise.resolve({})
    })
    
    const mediaPicker = MediaPicker(context);
    
    <Card context={context}>
    <SmartMediaEditor context={context}>
    <Filmstrip context={context}>
    <MediaImage context={context}>
    <Dropzone context={context}>
    <Clipboard context={context}>
    <Browser context={context}>
    <MediaViewer context={context}>

    Now:

    import {MediaClientConfig} from '@kalamazoo/media-core';
    import {Card} from '@kalamazoo/media-card'
    import {SmartMediaEditor} from '@kalamazoo/media-editor'
    import {Filmstrip} from '@kalamazoo/media-filmstrip'
    import {MediaImage} from '@kalamazoo/media-image'
    import {MediaViewer} from '@kalamazoo/media-viewer'
    import {Dropzone, Clipboard, Browser, MediaPicker} from '@kalamazoo/media-picker';

const mediaClientConfig: MediaClientConfig = { authProvider: () => Promise.resolve({}) }

const mediaPicker = MediaPicker(mediaClientConfig);

<Card mediaClientConfig={mediaClientConfig}> <SmartMediaEditor mediaClientConfig={mediaClientConfig}> <Filmstrip mediaClientConfig={mediaClientConfig}> <MediaImage mediaClientConfig={mediaClientConfig}> <Dropzone mediaClientConfig={mediaClientConfig}> <Clipboard mediaClientConfig={mediaClientConfig}> <Browser mediaClientConfig={mediaClientConfig}> <MediaViewer mediaClientConfig={mediaClientConfig}> ```

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.

Minor Changes

implemented analytics for annotation editor

36.3.5

Patch Changes

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

36.3.4

Patch Changes

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

36.3.3

Patch Changes

Add linting rule to prevent unsafe usage of setTimeout within React components.

36.3.2

Patch Changes

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

36.3.1

36.3.0

Minor Changes

Prefix the legacy lifecycle methods with UNSAFE_* to avoid warning in React 16.9+

More information about the deprecation of lifecycles methods can be found here: https://reactjs.org/blog/2018/03/29/react-v-16-3.html#component-lifecycle-changes

36.2.13

Patch Changes

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

36.2.12

Patch Changes

Fixes type errors which were incompatible with TS 3.6

36.2.11

Patch Changes

Upgraded Typescript to 3.3.x

36.2.10

36.2.9

36.2.8

Patch Changes

Adding try/catch in async imports for @kalamazoo/media-avatar-picker, @kalamazoo/media-card, @kalamazoo/media-editor, @kalamazoo/media-viewer

36.2.7

36.2.6

Patch Changes

Update package.json with a correct script to copy binaries in both esm and cjs. Adding a check to make sure those folders exits after being built.

36.2.5

Patch Changes

change copy-binaries script to move media-editor binaries into right destination

36.2.4

Patch Changes

Fixing binaries import for cjs

36.2.3

Patch Changes

bugfix, fixes missing version.json file

36.2.2

Patch Changes

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

36.2.1

36.2.0

Minor Changes

Undo and Redo actions (using keyboard shortcuts) are introduced.

36.1.2

36.1.1

36.1.0

Minor Changes

  • [minor]18a4cda21f:

  • You can supply mediaClientConfig instead of Context to SmartMediaEditor component. Soon Context input will be deprecated and removed.

36.0.2

36.0.1

  • [patch]b0ef06c685:

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

36.0.0

  • [patch]92381960e9:

  • Updated types to support modal-dialog typescript conversion

  • [major]9cbd059bfa:

  • Put media-editor into separate editor plugin, update @kalamazoo/media-editor API

Breaking change for @kalamazoo/media-editor

  • Make onUploadStart, onFinish optional
  • Add new onClose callback for when the user closes the dialog (escape, cancel, error)
  • onFinish now only called when the upload itself finishes, not overloaded for other purposes

    • now also passes the FileIdentifier of the completed upload

Editor changes

Adds a new media-editor plugin that is enabled if the media plugin is enabled and allowAnnotation is enabled on the media prop.

This replaces the implementation inside the existing media plugin. The new media-editor plugin is not dependent on the media plugin.

35.0.1

35.0.0

34.0.0

33.0.0

32.0.7

32.0.6

32.0.5

32.0.4

  • [patch]5ceba058c9:

  • MS-1613 Media Editor should close by Esc press without closing Media Picker

32.0.3

32.0.2

  • [patch]4eda8dd947:

  • Do not grag existing object when try to draw on top of them. Single click still selects an object

32.0.1

  • [patch]e2453a0071:

  • MS-1749 Always pass occurrenceKeys during file creation to avoid file being inserted in the collection twice

32.0.0

31.0.3

31.0.2

  • [patch]09f9c0c698:

  • Bug fixes around focus geting back to editor and UI fixes around dark theme, line thickness picker and color picker (which now uses ADG colors)

31.0.1

  • [patch]1bcaa1b991:

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

31.0.0

30.0.0

29.1.3

  • [patch]7b2510da6c:

  • Revert "use esm instead of cjs in MediaEditor.js bundle"

29.1.2

29.1.1

  • [patch]cd7ed32895:

  • use esm instead of cjs in MediaEditor.js bundle

29.1.0

  • [minor]d6a3c8ec43:

  • Numerous UI/UX improvements also dimensions as a second argument in onUploadStart callback

29.0.0

28.0.0

27.0.4

27.0.3

27.0.2

  • [patch]ef469cbb0b:

  • MS-357 replaced @kalamazoo/util-shared-styles from media components by @kalamazoo/theme

27.0.1

27.0.0

  • [major]79e21779d4:

  • Remove export of Props and State types for EditorView and SmartMediaEditor.

  • Make both EditorView and SmartMediaEditor export async component.
  • Remove export of types from ./common

26.0.0

25.0.2

25.0.1

25.0.0

24.0.0

23.0.0

22.0.0

21.0.1

  • [patch]ca16fa9:

  • Add SSR support to media components

21.0.0

20.0.0

19.0.2

19.0.1

19.0.0

18.0.0

17.0.0

16.0.0

15.0.0

14.0.1

14.0.0

13.0.1

  • [patch] Use stricter tsconfig 3e3a10d

13.0.0

12.0.0

11.0.1

11.0.0

10.0.1

10.0.0

9.1.4

9.1.3

9.1.2

9.1.1

9.1.0

9.0.0

8.0.2

8.0.1

8.0.0

7.0.2

6.0.0

  • [major] Bump to React 16.3. 4251858

5.0.6

  • [patch] Add "sideEffects: false" to AKM2 packages to allow consumer's to tree-shake c3b018a

4.2.3

  • [patch] Remove TS types that requires styled-components v3 836e53b

4.2.0

  • [minor] Update styled-components dependency to support versions 1.4.6 - 3 ceccf30

4.1.1

  • [patch] Update MediaEditor bundle to remove crypto module usage 3a779d8

4.1.0

  • [minor] Improve mediaEditor core bundle binaries; reducing bundle size, es2015 usage and remave it to mediaEditor 91c1ce1

4.0.3

4.0.1

  • [patch] Fix eidtorCore binary add6f5f

3.4.0

  • [minor] Add React 16 support. 12ea6e4

3.3.6

  • [patch] Copy binaries into dist folder when building media-editor a82d5da

3.3.2

  • [patch] bump icon dependency da14956
  • [patch] bump icon dependency da14956