@umituz/react-native-design-system 2.6.107 → 2.6.111
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/package.json +2 -2
- package/src/exception/domain/entities/ExceptionEntity.ts +115 -0
- package/src/exception/domain/repositories/IExceptionRepository.ts +37 -0
- package/src/exception/index.ts +65 -0
- package/src/exception/infrastructure/services/ExceptionHandler.ts +93 -0
- package/src/exception/infrastructure/services/ExceptionLogger.ts +142 -0
- package/src/exception/infrastructure/services/ExceptionReporter.ts +134 -0
- package/src/exception/infrastructure/services/ExceptionService.ts +154 -0
- package/src/exception/infrastructure/storage/ExceptionStore.ts +44 -0
- package/src/exception/presentation/components/ErrorBoundary.tsx +129 -0
- package/src/exception/presentation/components/ExceptionEmptyState.tsx +123 -0
- package/src/exception/presentation/components/ExceptionErrorState.tsx +118 -0
- package/src/exports/exception.ts +7 -0
- package/src/exports/infinite-scroll.ts +7 -0
- package/src/exports/uuid.ts +7 -0
- package/src/index.ts +15 -0
- package/src/infinite-scroll/domain/interfaces/infinite-scroll-list-props.ts +67 -0
- package/src/infinite-scroll/domain/types/infinite-scroll-config.ts +108 -0
- package/src/infinite-scroll/domain/types/infinite-scroll-return.ts +40 -0
- package/src/infinite-scroll/domain/types/infinite-scroll-state.ts +58 -0
- package/src/infinite-scroll/domain/utils/pagination-utils.ts +63 -0
- package/src/infinite-scroll/domain/utils/type-guards.ts +53 -0
- package/src/infinite-scroll/index.ts +62 -0
- package/src/infinite-scroll/presentation/components/empty.tsx +44 -0
- package/src/infinite-scroll/presentation/components/error.tsx +66 -0
- package/src/infinite-scroll/presentation/components/infinite-scroll-list.tsx +120 -0
- package/src/infinite-scroll/presentation/components/loading-more.tsx +38 -0
- package/src/infinite-scroll/presentation/components/loading.tsx +40 -0
- package/src/infinite-scroll/presentation/components/types.ts +124 -0
- package/src/infinite-scroll/presentation/hooks/pagination.helper.ts +83 -0
- package/src/infinite-scroll/presentation/hooks/useInfiniteScroll.ts +327 -0
- package/src/uuid/index.ts +15 -0
- package/src/uuid/infrastructure/utils/UUIDUtils.ts +75 -0
- package/src/uuid/package-lock.json +14255 -0
- package/src/uuid/types/UUID.ts +36 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UUID Type Definition
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* UUID brand type for type safety
|
|
7
|
+
* Format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
|
|
8
|
+
*/
|
|
9
|
+
export type UUID = string & { readonly __brand: unique symbol };
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* UUID Version enum
|
|
13
|
+
*/
|
|
14
|
+
export enum UUIDVersion {
|
|
15
|
+
NIL = 'nil',
|
|
16
|
+
V1 = 'v1',
|
|
17
|
+
V2 = 'v2',
|
|
18
|
+
V3 = 'v3',
|
|
19
|
+
V4 = 'v4',
|
|
20
|
+
V5 = 'v5',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* UUID constants
|
|
25
|
+
*/
|
|
26
|
+
export const UUID_CONSTANTS = {
|
|
27
|
+
/**
|
|
28
|
+
* NIL UUID (00000000-0000-0000-0000-000000000000)
|
|
29
|
+
*/
|
|
30
|
+
NIL: '00000000-0000-0000-0000-000000000000' as UUID,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* UUID v4 regex pattern
|
|
34
|
+
*/
|
|
35
|
+
PATTERN: /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,
|
|
36
|
+
} as const;
|