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

Package detail

@kalamazoo/media-picker

stevenselcuk12Apache-2.01.0.2TypeScript support: included

Library for handling file uploads

readme

changelog

@kalamazoo/media-picker

50.0.4

Patch Changes

  • [patch]f09e2c2b33:

    Prevent emitting the same event multiple times from MediaPicker

50.0.3

Patch Changes

50.0.2

Patch Changes

50.0.1

Patch Changes

  • [patch]95ee5ed122:

    Touch endpoint is now called synchronously for every file which prevents race condition on copy while preserving card insert times in editor

50.0.0

Major Changes

  • [major]ae6408e1e4:

    Move public types to media-picker/types entry point

    We moved all the public types/interfaces into a new entry point @kalamazoo/media-picker/types. This is a breaking change only if you are using Typescript in your project. To update:

    Before

    import {
      PopupUploadEventPayloadMap,
      BrowserConfig,
      ClipboardConfig,
      DropzoneConfig,
      Popup,
      PopupConfig,
      PopupConstructor,
      UploadsStartEventPayload,
      UploadStatusUpdateEventPayload,
      UploadPreviewUpdateEventPayload,
      UploadProcessingEventPayload,
      UploadEndEventPayload,
      UploadErrorEventPayload,
      UploadEventPayloadMap,
      isImagePreview,
      MediaFile,
      MediaProgress,
      MediaError,
      ImagePreview,
      Preview,
      NonImagePreview,
      Popup,
      UploadParams,
      BrowserConfig,
      PopupConfig,
      ClipboardConfig,
      DropzoneConfig,
      PopupConstructor,
    } from '@kalamazoo/media-picker';

    After

    import {
      PopupUploadEventPayloadMap,
      BrowserConfig,
      ClipboardConfig,
      DropzoneConfig,
      Popup,
      PopupConfig,
      PopupConstructor,
      UploadsStartEventPayload,
      UploadStatusUpdateEventPayload,
      UploadPreviewUpdateEventPayload,
      UploadProcessingEventPayload,
      UploadEndEventPayload,
      UploadErrorEventPayload,
      UploadEventPayloadMap,
      isImagePreview,
      MediaFile,
      MediaProgress,
      MediaError,
      ImagePreview,
      Preview,
      NonImagePreview,
      Popup,
      UploadParams,
      BrowserConfig,
      PopupConfig,
      ClipboardConfig,
      DropzoneConfig,
      PopupConstructor,
    } from '@kalamazoo/media-picker/types';

Patch Changes

  • [patch]a4517c2de6:

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

  • [patch]5b2c89203e:

    Fix linting errors from prettier upgrade

49.0.1

Patch Changes

  • [patch]30acc30979:

    @kalamazoo/select has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes.

49.0.0

Patch Changes

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

MS-2145: added GASv3 events for media browser & clipboard

Patch Changes

Fix media-picker dialog min-height when downsizing- [patch]ee3d05ef82:

Adding provider for selected items in media-picker when inserting files

47.1.7

Patch Changes

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

47.1.6

Patch Changes

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

47.1.5

Patch Changes

FABDODGEM-12 Editor Cashmere Release

Affected editor components:

tables, media, mobile, text color, emoji, copy/paste, analytics

Performance

Table

Text color

Mobile - Implement undo/redo interface on Hybrid Editor - https://product-fabric.atlassian.net/browse/FM-2393

Copy and Paste

Media

Notable Bug Fixes

Adding provider for selected items in media-picker when inserting files

47.1.4

Patch Changes

Download max res image and prioritise existing preview over representations- [patch]c1eba314f4:

MS-2080 Fix inserting same file twice by removing observable piping as it makes a client's file observable emit new tenant's observable's events.- [patch]d886971e8a:

Move objectToQueryString to media-client and use it from there

47.1.3

Patch Changes

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

47.1.2

47.1.1

Patch Changes

Emit processed state when file gets copied

Fixes CEMS-244:

Currently some properties are missing after a file get’s copied (inserted from MediaPicker) and when the user tries to see on MediaViewer, the preview fails to load.

It happens for files that require artifacts, like documents or videos

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

47.0.5

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

47.0.4

Patch Changes

Fixes type errors which were incompatible with TS 3.6

47.0.3

Patch Changes

Upgraded Typescript to 3.3.x

47.0.2

47.0.1

Patch Changes

Changing async import to check for AnalyticsErrorBoundary integration

47.0.0

Major Changes

Removed public property from Media Picker's upload-end event. It has not been used by anything anyway and it's a legacy from the times where we didn't have upfront id so is now redundant.

46.0.10

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

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

46.0.9

46.0.8

Patch Changes

Adding error boundary in media picker dropzone

46.0.7

Patch Changes

Fix media picker's dropzone analytics event by including the necessary eventType key

46.0.6

Patch Changes

Fix issue where popup media-picker doesn't throw upload-end event

46.0.5

Patch Changes

Move @types/bricks.js from dependencies to devDependencies.

46.0.4

Patch Changes

Instrument analytics for media-picker's dropzone draggedInto, draggedOut and droppedInto actions

46.0.3

46.0.2

Patch Changes

Bump media-picker to fix the master bbranch where bitbucket and npm are out of sync.

46.0.1

Patch Changes

Adding dispatch for failure errors in media picker

46.0.0

Major Changes

Remove three fields from MediaFile interface: upfrontId, userUpfrontId and userOccurrenceKey.

45.0.9

Patch Changes

Fixes various TypeScript errors which were previously failing silently

45.0.8

Patch Changes

Fix analytics for insert files button and annotate file button

45.0.7

Patch Changes

update docs to latest component state (React + Popup), improve information

45.0.6

45.0.5

Patch Changes

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

45.0.4

Patch Changes

bugfix, fixes missing version.json file

45.0.3

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

45.0.2

Patch Changes

Fixing analytics for upload handlers in media-picker- [patch]50d3fb94a6:

Fixing analytics for upload handlers in @kalamazoo/media-picker

45.0.1

45.0.0

Major Changes

Media Picker Dropone component is now migrated to React.

  • Previous vanilla js API:

// instantiation
const dropzone = await new MediaPicker('dropzone', context, pickerConfig).init();

// subscribe to upload events
dropzone.on('uploads-start', onUploadsStart);
dropzone.on('upload-preview-update', onUploadPreviewUpdate);
dropzone.on('upload-status-update', onUploadStatusUpdate);
dropzone.on('upload-processing', onUploadProcessing);
dropzone.on('upload-end', onUploadEnd);
dropzone.on('upload-error', onUploadError);

// activate/deactivate dropone dropzone.activate(); dropzone.deactivate();

// cancel ongoing upload dropzone.cancel(uploadId);

// when we want to dispose the component dropzone.teardown();


- New React API:

class DropzoneConsumer extends React.Component { render() { return ( <Dropzone config={config} context={context} onProcessing={onProcessing} onError={onError} onPreviewUpdate={onPreviewUpdate} /> ) } }


Notes on new API:

- old `MediaPicker` constructor does not recieve `pickerType` as first parameter anymore, since the only component left to migrate to react is `popup`.
Meaning that if before we were doing:

new MediaPicker('popup', context, config)

now we will need to just do

new MediaPicker(context, config)


- No need to explicitly teardown the component. Unmounting the component will do the work

- `onCancelFn` is a workaround to cancel an ongoing upload. Refer to its type definitions for more info. Before we were saving a ref and calling `ref.cancel()`.

Basically if we render `Dropzone` component in isolation (meaning, not inside another react component), we will need to do something like:

const saveCancelUploadFn = (cancel) => this.cancelUpload = cancel;

...

<Dropzone onCancelFn={(cancel) => saveCancelUploadFn(cancel)} config={config} context={context} onProcessing={onProcessing} onError={onError} onPreviewUpdate={onPreviewUpdate} />


At a later point we will just need to call `this.cancelUpload` function in that example, in order to cancel an ongoing upload if needed.

## 44.0.1

- Updated dependencies [06326ef3f7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06326ef3f7):
- @kalamazoo/docs@8.1.3
- @kalamazoo/button@13.0.9
- @kalamazoo/dropdown-menu@8.0.8
- @kalamazoo/flag@12.0.10
- @kalamazoo/modal-dialog@10.0.7
- @kalamazoo/select@9.1.8
- @kalamazoo/toggle@7.0.3
- @kalamazoo/media-card@63.3.1
- @kalamazoo/media-editor@36.2.1
- @kalamazoo/media-test-helpers@24.1.2
- @kalamazoo/media-ui@11.4.1
- @kalamazoo/media-viewer@43.1.3
- @kalamazoo/icon@19.0.0

## 44.0.0

### Major Changes

- [major][5f4afa52a9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5f4afa52a9):

Media Picker Browser component is now migrated to React.

- Previous vanilla js API:

// instantiation const browser = await new MediaPicker('browser', context, pickerConfig).init();

// subscribe to upload events this.mpBrowser.on('uploads-start', onUploadsStart); this.mpBrowser.on('upload-preview-update', onUploadPreviewUpdate); this.mpBrowser.on('upload-status-update', onUploadStatusUpdate); this.mpBrowser.on('upload-processing', onUploadProcessing); this.mpBrowser.on('upload-end', onUploadEnd); this.mpBrowser.on('upload-error', onUploadError);

// open the native file browser browser.browse();

// cancel ongoing upload browse.cancel(uploadId);

// when we want to dispose the component browser.teardown();


- New React API:

class BrowserConsumer etends React.Component { render() { return ( <Browser isOpen={this.props.isOpen} config={config} context={context} onProcessing={onProcessing} onError={onError} onPreviewUpdate={onPreviewUpdate} /> ) } }


Notes on new API:

- No need to explicitly teardown the component. Unmounting the component will do the work
- `onBrowseFn` and `onCancelFn` are workarounds to open the file browser and cancel an ongoing upload. Refer to its type definitions for more info.
  Before we were saving a ref and call `ref.browse()` or `ref.cancel()`.
- In some cases you will need to provide either `onBrowserFn` or `onCancelFn` in order to open the file browser or to cancel an ongoing upload programatically.
  Typically this will be needed when this component is being rendered outside a react component, and we cannot take advantage of using `isOpen` directly.
  A good example of this can be seen in -> https://bitbucket.org/atlassian/atlaskit-mk-2/src/d7a2e4a8fb8e35b841d751f5ecccff188c955c7a/packages/editor/editor-core/src/plugins/media/index.tsx#lines-178 where `BrowserMediaPickerWrapper` is rendered.

Basically if we render `Browser` component in isolation (meaning, not inside another react component), we will need to do something like:

const saveOpenBrowserFunction = (browse) => this.openBrowser = browse;

...

<Browser onBrowseFn={(browse) => saveOpenBrowserFunction(browse)} config={config} context={context} onProcessing={onProcessing} onError={onError} onPreviewUpdate={onPreviewUpdate} />


At a later point we will just need to call `this.openBrowser` function in that example, in order to open the native File browser. Same applies to `onCancelFn`.

## 43.1.2

### Patch Changes

- [patch][a964d9cfa5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a964d9cfa5):

Emit event in globalMediaEventListener as well

## 43.1.1

- Updated dependencies [cfc3c8adb3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cfc3c8adb3):
- @kalamazoo/docs@8.1.2
- @kalamazoo/button@13.0.8
- @kalamazoo/dropdown-menu@8.0.4
- @kalamazoo/flag@12.0.4
- @kalamazoo/modal-dialog@10.0.4
- @kalamazoo/select@9.1.5
- @kalamazoo/toggle@7.0.1
- @kalamazoo/media-card@63.1.5
- @kalamazoo/media-editor@36.1.1
- @kalamazoo/media-test-helpers@24.0.3
- @kalamazoo/media-ui@11.2.8
- @kalamazoo/media-viewer@43.1.1
- @kalamazoo/icon@18.0.0

## 43.1.0

### Minor Changes

- [minor][86e884c38d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/86e884c38d):

MediaPicker constuctro suports mediaClientConfig as second argument

## 43.0.4

- [patch][e5c40a4a52](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e5c40a4a52):

- use existing file state for tenant file if there is one

## 43.0.3

- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):

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

## 43.0.2

- Updated dependencies [215688984e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/215688984e):
- Updated dependencies [06c5cccf9d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06c5cccf9d):
- Updated dependencies [9ecfef12ac](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ecfef12ac):
- Updated dependencies [9cbd059bfa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9cbd059bfa):
- @kalamazoo/button@13.0.4
- @kalamazoo/flag@12.0.2
- @kalamazoo/select@9.1.2
- @kalamazoo/media-card@63.1.0
- @kalamazoo/media-editor@36.0.0
- @kalamazoo/media-ui@11.2.5
- @kalamazoo/media-viewer@43.0.2
- @kalamazoo/spinner@12.0.0
- @kalamazoo/icon@17.1.2
- @kalamazoo/modal-dialog@10.0.0
- @kalamazoo/media-core@30.0.3
- @kalamazoo/media-store@12.0.2
- @kalamazoo/media-test-helpers@24.0.0

## 43.0.1

- Updated dependencies [238b65171f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/238b65171f):
- @kalamazoo/flag@12.0.0

## 43.0.0

- [major][051800806c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/051800806c):

-

- MediaPicker Clipboard component is now a React Component

These changes provide a new React api for Clipboard component. First one to be delivered, coming next we are going to ship Browser, Dropzone and Popup.

Previous plain javascript API usage:

```typescript
// instanciate MediaPicker clipboard
const clipboardMediaPicker = await new MediaPicker(
  'clipboard'
  context,
  config,
);

// usage
clipboardMediaPicker.on('uploads-start', onUploadsStart);
clipboardMediaPicker.on('upload-preview-update', onUploadPreviewUpdate);
clipboardMediaPicker.on('upload-status-update', onUploadStatusUpdate);
clipboardMediaPicker.on('upload-processing', onUploadProcessing);
clipboardMediaPicker.on('upload-end', onUploadEnd);
clipboardMediaPicker.on('upload-error', onUploadError);

// activation / deactivation programatically
clipboardMediaPicker.activate();
clipboardMediaPicker.deactivate();

With the new React API we benefit from:

  • No need to programatically activate/deactivate. We will just render the Clipboard component or not.
  • Event handlers are provided by react props
  • We don't need to use a MediaPicker constructor and specifiy which flavour we want (in this case 'clipboard'). We can basically import { Clipboard } from '@kalamazoo/media-picker' directly and use it right away.

Example of new API:

import { Clipboard } from '@kalamazoo/media-picker';

<Clipboard
  context={context}
  config={config}
  onError={handleUploadError}
  onPreviewUpdate={handleUploadPreviewUpdate}
  onProcessing={handleReady}
/>;

This is the first component we migrate fully and integrates seamlessly with the Editor. Follow up on this ticket to see what will be the next steps on this new API: https://product-fabric.atlassian.net/browse/MS-1942

42.0.2

  • [patch]168df43047:

    • Fix clipboard component deactivation logic when used in multiple contexts.

42.0.1

42.0.0

  • [major]59cce82fd1:

    • Remove Binary component from MediaPicker

    If you want to upload a file (string or blob) to media, you should instead use context.file.upload from @kalamazoo/media-core

    import { ContextFactory } from '@kalamazoo/media-core';
    
    const mediaContext = ContextFactory.create();
    
    mediaContext.file.upload({
      content: 'some-external-url',
      name: 'some-file-name.png',
      collection: 'destination-collection',
    });

    For more info check atlaskit-mk-2/packages/media/media-client/src/client/file-fetcher.ts

41.0.1

  • [patch]5cfa2ddf93:

    • add clipboard support to MediaPicker

41.0.0

40.0.0

39.0.0

38.1.6

38.1.5

  • [patch]3f28e6443c:

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

38.1.4

38.1.3

  • [patch]0ff405bd0f:

    • Removed CardView and CardViewLoader from public APIs and replaced it with light-weight and stateless CardLoading and CardError components. Handling of external images is now done by Card component itself using ExternalImageIdentifier interface.

    If you’ve been using CardView for loading:

    <CardView status="loading" mediaItemType="file" dimensions={cardDimensions} />

    Now you can use new component:

    <CardLoading dimensions={cardDimensions} />

    If you were using CardView to show an error

    <CardView status="error" mediaItemType={type} dimensions={cardDimensions} />

    Now you can use new component:

    <CardError dimensions={cardDimensions} />

    In case you were using CardView to show image with known external URI:

    <CardView status="complete" dataURI={dataURI} metadata={metadata} />

    You will have to find a way to switch to using Card component using ExternalImageIdentifier interface:

    <Card identifier={identifier} context={context} />

38.1.2

  • [patch]d13fad66df:

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

38.1.1

  • [patch]60a89f843f:

    • cleanup DOM elements on teardown and deactivate

38.1.0

38.0.0

37.0.3

37.0.2

  • [patch]b3c60e3c9c:

    • Update media-editor dependency

37.0.1

  • [patch]1bcaa1b991:

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

37.0.0

36.0.0

35.0.2

  • [patch]ff3f40bc38:

    • Fix remove from cache function, which fixes issue when user is deleting recent image in media picker

35.0.1

35.0.0

34.1.0

  • [minor]f1b46bcb42:

    • ED-6259 Enable stricter types for media packages

34.0.0

33.0.4

33.0.3

33.0.2

33.0.1

  • [patch]ef469cbb0b:

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

33.0.0

  • [major]65b73cc466:

    • Code split media-picker: make MediaPicker factory async and make editor use it

32.0.1

32.0.0

31.0.2

  • [patch]07a187bb30:

    • Fetch cloud accounts only on cloud folder opening

31.0.1

31.0.0

30.0.0

29.0.3

  • [patch]e6516fb:

    • Move media mocks into right location to prevent them to be included in dist

29.0.2

  • [patch]a55e4e6:

    • Remove Axios dependency from media-picker

29.0.1

  • [patch]c91adfe:

    • remove customVideoPlayer featureFlag prop and enable by default

29.0.0

28.0.0

27.0.5

  • [patch]8314694:

    • Support uploading + processing files in MediaViewer

27.0.4

  • [patch]442821a:

    • Fix the issue with being unable to save image inserted into the editor: pass collection to tenant auth for file polling

27.0.3

  • [patch]b677631:

    • Add new example and ensure occurrenceKey is set for all copy/withToken calls

27.0.2

27.0.1

  • [patch]ca16fa9:

    • Add SSR support to media components

27.0.0

26.0.0

25.0.8

  • [patch]ff8b31d:

    • Pass uploadParams to createStore when initializing MediaPicker popup. This fixes an issue when calling /copy/withToken endpoint

25.0.7

  • [patch]5f12909:

    • remove tenant property from MediaPicker + make show() faster

25.0.6

25.0.5

  • [patch]92a6240:

    • Picking video file will now send dimensions same way as image would

25.0.4

25.0.3

25.0.2

25.0.1

  • [patch]b9d9e9a:

    • Support advanced i18n mode in MediaPicker

25.0.0

24.0.1

24.0.0

23.2.2

23.2.1

23.2.0

  • [minor] pass scaleFactor from media-picker upload-preview-update event e23a078

23.1.0

  • [minor] add scaleFactor to ImagePreview type 605eff0

23.0.0

  • [major] Add i18n support to MediaPicker 9add3a4

22.0.0

  • [major] Cleanup media + editor integration 🔥 2f9d14d

21.0.0

20.0.1

20.0.0

  • [major] Remove hardcoded 'source' field from all events which will avoid overriding the value provided by integrating products. When upgrading, make sure you also upgrade the analytics-listener package which is now responsible for setting the default 'source' value if not set. 17afe04

19.0.0

18.1.0

  • [minor] Add pagination to recents view in MediaPicker 4b3c1f5

18.0.0

17.0.4

  • [patch] use Card instead of CardView in MediaPicker recents 081f4c6

17.0.3

17.0.2

17.0.1

17.0.0

16.0.6

16.0.5

  • [patch] Introduce media analytics listener e7d7ab1

16.0.4

  • [patch] Add className to headless dropzone 96be52e

16.0.3

  • [patch] use context.collection.getItems in MediaPicker 1486ca4

16.0.2

  • [patch] Use stricter tsconfig 3e3a10d

16.0.1

  • [patch] Handle the fact that remoteUploadId may not exist and not break cloud uploads c2317af

16.0.0

15.1.2

15.1.1

  • [patch] Fix app not dispatching dropzone actions 34f69df

15.1.0

  • [minor] Instrument media-picker with analytics d5f093b

15.0.2

15.0.1

15.0.0

  • [major] "userAuthProvider" property removed from all the media-picker configs; Optional "shouldCopyFileToRecents" property added to all media-picker configs; "tenantUploadParams" is removed since "uploadParams" is already a tenant one; "copyFileToRecents" is removed from UploadParams; 048f488

14.0.1

  • [patch] Append timestamp in image files for Clipboard component da65dec

14.0.0

13.0.0

12.1.2

12.1.1

  • [patch] Fix MediaPicker Dropzone UI on IE11 79f780a

12.1.0

  • [minor] New option "singleSelect" allows to limit number of selected files to just 1. 4ac210e

12.0.1

12.0.0

11.2.2

11.2.1

11.2.0

  • [minor] MediaPicker Popup now supports passing of optional parent react context as a parameter 25ef2e4

11.1.2

11.1.1

11.1.0

11.0.0

10.0.0

  • [major] Remove old analytics client, context and tracker code daf6227

9.0.1

  • [patch][msw-847 ] Fix Safari issue with not selecting files in MediaPicker recents 6f51fdb

9.0.0

8.1.6

  • [patch] Safely handle paste handler for clipboard to avoid error noise in unsupported browsers 8d5053e

8.1.5

8.1.4

8.1.3

8.1.2

8.1.1

8.1.0

8.0.0

7.0.6

7.0.5

7.0.4

7.0.3

7.0.2

  • [patch] remove browse + dropzone logic from UploadService 02a72e8

7.0.1

7.0.0

6.0.6

  • [patch] change media picker image src to static assets served on dt-static a5a740b

6.0.5

6.0.4

  • [patch] Media Picker Popup modal dialog now has a fixed size unwanted wrapping behaviour of cards in the Upload view and jumping of the dialog when switching to the GIPHY view. 814e505

6.0.2

  • [patch] Add rating "PG" parameter to GIPHY url strings 9cb61d3

6.0.1

  • [patch] Remove classnames + domready dependencies from MediaPicker 44f94f6

6.0.0

  • [major] For media-picker: fetchMetadata and autoFinalize options are removed from UploadParams and replaced with always "true" in the code. For editor-core: "unfinalized" status is removed from MediaStateStatus and finalizeCb from MediaState. a41759a

4.0.0

  • [major] Use media-core context in MediaPicker constructor 6cc9f55

3.0.1

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

3.0.0

  • [major] Bump to React 16.3. 4251858

2.2.0

  • [minor] show local previews for video files 6b24c51

2.1.6

  • [patch] Show upload button during recents load in media picker. + Inprove caching for auth provider used in examples 929731a

2.1.5

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

2.1.2

  • [patch] Add analytics events for click and show actions of media-card 031d5da

2.1.0

  • [minor] code split MediaEditor in MediaPicker bdc395a

2.0.2

  • [patch] add icon to annotate card action e982c4b

2.0.0

  • [major] icons are now assignable to card actions, which will cause media cards to render upto 2 icon buttons, or a dropdown menu if more than 2 actions are set 649871c

1.1.4

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

1.1.1

  • [patch] Emit 100% upload progress when last file chunk has been uploaded db24bed

1.1.0

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

1.0.10

  • [patch] Bump Rusha version to 0.8.13 67a6312

1.0.7

1.0.6

  • [patch] Fix issue with having multiple Dropzone elements listening at the same time with Editor and MediaPicker d37de20

1.0.5

  • [patch] delay call to /recents and /accounts in MediaPicker and improve overall performance 8f2b541

1.0.4

  • [patch] Move media provider and state manager to editor-core 0601da7

1.0.3

  • [patch] Replaced heavy placeholder image for GIPHY view error state. This will reduce the page weight of media-picker by ~160kb e4cb2a0

1.0.2

  • [patch] update link account handling redirect url from custom s3 location to media picker api bd3e22f

1.0.0

  • [major] make MediaPicker stable fd3f3ec

0.2.2

  • [patch] Migrate Navigation from Ak repo to ak mk 2 repo, Fixed flow typing inconsistencies in ak mk 2 bdeef5b

0.2.0

  • [minor] Added GIPHY file picking support to Media Picker Popup d6be99c

0.1.2

  • [patch] Fixed header styles in Popup 48555ce

0.1.1

  • [patch] Fix data URI generation crashing/lagging the browser for large files. data URIs are only generated for local uploaded files when the type of the file 2dd1728

0.1.0

  • [minor] Add React 16 support. 12ea6e4

0.0.2

  • [patch] Migrate MediaPicker into new repo 494c424