@ledvance/base 1.3.14 → 1.3.15
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/localazy.json +13 -1
- package/localazy.keys.json +3 -4
- package/package.json +1 -1
- package/src/api/nativeEventEmitter.ts +18 -0
- package/src/composeLayout.tsx +1 -0
- package/src/i18n/strings.ts +348 -0
- package/src/models/modules/NativePropsSlice.tsx +8 -2
- package/translateKey.txt +13 -1
|
@@ -43,6 +43,7 @@ export interface UAGroupInfo {
|
|
|
43
43
|
groupDevices: GroupDeviceInfo[]
|
|
44
44
|
name: string
|
|
45
45
|
deviceIds: string[]
|
|
46
|
+
icon: string
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
const initialState: NativeProps = {
|
|
@@ -60,6 +61,7 @@ const initialState: NativeProps = {
|
|
|
60
61
|
config: {},
|
|
61
62
|
groupDevices: [],
|
|
62
63
|
name: '',
|
|
64
|
+
icon: '',
|
|
63
65
|
deviceIds: []
|
|
64
66
|
},
|
|
65
67
|
timeSchedule: false,
|
|
@@ -117,6 +119,9 @@ const nativePropsSlice = createSlice({
|
|
|
117
119
|
if (!!action.payload.uaGroupInfo.pId) {
|
|
118
120
|
state.uaGroupInfo.pId = action.payload.uaGroupInfo.pId
|
|
119
121
|
}
|
|
122
|
+
if (!!action.payload.uaGroupInfo.icon) {
|
|
123
|
+
state.uaGroupInfo.icon = action.payload.uaGroupInfo.icon
|
|
124
|
+
}
|
|
120
125
|
state.uaGroupInfo.dps = { ...state.uaGroupInfo.dps, ...action.payload.uaGroupInfo.dps }
|
|
121
126
|
state.uaGroupInfo.config = action.payload.uaGroupInfo.config
|
|
122
127
|
state.uaGroupInfo.deviceIds = action.payload.uaGroupInfo.deviceIds ?? []
|
|
@@ -345,9 +350,10 @@ export function useGroupEzvizConfig<GC, T extends PropertyValueTypes<GC>>(featur
|
|
|
345
350
|
const config = useUAGroupInfo().config || {}
|
|
346
351
|
const dispatch = useDispatch()
|
|
347
352
|
const { setGroupConfig } = nativePropsSlice.actions
|
|
348
|
-
const setConfig = useCallback(async (newConfig: T) => {
|
|
353
|
+
const setConfig = useCallback(async (newConfig: T, extraConfig?: any) => {
|
|
349
354
|
const configs = {
|
|
350
|
-
[featureKey]: newConfig
|
|
355
|
+
[featureKey]: newConfig,
|
|
356
|
+
...(extraConfig || {}),
|
|
351
357
|
}
|
|
352
358
|
const res = await NativeApi.putGroupEzvizConfig(tyGroupId, JSON.stringify(configs))
|
|
353
359
|
if (res.success) {
|
package/translateKey.txt
CHANGED
|
@@ -900,4 +900,16 @@ thermostat_comforttemp
|
|
|
900
900
|
mood_resetbutton
|
|
901
901
|
reset_mooddescription
|
|
902
902
|
settings_wateralarmrecovery
|
|
903
|
-
message_repeat
|
|
903
|
+
message_repeat
|
|
904
|
+
string_light_pp_sm_headline_add
|
|
905
|
+
mood_string_mode_shimmer
|
|
906
|
+
mood_string_mode_fluorescence
|
|
907
|
+
mood_string_mode_random_flash
|
|
908
|
+
mood_string_mode_sparkle
|
|
909
|
+
mood_string_mode_fade
|
|
910
|
+
mood_string_mode_slow_fade
|
|
911
|
+
thermostat_cool
|
|
912
|
+
thermostat_hot
|
|
913
|
+
thermostat_cold
|
|
914
|
+
thermostat_warm
|
|
915
|
+
thermostat_childlock_overview_description_text
|