@tryghost/kg-unsplash-selector 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { DefaultHeaderTypes, Photo } from './UnsplashTypes';
3
-
4
3
  interface UnsplashModalProps {
5
4
  onClose: () => void;
6
5
  onImageInsert: (image: Photo) => void;
@@ -1,5 +1,4 @@
1
1
  import { Photo } from '../UnsplashTypes';
2
-
3
2
  export interface IUnsplashProvider {
4
3
  fetchPhotos(): Promise<Photo[]>;
5
4
  fetchNextPage(): Promise<Photo[] | null>;
@@ -1,6 +1,5 @@
1
1
  import { IUnsplashProvider } from './IUnsplashProvider';
2
2
  import { Photo } from '../UnsplashTypes';
3
-
4
3
  export declare class InMemoryUnsplashProvider implements IUnsplashProvider {
5
4
  photos: Photo[];
6
5
  PAGINATION: {
@@ -1,5 +1,4 @@
1
1
  import { Photo } from '../UnsplashTypes';
2
-
3
2
  export default class MasonryService {
4
3
  columnCount: number;
5
4
  columns: Photo[][] | [];
@@ -1,6 +1,5 @@
1
1
  import { IUnsplashProvider } from './IUnsplashProvider';
2
2
  import { Photo } from '../UnsplashTypes';
3
-
4
3
  export declare class PhotoUseCases {
5
4
  private _provider;
6
5
  constructor(provider: IUnsplashProvider);
@@ -1,6 +1,5 @@
1
1
  import { DefaultHeaderTypes, Photo } from '../UnsplashTypes';
2
2
  import { IUnsplashProvider } from './IUnsplashProvider';
3
-
4
3
  export declare class UnsplashProvider implements IUnsplashProvider {
5
4
  API_URL: string;
6
5
  HEADERS: DefaultHeaderTypes;
@@ -1,7 +1,6 @@
1
1
  import { default as MasonryService } from './MasonryService';
2
2
  import { Photo } from '../UnsplashTypes';
3
3
  import { PhotoUseCases } from './PhotoUseCase';
4
-
5
4
  export interface IUnsplashService {
6
5
  loadNew(): Promise<void>;
7
6
  layoutPhotos(): void;
@@ -1,4 +1,3 @@
1
1
  import { Photo } from '../UnsplashTypes';
2
-
3
2
  export declare const fixturePhotos: Photo[];
4
3
  //# sourceMappingURL=unsplashFixtures.d.ts.map