@ledvance/ui-biz-bundle 1.1.101 → 1.1.103

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.1.101",
7
+ "version": "1.1.103",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -204,7 +204,7 @@ const FlagPage = (props: { theme?: ThemeType }) => {
204
204
  }else{
205
205
  return flagMode?.flagMode && dps[params.workModeCode] === (params.isCeilingLight ? WORK_MODE.WHITE : params.isStripLight ? WORK_MODE.COLOUR : WORK_MODE.SCENE) && flagId === flagItem.id && dps[params.switchLedCode]
206
206
  }
207
- }, [params.isSupportSceneStatus, sceneStatusId, dps[params.workModeCode], dps[params.switchLedCode], flagId])
207
+ }, [params.isSupportSceneStatus, sceneStatusId, dps[params.workModeCode], dps[params.switchLedCode], flagId, flagMode?.flagMode])
208
208
 
209
209
  return (
210
210
  <Page
@@ -128,17 +128,9 @@ export const getRemoteMoodList = async (
128
128
  data: result.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)),
129
129
  };
130
130
  }
131
- const moodUIData = res.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)).filter(item => {
132
- if (!option.isSupportTemperature) {
133
- const isContainTemperature = item.mainLamp?.nodes?.some(node => !node.isColorNode && node.colorTemp > 0) || false
134
- return !isContainTemperature;
135
- } else {
136
- return true
137
- }
138
- });
139
131
  return {
140
132
  success: true,
141
- data: moodUIData,
133
+ data: res.data.map((item, index) => remoteMoodInfo2MoodUIState(item, index, option)),
142
134
  };
143
135
  } else {
144
136
  const res = await NativeApi.getJson(devId, moodFeatureId);
@@ -66,7 +66,7 @@ export function getDefMoodList(option: DefMoodOption) {
66
66
  if (option.isSupportTemperature && option.isSupportBrightness) {
67
67
  return getRGBWDefSceneList();
68
68
  }
69
- if (option.isSupportTemperature) {
69
+ if (option.isSupportBrightness) {
70
70
  return getRGBDefSceneList();
71
71
  }
72
72
  return getOnlyRGBDefSceneList();
@@ -192,7 +192,7 @@ export function stripObj2Dp(mood: MoodInfo, isStringLight: boolean = false) {
192
192
  speed,
193
193
  nodes,
194
194
  } = mood.mainLamp;
195
- const versionHex = nToHS(mood.version);
195
+ const versionHex = nToHS(1);
196
196
  const idHex = nToHS(mood.id);
197
197
  const modeHex = nToHS(mode);
198
198
  const intervalTimeHex = nToHS(speed);