@ledvance/ui-biz-bundle 1.0.83 → 1.0.84

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.0.83",
7
+ "version": "1.0.84",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -20,6 +20,7 @@ interface DeviceStateProps extends JudgeTimeScheduleProps {
20
20
  selectedDps: ScheduleItemDp[]
21
21
  dpCodes: Record<string, string>
22
22
  isManual: boolean
23
+ fantasyFeatureId?: string
23
24
  setIsManual?: (isManual: boolean) => void
24
25
  setSendDps: (actions: any, type: string) => void
25
26
  changeSkillEnable: (dpId: string, enable: boolean) => void
@@ -70,6 +71,7 @@ const DeviceState = (props: DeviceStateProps) => {
70
71
  }}>{I18n.getLang('timeschedule_add_schedule_devicestate_sec_warning_text')}</Text>
71
72
  </View> :
72
73
  <MoodSetting
74
+ fantasyFeatureId={props.fantasyFeatureId}
73
75
  isStringLight={props.isStringLight}
74
76
  isStripLight={props.isStripLight}
75
77
  isOnlyRGBLamp={props.isOnlyRGBLamp}
@@ -18,11 +18,12 @@ const cx = Utils.RatioUtils.convertX
18
18
  interface MoodSettingProps extends JudgeTimeScheduleProps {
19
19
  actionScene: any
20
20
  scheduleItem: any
21
+ fantasyFeatureId?: string
21
22
  setSendDps: (actions: any, type: string) => void
22
23
  }
23
24
 
24
25
  const MoodSetting = (props: MoodSettingProps) => {
25
- const { setSendDps, isStringLight, isStripLight, actionScene } = props
26
+ const { setSendDps, isStringLight, isStripLight, actionScene, fantasyFeatureId = '' } = props
26
27
  const [moods, setMoods] = useMoods()
27
28
  const devId = useDeviceId()
28
29
  const isUVCFan = isUVCFanDevice()
@@ -41,7 +42,7 @@ const MoodSetting = (props: MoodSettingProps) => {
41
42
  useEffect(() => {
42
43
  if (!moods.length) {
43
44
  if (isStringLight || isStripLight) {
44
- getRemoteFantasyScene('dreamlight_scene_mode', devId, { isStringLight, isStripLight }).then(res => {
45
+ getRemoteFantasyScene(fantasyFeatureId, devId, { isStringLight, isStripLight }).then(res => {
45
46
  if (res.success && res.data) {
46
47
  state.scenes = cloneDeep(res.data)
47
48
  setMoods(res.data)
@@ -556,7 +556,9 @@ const TimeScheduleEditPage = () => {
556
556
  isSupportTemperature={props.isSupportTemperature}
557
557
  isSupportMood={props.isSupportMood}
558
558
  isStringLight={props.isStringLight}
559
- isStripLight={props.isStripLight} />
559
+ isStripLight={props.isStripLight}
560
+ fantasyFeatureId={props.fantasyFeatureId}
561
+ />
560
562
  {!hasSelected() && <View style={{ flexDirection: 'row', alignItems: 'center' }}>
561
563
  <Image style={{ width: cx(16), height: cx(16), tintColor: '#FF9500' }} source={res.ic_warning_amber}/>
562
564
  <Text style={{
@@ -47,6 +47,7 @@ const MAXNUM = 30
47
47
 
48
48
  export interface TimeSchedulePageRouteParams extends JudgeTimeScheduleProps {
49
49
  dps: dpItem[],
50
+ fantasyFeatureId?: string
50
51
  lightData2dps?: (data: LightData) => any
51
52
  dps2lightData?: (dps: any) => LightData
52
53
  }