@kokimoki/app 0.0.2 → 0.0.3

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,2 +1,2 @@
1
- import type { FetchParams } from "../types";
1
+ import type { FetchParams } from "../types/api";
2
2
  export declare function abortMediaUpload(id: string, { apiUrl, appToken, signal }: FetchParams): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { AuthFetchParams, AuthResponse } from "../types";
1
+ import type { AuthFetchParams, AuthResponse } from "../types/api";
2
2
  export declare function fetchAuth({ apiUrl, clientToken, appId, }: AuthFetchParams): Promise<AuthResponse>;
@@ -1,2 +1,2 @@
1
- import type { SendUploadResponse } from "../types";
1
+ import type { SendUploadResponse } from "../types/api";
2
2
  export declare function getETags(blob: Blob, { urls, chunkSize }: SendUploadResponse): Promise<string[]>;
@@ -1,2 +1,2 @@
1
- import type { FetchParams, SendUploadResponse } from "../types";
1
+ import type { FetchParams, SendUploadResponse } from "../types/api";
2
2
  export declare function sendMediaUpload(blob: Blob, { apiUrl, appToken, signal }: FetchParams): Promise<SendUploadResponse>;
@@ -1,2 +1,2 @@
1
- import type { FetchParams, UploadMediaRequest, UploadMediaResponse } from "../types";
1
+ import type { FetchParams, UploadMediaRequest, UploadMediaResponse } from "../types/api";
2
2
  export declare function uploadMedia({ id, etags }: UploadMediaRequest, { apiUrl, appToken, signal }: FetchParams): Promise<UploadMediaResponse>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * from "./types/index";
1
+ export * from "./types/api";
2
+ export * from "./types/tasks";
2
3
  export * from "./fields";
3
4
  export * from "./kokimoki-client";
4
5
  export * from "./synced-store";
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
- export * from "./types/index";
1
+ export * from "./types/api";
2
+ export * from "./types/tasks";
2
3
  export * from "./fields";
3
4
  export * from "./kokimoki-client";
4
5
  export * from "./synced-store";
@@ -2,7 +2,7 @@ import { HocuspocusProvider } from "@hocuspocus/provider";
2
2
  import type TypedEmitter from "typed-emitter";
3
3
  import { SyncedStore } from "./synced-store";
4
4
  import type { DocTypeDescription } from "@syncedstore/core/types/doc";
5
- import { UploadedMedia } from "./types";
5
+ import { UploadedMedia } from "./types/api";
6
6
  export type KokimokiClientEvents<T> = {
7
7
  stateless: (room: string, from: string, data: T) => void;
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokimoki/app",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "Kokimoki app",
6
6
  "main": "dist/index.js",