@ledvance/ui-biz-bundle 1.1.15 → 1.1.16

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.15",
7
+ "version": "1.1.16",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -52,7 +52,7 @@ export const useFlag: UseFlagType = (flagCode, extra) => {
52
52
  const setFlagFn = (flagItem: FlagItemInfo) => {
53
53
  if (extra.drawToolLight) {
54
54
  const hex = extra.drawToolLight.drawToolObj2dp(flagItem.colors.map(item => ColorUtils.hsv2hex(item.h, item.s, item.v)))
55
- return setDps({ [flagCode]: hex , [extra.switchLedCode]: true})
55
+ return setDps({ [flagCode]: hex , [extra.switchLedCode]: true, [extra.workModeCode]: WORK_MODE.COLOUR})
56
56
  } else {
57
57
  const hex = obj2Dp(flagItem, extra)
58
58
  return setDps({ [flagCode]: hex, [extra.workModeCode]: WORK_MODE.SCENE, [extra.switchLedCode]: true })
@@ -229,10 +229,10 @@ export function saveFlag(devId: string, flagInfo: FlagUiInfo[]) {
229
229
  return NativeApi.putJson(devId, featureId, JSON.stringify(flagInfo))
230
230
  }
231
231
 
232
- export function getFlagMode(groupId: string){
233
- return NativeApi.getJson(groupId, 'flagMode')
232
+ export function getFlagMode(devId: string){
233
+ return NativeApi.getJson(devId, 'flagMode')
234
234
  }
235
235
 
236
- export function saveFlagMode(groupId: string, v:string){
237
- return NativeApi.putJson(groupId, 'flagMode', v)
236
+ export function saveFlagMode(devId: string, v:string){
237
+ return NativeApi.putJson(devId, 'flagMode', v)
238
238
  }