@ledvance/ui-biz-bundle 1.0.2 → 1.0.3

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.
Files changed (35) hide show
  1. package/.babelrc +31 -31
  2. package/.eslintignore +5 -5
  3. package/.eslintrc.js +27 -27
  4. package/.prettierrc.js +1 -1
  5. package/.versionrc +5 -5
  6. package/package.json +72 -72
  7. package/rn-cli.config.js +8 -8
  8. package/src/modules/history/HistoryPage.d.ts +2 -2
  9. package/src/modules/history/HistoryPage.tsx +254 -254
  10. package/src/modules/history/SwitchHistoryPageActions.d.ts +13 -13
  11. package/src/modules/history/SwitchHistoryPageActions.ts +53 -53
  12. package/src/modules/hooks/DeviceDpStateHooks.ts +27 -0
  13. package/src/modules/mood/MixLightActions.ts +82 -0
  14. package/src/modules/mood/MixLightSceneActions.ts +259 -0
  15. package/src/modules/mood/MixMoodItem.tsx +138 -0
  16. package/src/modules/mood/MixScene.tsx +131 -0
  17. package/src/modules/mood/MixSceneBeans.ts +62 -0
  18. package/src/modules/mood/MoodAction.ts +222 -0
  19. package/src/modules/mood/MoodItem.tsx +113 -0
  20. package/src/modules/mood/SceneInfo.ts +319 -0
  21. package/src/modules/timeSchedule/DeviceState.tsx +54 -0
  22. package/src/modules/timeSchedule/LdvScheduleItem.tsx +125 -0
  23. package/src/modules/timeSchedule/ManualSetting.tsx +69 -0
  24. package/src/modules/timeSchedule/MoodSetting.tsx +66 -0
  25. package/src/modules/timeSchedule/ScheduleScene.tsx +138 -0
  26. package/src/modules/timeSchedule/SingleLightView.tsx +254 -0
  27. package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +480 -0
  28. package/src/modules/timeSchedule/TimeSchedulePage.tsx +325 -0
  29. package/src/modules/timeSchedule/TimeSchedulePageEdit.tsx +0 -0
  30. package/src/modules/timeSchedule/mix/MixLightBean.ts +10 -0
  31. package/src/modules/timeSchedule/mix/MixLightView.tsx +221 -0
  32. package/src/modules/timeSchedule/utils.ts +7 -0
  33. package/src/modules/timer/TimerPage.tsx +409 -406
  34. package/src/modules/timer/{timerPageAction.ts → TimerPageAction.ts} +91 -91
  35. package/tsconfig.json +50 -50
package/.babelrc CHANGED
@@ -1,31 +1,31 @@
1
- {
2
- "presets": ["module:metro-react-native-babel-preset"],
3
- "plugins": [
4
- ["@babel/plugin-proposal-decorators", { "legacy": true }],
5
- ["module-resolver", {
6
- "cwd": "babelrc",
7
- "root": ["./src"],
8
- "extensions": [
9
- ".ts",
10
- ".tsx",
11
- ".js",
12
- ".jsx",
13
- ".json"
14
- ],
15
- "alias": {
16
- "@api": "./src/api",
17
- "@components": "./src/components",
18
- "@config": "./src/config",
19
- "@i18n": "./src/i18n",
20
- "@models": "./src/models",
21
- "@res": "./src/res",
22
- "@utils": "./src/utils"
23
- }
24
- }]
25
- ],
26
- "env": {
27
- "production": {
28
- "plugins": ["transform-remove-console"]
29
- }
30
- }
31
- }
1
+ {
2
+ "presets": ["module:metro-react-native-babel-preset"],
3
+ "plugins": [
4
+ ["@babel/plugin-proposal-decorators", { "legacy": true }],
5
+ ["module-resolver", {
6
+ "cwd": "babelrc",
7
+ "root": ["./src"],
8
+ "extensions": [
9
+ ".ts",
10
+ ".tsx",
11
+ ".js",
12
+ ".jsx",
13
+ ".json"
14
+ ],
15
+ "alias": {
16
+ "@api": "./src/api",
17
+ "@components": "./src/components",
18
+ "@config": "./src/config",
19
+ "@i18n": "./src/i18n",
20
+ "@models": "./src/models",
21
+ "@res": "./src/res",
22
+ "@utils": "./src/utils"
23
+ }
24
+ }]
25
+ ],
26
+ "env": {
27
+ "production": {
28
+ "plugins": ["transform-remove-console"]
29
+ }
30
+ }
31
+ }
package/.eslintignore CHANGED
@@ -1,6 +1,6 @@
1
- node_modules
2
- __tests__
3
- src
4
- index.js
5
- index.ios.js
1
+ node_modules
2
+ __tests__
3
+ src
4
+ index.js
5
+ index.ios.js
6
6
  index.android.js
package/.eslintrc.js CHANGED
@@ -1,27 +1,27 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- root: true,
5
- extends: ['tuya/react-native'],
6
- rules: {
7
- 'one-var': 0,
8
- '@typescript-eslint/no-unused-vars': 0,
9
- 'react/jsx-props-no-spreading': 0,
10
- },
11
- settings: {
12
- 'import/resolver': {
13
- alias: {
14
- map: [
15
- ['@api', path.resolve(__dirname, './src/api')],
16
- ['@components', path.resolve(__dirname, './src/components')],
17
- ['@config', path.resolve(__dirname, './src/config')],
18
- ['@i18n', path.resolve(__dirname, './src/i18n')],
19
- ['@models', path.resolve(__dirname, './src/models')],
20
- ['@res', path.resolve(__dirname, './src/res')],
21
- ['@utils', path.resolve(__dirname, './src/utils')],
22
- ],
23
- extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
24
- },
25
- },
26
- },
27
- };
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ root: true,
5
+ extends: ['tuya/react-native'],
6
+ rules: {
7
+ 'one-var': 0,
8
+ '@typescript-eslint/no-unused-vars': 0,
9
+ 'react/jsx-props-no-spreading': 0,
10
+ },
11
+ settings: {
12
+ 'import/resolver': {
13
+ alias: {
14
+ map: [
15
+ ['@api', path.resolve(__dirname, './src/api')],
16
+ ['@components', path.resolve(__dirname, './src/components')],
17
+ ['@config', path.resolve(__dirname, './src/config')],
18
+ ['@i18n', path.resolve(__dirname, './src/i18n')],
19
+ ['@models', path.resolve(__dirname, './src/models')],
20
+ ['@res', path.resolve(__dirname, './src/res')],
21
+ ['@utils', path.resolve(__dirname, './src/utils')],
22
+ ],
23
+ extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
24
+ },
25
+ },
26
+ },
27
+ };
package/.prettierrc.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('eslint-config-tuya/.prettierrc.js');
1
+ module.exports = require('eslint-config-tuya/.prettierrc.js');
package/.versionrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "commitUrlFormat": "https://github.com/tuya/tuya-panel-demo/commit/{{hash}}",
3
- "releaseCommitMessageFormat": "chore(release): @template/basic-ts-navigation {{currentTag}}",
4
- "path": "."
5
- }
1
+ {
2
+ "commitUrlFormat": "https://github.com/tuya/tuya-panel-demo/commit/{{hash}}",
3
+ "releaseCommitMessageFormat": "chore(release): @template/basic-ts-navigation {{currentTag}}",
4
+ "path": "."
5
+ }
package/package.json CHANGED
@@ -1,72 +1,72 @@
1
- {
2
- "rnVersion": "5.30",
3
- "license": "MIT",
4
- "name": "@ledvance/ui-biz-bundle",
5
- "pid": [],
6
- "uiid": "",
7
- "version": "1.0.2",
8
- "scripts": {},
9
- "dependencies": {
10
- "@ledvance/base": "^1.x",
11
- "@reduxjs/toolkit": "^1.8.6",
12
- "@tuya/tuya-panel-api": "^1.12.0",
13
- "ahooks": "^2.x",
14
- "buffer": "^6.0.3",
15
- "dayjs": "^1.11.5",
16
- "events": "^1.1.1",
17
- "lodash": "^4.17.19",
18
- "moment": "^2.20.1",
19
- "prop-types": "^15.6.1",
20
- "react": "16.8.3",
21
- "react-addons-shallow-compare": "^15.6.2",
22
- "react-native": "0.59.10",
23
- "react-native-render-html": "^6.3.4",
24
- "react-native-svg": "5.5.1",
25
- "react-redux": "^7.2.1",
26
- "redux": "^4.0.0",
27
- "redux-actions": "^2.6.1",
28
- "redux-logger": "^3.0.6",
29
- "redux-observable": "^1.0.0",
30
- "redux-thunk": "^2.3.0",
31
- "rxjs": "^6.3.1",
32
- "rxjs-compat": "^6.3.1",
33
- "style-equal": "^1.0.0",
34
- "tuya-panel-kit": "^4.9.4"
35
- },
36
- "devDependencies": {
37
- "@babel/plugin-proposal-decorators": "^7.12.1",
38
- "@commitlint/cli": "^11.0.0",
39
- "@tuya/tuya-panel-patches": "^0.59.10",
40
- "@types/lodash": "^4.14.137",
41
- "@types/react": "^16.0.4",
42
- "@types/react-native": "^0.60.0",
43
- "@types/react-redux": "^7.1.2",
44
- "@types/redux": "^3.6.0",
45
- "@types/redux-actions": "^2.6.1",
46
- "@types/redux-logger": "^3.0.7",
47
- "@types/tuya-panel-kit": "^4.7.3",
48
- "babel-jest": "^22.1.0",
49
- "babel-plugin-import": "^1.11.0",
50
- "babel-plugin-module-resolver": "^4.0.0",
51
- "babel-plugin-transform-decorators-legacy": "^1.3.4",
52
- "babel-plugin-transform-remove-console": "^6.9.4",
53
- "commitizen": "^4.2.2",
54
- "commitlint-config-cz": "^0.13.2",
55
- "cz-customizable": "^6.3.0",
56
- "eslint-config-airbnb": "^18.2.1",
57
- "eslint-config-tuya": "^1.0.0",
58
- "eslint-import-resolver-alias": "^1.1.2",
59
- "eslint-import-resolver-react-native": "^0.2.0",
60
- "eslint-plugin-react-native": "^3.10.0",
61
- "husky": "^4.3.0",
62
- "jest": "^22.1.1",
63
- "metro-react-native-babel-preset": "^0.63.0",
64
- "react-native-typescript-transformer": "^1.2.13",
65
- "react-test-renderer": "^16.2.0",
66
- "standard-version": "^9.0.0",
67
- "typescript": "^4.1.2"
68
- },
69
- "jest": {
70
- "preset": "react-native"
71
- }
72
- }
1
+ {
2
+ "rnVersion": "5.30",
3
+ "license": "MIT",
4
+ "name": "@ledvance/ui-biz-bundle",
5
+ "pid": [],
6
+ "uiid": "",
7
+ "version": "1.0.3",
8
+ "scripts": {},
9
+ "dependencies": {
10
+ "@ledvance/base": "^1.x",
11
+ "@reduxjs/toolkit": "^1.8.6",
12
+ "@tuya/tuya-panel-api": "^1.12.0",
13
+ "ahooks": "^2.x",
14
+ "buffer": "^6.0.3",
15
+ "dayjs": "^1.11.5",
16
+ "events": "^1.1.1",
17
+ "lodash": "^4.17.19",
18
+ "moment": "^2.20.1",
19
+ "prop-types": "^15.6.1",
20
+ "react": "16.8.3",
21
+ "react-addons-shallow-compare": "^15.6.2",
22
+ "react-native": "0.59.10",
23
+ "react-native-render-html": "^6.3.4",
24
+ "react-native-svg": "5.5.1",
25
+ "react-redux": "^7.2.1",
26
+ "redux": "^4.0.0",
27
+ "redux-actions": "^2.6.1",
28
+ "redux-logger": "^3.0.6",
29
+ "redux-observable": "^1.0.0",
30
+ "redux-thunk": "^2.3.0",
31
+ "rxjs": "^6.3.1",
32
+ "rxjs-compat": "^6.3.1",
33
+ "style-equal": "^1.0.0",
34
+ "tuya-panel-kit": "^4.9.4"
35
+ },
36
+ "devDependencies": {
37
+ "@babel/plugin-proposal-decorators": "^7.12.1",
38
+ "@commitlint/cli": "^11.0.0",
39
+ "@tuya/tuya-panel-patches": "^0.59.10",
40
+ "@types/lodash": "^4.14.137",
41
+ "@types/react": "^16.0.4",
42
+ "@types/react-native": "^0.60.0",
43
+ "@types/react-redux": "^7.1.2",
44
+ "@types/redux": "^3.6.0",
45
+ "@types/redux-actions": "^2.6.1",
46
+ "@types/redux-logger": "^3.0.7",
47
+ "@types/tuya-panel-kit": "^4.7.3",
48
+ "babel-jest": "^22.1.0",
49
+ "babel-plugin-import": "^1.11.0",
50
+ "babel-plugin-module-resolver": "^4.0.0",
51
+ "babel-plugin-transform-decorators-legacy": "^1.3.4",
52
+ "babel-plugin-transform-remove-console": "^6.9.4",
53
+ "commitizen": "^4.2.2",
54
+ "commitlint-config-cz": "^0.13.2",
55
+ "cz-customizable": "^6.3.0",
56
+ "eslint-config-airbnb": "^18.2.1",
57
+ "eslint-config-tuya": "^1.0.0",
58
+ "eslint-import-resolver-alias": "^1.1.2",
59
+ "eslint-import-resolver-react-native": "^0.2.0",
60
+ "eslint-plugin-react-native": "^3.10.0",
61
+ "husky": "^4.3.0",
62
+ "jest": "^22.1.1",
63
+ "metro-react-native-babel-preset": "^0.63.0",
64
+ "react-native-typescript-transformer": "^1.2.13",
65
+ "react-test-renderer": "^16.2.0",
66
+ "standard-version": "^9.0.0",
67
+ "typescript": "^4.1.2"
68
+ },
69
+ "jest": {
70
+ "preset": "react-native"
71
+ }
72
+ }
package/rn-cli.config.js CHANGED
@@ -1,8 +1,8 @@
1
- module.exports = {
2
- getTransformModulePath() {
3
- return require.resolve('react-native-typescript-transformer');
4
- },
5
- getSourceExts() {
6
- return ['ts', 'tsx'];
7
- },
8
- };
1
+ module.exports = {
2
+ getTransformModulePath() {
3
+ return require.resolve('react-native-typescript-transformer');
4
+ },
5
+ getSourceExts() {
6
+ return ['ts', 'tsx'];
7
+ },
8
+ };
@@ -1,2 +1,2 @@
1
- declare const SwitchHistoryPage: () => JSX.Element;
2
- export default SwitchHistoryPage;
1
+ declare const SwitchHistoryPage: () => JSX.Element;
2
+ export default SwitchHistoryPage;