@nizza/core 0.5.5 → 0.5.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.
- package/README.md +1 -87
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1690 -1694
- package/dist/lib/nizza-store/react-hooks.d.ts +6 -1
- package/dist/lib/types/api-graphql-types.d.ts +0 -30
- package/dist/lib/types/nizza/chat.d.ts +0 -1
- package/dist/lib/utils/createLazyLogger.d.ts +3 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { NizzaStore } from './NizzaStore';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the NizzaStore using memoization.
|
|
4
|
+
*
|
|
5
|
+
* @return {NizzaStore} The NizzaStore object
|
|
6
|
+
*/
|
|
7
|
+
export declare function useNZ(): NizzaStore;
|
|
2
8
|
/**
|
|
3
9
|
* Custom hook for selecting and observing specific properties from NizzaStore.
|
|
4
10
|
*
|
|
@@ -9,4 +15,3 @@ import { NizzaStore } from './NizzaStore';
|
|
|
9
15
|
* const accountName = useNizza(store => store.accountName);
|
|
10
16
|
*/
|
|
11
17
|
export declare function useNizza<T>(selector: (store: NizzaStore) => T): T;
|
|
12
|
-
export declare function useNZ(): NizzaStore;
|
|
@@ -1263,33 +1263,6 @@ export type GetAllSnackVideosQuery = {
|
|
|
1263
1263
|
} | null;
|
|
1264
1264
|
};
|
|
1265
1265
|
};
|
|
1266
|
-
export type GetPlayListsQueryVariables = Exact<{
|
|
1267
|
-
data: QueryInput;
|
|
1268
|
-
}>;
|
|
1269
|
-
export type GetPlayListsQuery = {
|
|
1270
|
-
__typename?: 'Query';
|
|
1271
|
-
getPlayLists: {
|
|
1272
|
-
__typename: 'ErrorGeneral';
|
|
1273
|
-
message: string;
|
|
1274
|
-
statusCode: string;
|
|
1275
|
-
timestamp: string;
|
|
1276
|
-
} | {
|
|
1277
|
-
__typename: 'PlayListArray';
|
|
1278
|
-
data?: Array<{
|
|
1279
|
-
__typename?: 'PlayList';
|
|
1280
|
-
id: string;
|
|
1281
|
-
description: string;
|
|
1282
|
-
created: string;
|
|
1283
|
-
updated: string;
|
|
1284
|
-
videos: Array<{
|
|
1285
|
-
__typename?: 'PlayListVideo';
|
|
1286
|
-
id: string;
|
|
1287
|
-
thumbnailUrl?: string | null;
|
|
1288
|
-
order: number;
|
|
1289
|
-
}>;
|
|
1290
|
-
}> | null;
|
|
1291
|
-
};
|
|
1292
|
-
};
|
|
1293
1266
|
export type GetSnackVideoRelationshipsQueryVariables = Exact<{
|
|
1294
1267
|
data: SnackVideoRelationshipInput;
|
|
1295
1268
|
}>;
|
|
@@ -1435,9 +1408,6 @@ export declare const FindManySnackVideosDocument: DocumentNode<FindManySnackVide
|
|
|
1435
1408
|
export declare const GetAllSnackVideosDocument: DocumentNode<GetAllSnackVideosQuery, Exact<{
|
|
1436
1409
|
data: QueryInput;
|
|
1437
1410
|
}>>;
|
|
1438
|
-
export declare const GetPlayListsDocument: DocumentNode<GetPlayListsQuery, Exact<{
|
|
1439
|
-
data: QueryInput;
|
|
1440
|
-
}>>;
|
|
1441
1411
|
export declare const GetSnackVideoRelationshipsDocument: DocumentNode<GetSnackVideoRelationshipsQuery, Exact<{
|
|
1442
1412
|
data: SnackVideoRelationshipInput;
|
|
1443
1413
|
}>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Logger as LogLevelLogger } from 'loglevel';
|
|
2
|
+
import { GlobalStore } from '../types';
|
|
2
3
|
/**
|
|
3
|
-
* Creates a lazily instantiated logger using
|
|
4
|
+
* Creates a lazily instantiated logger using global store logging system. The actual logger
|
|
4
5
|
* is only created and registered the first time one of its methods is invoked. This lazy
|
|
5
6
|
* instantiation ensures efficient resource utilization by only initializing loggers when necessary.
|
|
6
7
|
*
|
|
7
8
|
* @param name The name of the logger, used for identification and filtering purposes.
|
|
8
9
|
* @returns A proxy to the lazily instantiated logger.
|
|
9
10
|
*/
|
|
10
|
-
export declare function createLazyLogger(name: string): LogLevelLogger;
|
|
11
|
+
export declare function createLazyLogger(name: string, getStore: () => GlobalStore): LogLevelLogger;
|
package/dist/package.json
CHANGED