@umituz/react-native-notifications 1.3.17 → 1.3.19
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 +1 -3
- package/src/domains/quietHours/presentation/components/QuietHoursCard.tsx +1 -1
- package/src/domains/reminders/presentation/components/FormButton.tsx +1 -1
- package/src/domains/reminders/presentation/components/FrequencySelector.tsx +1 -1
- package/src/domains/reminders/presentation/components/ReminderForm.tsx +6 -2
- package/src/domains/reminders/presentation/components/ReminderItem.tsx +1 -1
- package/src/domains/reminders/presentation/components/TimePresetSelector.tsx +1 -1
- package/src/domains/reminders/presentation/components/WeekdaySelector.tsx +1 -1
- package/src/domains/reminders/presentation/screens/ReminderListScreen.tsx +1 -1
- package/src/presentation/components/NotificationsSection.tsx +1 -1
- package/src/presentation/components/SettingRow.tsx +1 -1
- package/src/presentation/screens/NotificationSettingsScreen.tsx +1 -1
- package/src/presentation/screens/NotificationsScreen.tsx +1 -1
- package/src/types/global.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-notifications",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.19",
|
|
4
4
|
"description": "Offline-first local notifications system for React Native apps using expo-notifications",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -27,8 +27,6 @@
|
|
|
27
27
|
"@react-native-async-storage/async-storage": ">=2.0.0",
|
|
28
28
|
"@react-native-community/datetimepicker": ">=8.0.0",
|
|
29
29
|
"@umituz/react-native-design-system": "latest",
|
|
30
|
-
"@umituz/react-native-design-system-atoms": "latest",
|
|
31
|
-
"@umituz/react-native-design-system-theme": "latest",
|
|
32
30
|
"@umituz/react-native-haptics": "latest",
|
|
33
31
|
"expo-device": ">=6.0.0",
|
|
34
32
|
"expo-haptics": ">=15.0.0",
|
|
@@ -7,7 +7,7 @@ import React, { useMemo } from 'react';
|
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon, AtomicCard } from '@umituz/react-native-design-system';
|
|
9
9
|
import { Switch } from 'react-native';
|
|
10
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
10
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
11
11
|
import { SettingRow } from '../../../../presentation/components/SettingRow';
|
|
12
12
|
import type { QuietHoursConfig, QuietHoursTranslations } from '../../../../infrastructure/services/types';
|
|
13
13
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import { TouchableOpacity, StyleSheet } from 'react-native';
|
|
8
8
|
import { AtomicText } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
|
|
11
11
|
export interface FormButtonProps {
|
|
12
12
|
label: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import type { ReminderFrequency } from '../../../../infrastructure/services/types';
|
|
11
11
|
import type { FrequencyOption } from '../../infrastructure/config/reminderPresets';
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useState, useMemo, useCallback } from 'react';
|
|
7
7
|
import { View, TextInput, StyleSheet, ScrollView } from 'react-native';
|
|
8
8
|
import { AtomicText } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import { TimePresetSelector } from './TimePresetSelector';
|
|
11
11
|
import { FrequencySelector } from './FrequencySelector';
|
|
12
12
|
import { WeekdaySelector } from './WeekdaySelector';
|
|
@@ -150,7 +150,11 @@ export const ReminderForm: React.FC<ReminderFormProps> = ({
|
|
|
150
150
|
|
|
151
151
|
const createStyles = (tokens: ReturnType<typeof useAppDesignTokens>) =>
|
|
152
152
|
StyleSheet.create({
|
|
153
|
-
container: {
|
|
153
|
+
container: {
|
|
154
|
+
flex: 1,
|
|
155
|
+
padding: 16,
|
|
156
|
+
backgroundColor: tokens.colors.surface,
|
|
157
|
+
},
|
|
154
158
|
section: { marginBottom: 20 },
|
|
155
159
|
label: { color: tokens.colors.textPrimary, marginBottom: 8 },
|
|
156
160
|
input: {
|
|
@@ -7,7 +7,7 @@ import React, { useMemo } from 'react';
|
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
9
9
|
import { Switch } from 'react-native';
|
|
10
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
10
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
11
11
|
import type { Reminder, ReminderFrequency } from '../../../../infrastructure/services/types';
|
|
12
12
|
|
|
13
13
|
export interface ReminderItemTranslations {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import type { TimePreset } from '../../../../infrastructure/services/types';
|
|
11
11
|
|
|
12
12
|
export interface TimePresetSelectorProps {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
8
8
|
import { AtomicText } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import { WEEKDAY_OPTIONS } from '../../infrastructure/config/reminderPresets';
|
|
11
11
|
|
|
12
12
|
export interface WeekdaySelectorProps {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useEffect, useMemo, useCallback } from 'react';
|
|
7
7
|
import { View, FlatList, StyleSheet, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import { ReminderItem } from '../components/ReminderItem';
|
|
11
11
|
import { useRemindersStore, useReminders, useRemindersLoading } from '../../infrastructure/storage/RemindersStore';
|
|
12
12
|
import { useReminderActions } from '../../infrastructure/hooks/useReminderActions';
|
|
@@ -7,7 +7,7 @@ import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
|
|
7
7
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
8
8
|
import { View, TouchableOpacity, StyleSheet, Switch } from 'react-native';
|
|
9
9
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
10
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
10
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
11
11
|
// @ts-ignore - Optional peer dependency
|
|
12
12
|
import { useNavigation } from '@react-navigation/native';
|
|
13
13
|
import { notificationService } from '../../infrastructure/services/NotificationService';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo, useCallback } from 'react';
|
|
7
7
|
import { View, StyleSheet, Switch } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
|
|
11
11
|
export interface SettingRowProps {
|
|
12
12
|
iconName: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import { View, StyleSheet, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon, AtomicCard, ScreenLayout } from '@umituz/react-native-design-system';
|
|
9
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
9
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
10
10
|
import { QuietHoursCard } from '../../domains/quietHours/presentation/components/QuietHoursCard';
|
|
11
11
|
import { SettingRow } from '../components/SettingRow';
|
|
12
12
|
import { useNotificationSettingsUI } from '../hooks/useNotificationSettingsUI';
|
|
@@ -9,7 +9,7 @@ import React, { useMemo } from 'react';
|
|
|
9
9
|
import { View, StyleSheet, ActivityIndicator } from 'react-native';
|
|
10
10
|
import { AtomicIcon, AtomicCard, AtomicText, ScreenLayout, STATIC_TOKENS } from '@umituz/react-native-design-system';
|
|
11
11
|
import { Switch } from 'react-native';
|
|
12
|
-
import { useAppDesignTokens } from '@umituz/react-native-design-system
|
|
12
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
13
13
|
import { useNotificationSettings } from '../../infrastructure/hooks/useNotificationSettings';
|
|
14
14
|
import type { DesignTokens } from '@umituz/react-native-design-system';
|
|
15
15
|
|
package/src/types/global.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ declare module '@umituz/react-native-design-system' {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
declare module '@umituz/react-native-design-system
|
|
255
|
+
declare module '@umituz/react-native-design-system' {
|
|
256
256
|
export function useAppDesignTokens(): import('@umituz/react-native-design-system').DesignTokens;
|
|
257
257
|
}
|
|
258
258
|
|