@junobuild/core 0.0.5 → 0.0.7

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,3 @@
1
1
  export declare const delegationIdentityExpiration: bigint;
2
- export declare const internetIdentityMainnet = "https://identity.ic0.app";
2
+ export declare const popupWidth = 576;
3
+ export declare const popupHeight = 576;
@@ -4,7 +4,7 @@ export * from './services/doc.services';
4
4
  export * from './services/storage.services';
5
5
  export * from './types/auth.types';
6
6
  export * from './types/doc.types';
7
- export { ListParams, ListResults, OrderDocs, PaginateDocs } from './types/list.types';
7
+ export { ListOrder, ListPaginate, ListParams, ListResults } from './types/list.types';
8
8
  export * from './types/satellite.types';
9
9
  export * from './types/storage.types';
10
10
  import type { User } from './types/auth.types';
@@ -9,5 +9,5 @@ export type User = Doc<UserData>;
9
9
  export interface SignInOptions {
10
10
  maxTimeToLive?: bigint;
11
11
  derivationOrigin?: string | URL;
12
- windowOpenerFeatures?: string;
12
+ windowed?: boolean;
13
13
  }
@@ -3,15 +3,17 @@ export interface ListResults<T> {
3
3
  length: bigint;
4
4
  matches_length: bigint;
5
5
  }
6
- export interface PaginateDocs {
6
+ export interface ListPaginate {
7
7
  startAfter?: string;
8
8
  limit?: number;
9
9
  }
10
- export interface OrderDocs {
10
+ export type ListOrderField = 'keys' | 'updated_at' | 'created_at';
11
+ export interface ListOrder {
11
12
  desc: boolean;
13
+ field: ListOrderField;
12
14
  }
13
15
  export interface ListParams {
14
16
  matcher?: string;
15
- paginate?: PaginateDocs;
16
- order?: OrderDocs;
17
+ paginate?: ListPaginate;
18
+ order?: ListOrder;
17
19
  }
@@ -1,4 +1,4 @@
1
1
  export declare const toNullable: <T>(value?: T | undefined) => [] | [T];
2
2
  export declare const fromNullable: <T>(value: [] | [T]) => T | undefined;
3
3
  export declare const toArray: <T>(data: T) => Promise<Uint8Array>;
4
- export declare const fromArray: <T>(data: Uint8Array) => Promise<T>;
4
+ export declare const fromArray: <T>(data: Uint8Array | number[]) => Promise<T>;
@@ -1,9 +1,3 @@
1
+ import type { ListParams as ListParamsApi } from '../../declarations/satellite/satellite.did';
1
2
  import type { ListParams } from '../types/list.types';
2
- export declare const toListParams: ({ matcher, paginate, order }: ListParams) => {
3
- matcher: [] | [string];
4
- paginate: [] | [{
5
- start_after: [] | [string];
6
- limit: [] | [bigint];
7
- }];
8
- order: [] | [import("../types/list.types").OrderDocs];
9
- };
3
+ export declare const toListParams: ({ matcher, paginate, order }: ListParams) => ListParamsApi;
@@ -0,0 +1,4 @@
1
+ export declare const popupCenter: ({ width, height }: {
2
+ width: number;
3
+ height: number;
4
+ }) => string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "JavaScript core client for Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",