@ledvance/base 1.3.38 → 1.3.40
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,44 +4,35 @@
|
|
|
4
4
|
"name": "@ledvance/base",
|
|
5
5
|
"pid": [],
|
|
6
6
|
"uiid": "",
|
|
7
|
-
"version": "1.3.
|
|
7
|
+
"version": "1.3.40",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"prepublishOnly": "python update-localazy.py"
|
|
10
9
|
},
|
|
11
10
|
"dependencies": {
|
|
12
11
|
"@reduxjs/toolkit": "^1.8.6",
|
|
13
12
|
"@tuya/tuya-panel-api": "^1.12.0",
|
|
14
13
|
"ahooks": "^2.x",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"events": "^1.1.1",
|
|
18
|
-
"lodash": "^4.17.19",
|
|
19
|
-
"moment": "^2.20.1",
|
|
14
|
+
"dayjs": "^1.11.13",
|
|
15
|
+
"lodash": "^4.17.21",
|
|
20
16
|
"prop-types": "^15.6.1",
|
|
21
17
|
"react": "16.8.3",
|
|
22
|
-
"react-addons-shallow-compare": "^15.6.2",
|
|
23
18
|
"react-native": "0.59.10",
|
|
24
|
-
"react-native-render-html": "^6.3.4",
|
|
25
19
|
"react-native-svg": "5.5.1",
|
|
26
20
|
"react-redux": "^7.2.1",
|
|
27
21
|
"redux": "^4.0.0",
|
|
28
22
|
"redux-actions": "^2.6.1",
|
|
29
23
|
"redux-logger": "^3.0.6",
|
|
30
24
|
"redux-observable": "^1.0.0",
|
|
31
|
-
"redux-thunk": "^2.3.0",
|
|
32
25
|
"rn-fetch-blob": "^0.12.0",
|
|
33
26
|
"rxjs": "^6.3.1",
|
|
34
27
|
"rxjs-compat": "^6.3.1",
|
|
35
|
-
"style-equal": "^1.0.0",
|
|
36
28
|
"tuya-panel-kit": "^4.9.4"
|
|
37
29
|
},
|
|
38
30
|
"devDependencies": {
|
|
39
31
|
"@babel/plugin-proposal-decorators": "^7.12.1",
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@types/
|
|
43
|
-
"@types/react": "^
|
|
44
|
-
"@types/react-native": "^0.60.0",
|
|
32
|
+
"@tuya/tuya-panel-patches": "0.59.10",
|
|
33
|
+
"@types/lodash": "^4.17.13",
|
|
34
|
+
"@types/react": "17.0.83",
|
|
35
|
+
"@types/react-native": "^0.65",
|
|
45
36
|
"@types/react-redux": "^7.1.2",
|
|
46
37
|
"@types/redux": "^3.6.0",
|
|
47
38
|
"@types/redux-actions": "^2.6.1",
|
|
@@ -52,19 +43,12 @@
|
|
|
52
43
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
53
44
|
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
|
54
45
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
55
|
-
"commitizen": "^4.2.2",
|
|
56
|
-
"commitlint-config-cz": "^0.13.2",
|
|
57
|
-
"cz-customizable": "^6.3.0",
|
|
58
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
59
46
|
"eslint-config-tuya": "^1.0.0",
|
|
60
47
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
61
|
-
"eslint-import-resolver-react-native": "^0.2.0",
|
|
62
48
|
"eslint-plugin-react-native": "^3.10.0",
|
|
63
|
-
"
|
|
64
|
-
"jest": "^22.1.1",
|
|
49
|
+
"eslint-import-resolver-react-native": "^0.2.0",
|
|
65
50
|
"metro-react-native-babel-preset": "^0.63.0",
|
|
66
51
|
"react-native-typescript-transformer": "^1.2.13",
|
|
67
|
-
"react-test-renderer": "^16.2.0",
|
|
68
52
|
"standard-version": "^9.0.0",
|
|
69
53
|
"typescript": "^4.1.2"
|
|
70
54
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react'
|
|
2
2
|
import { StyleSheet, Text, View, ViewProps } from 'react-native'
|
|
3
3
|
import { Utils } from 'tuya-panel-kit'
|
|
4
|
-
import Card from '
|
|
5
|
-
import Spacer from '
|
|
4
|
+
import Card from './Card'
|
|
5
|
+
import Spacer from './Spacer'
|
|
6
6
|
import ThemeType from '../config/themeType'
|
|
7
7
|
|
|
8
8
|
const { convertX: cx } = Utils.RatioUtils
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { View, Text, TouchableOpacity, Image } from 'react-native'
|
|
3
3
|
import { Utils, Popup } from 'tuya-panel-kit'
|
|
4
|
-
import Img from 'res'
|
|
4
|
+
import Img from '@res'
|
|
5
5
|
import Strings from '@i18n'
|
|
6
6
|
|
|
7
7
|
const { convertX, height } = Utils.RatioUtils
|
|
@@ -156,4 +156,4 @@ export const ShowSelectView = (title, data, defaultValue, callback) => {
|
|
|
156
156
|
})
|
|
157
157
|
|
|
158
158
|
|
|
159
|
-
}
|
|
159
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColorAdjustViewProps } from "
|
|
2
|
-
import { ColorTempAdjustViewProps } from "
|
|
1
|
+
import { ColorAdjustViewProps } from "./ColorAdjustView";
|
|
2
|
+
import { ColorTempAdjustViewProps } from "./ColorTempAdjustView";
|
|
3
3
|
declare type TabsNode = {
|
|
4
4
|
key: number | string;
|
|
5
5
|
title: string;
|
package/src/composeLayout.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import React, { Component } from 'react'
|
|
|
3
3
|
import { Provider } from 'react-redux'
|
|
4
4
|
import { DevInfo, DpValue, Theme, TYSdk } from 'tuya-panel-kit'
|
|
5
5
|
import { actions, store } from './models'
|
|
6
|
-
import {addListener, nativeEventEmitter, removeListener} from 'api/nativeEventEmitter'
|
|
7
|
-
import {getSystemTimeFormat, getTimeZone, NativeApi} from 'api/native'
|
|
6
|
+
import {addListener, nativeEventEmitter, removeListener} from './api/nativeEventEmitter'
|
|
7
|
+
import {getSystemTimeFormat, getTimeZone, NativeApi} from './api/native'
|
|
8
8
|
import {
|
|
9
9
|
DeviceInfo,
|
|
10
10
|
NativeProps,
|
package/src/models/TuyaApi.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {commonApi} from '@tuya/tuya-panel-api'
|
|
2
2
|
import { IGetDpResultByHourResponse, IGetDpResultByMonthResponse } from '@tuya/tuya-panel-api/lib/common/interface'
|
|
3
|
+
import {sendAppEvent} from "../api/native";
|
|
3
4
|
|
|
4
5
|
export interface PagingResult<T> {
|
|
5
6
|
data: T
|
|
@@ -74,6 +75,9 @@ export async function getDpResultByMonth(
|
|
|
74
75
|
const res = await commonApi.statApi.getDpResultByMonth(params);
|
|
75
76
|
return res;
|
|
76
77
|
} catch (err) {
|
|
78
|
+
if (err.errorCode === 'DPID_NOT_SUPPORT_STATISTICS_ERROR') {
|
|
79
|
+
sendAppEvent('RN_ERROR', { message: `code: ${err.errorCode}, deviceId: ${devId}` })
|
|
80
|
+
}
|
|
77
81
|
retry++;
|
|
78
82
|
if (retry > maxRetries) {
|
|
79
83
|
return undefined;
|
|
@@ -143,4 +147,4 @@ export async function getDpResultByHour(
|
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
149
|
}
|
|
146
|
-
}
|
|
150
|
+
}
|