@applicaster/zapplicaster-cli 13.0.0-rc.99 → 14.0.0-rc.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapplicaster-cli",
3
- "version": "13.0.0-rc.99",
3
+ "version": "14.0.0-rc.2",
4
4
  "description": "CLI Tool for the zapp app and Quick Brick project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/zapp-react-dom-cli-template": "13.0.0-rc.99",
32
- "@applicaster/zapp-react-native-android-tv-cli-template": "13.0.0-rc.99",
33
- "@applicaster/zapp-react-native-cli-template": "13.0.0-rc.99",
34
- "@applicaster/zapp-react-native-tvos-cli-template": "13.0.0-rc.99",
31
+ "@applicaster/zapp-react-dom-cli-template": "14.0.0-rc.2",
32
+ "@applicaster/zapp-react-native-android-tv-cli-template": "14.0.0-rc.2",
33
+ "@applicaster/zapp-react-native-cli-template": "14.0.0-rc.2",
34
+ "@applicaster/zapp-react-native-tvos-cli-template": "14.0.0-rc.2",
35
35
  "axios": "^0.28.0",
36
36
  "camelize": "^1.0.0",
37
37
  "chalk": "^2.3.2",
@@ -48,7 +48,6 @@
48
48
  "@applicaster/applicaster-types": "*",
49
49
  "@applicaster/blur": "*",
50
50
  "@applicaster/quick-brick-xray": "*",
51
- "@applicaster/react-native-color-thief": "*",
52
51
  "@applicaster/zapp-react-dom-ui-components": "*",
53
52
  "@applicaster/zapp-react-native-redux": "*",
54
53
  "@applicaster/zapp-react-native-tvos-app": "*",
@@ -43,7 +43,13 @@ async function patchPackages() {
43
43
  }
44
44
  }
45
45
 
46
- // JS equivalent of the `toDayJSLocaleMap` function from @applicaster/zapp-react-native-utils/appUtils/localizationsHelper
46
+ /**
47
+ * fallback to en for missing dayjslocalization
48
+ * converts the locale code to a dayjs compatible locale code
49
+ * lowercase input code is expected, e.g. "en-GB" => "en-gb"
50
+ * @param {string} code - locale code, e.g. "en", "fr", "es-LA"
51
+ * from @applicaster/zapp-react-native-utils/appUtils/localizationsHelper
52
+ * */
47
53
  const toDayJSLocaleMap = (code) => {
48
54
  const map = {
49
55
  hy: "hy-am",
@@ -52,10 +58,12 @@ const toDayJSLocaleMap = (code) => {
52
58
  no: null,
53
59
  pa: "pa-in",
54
60
  qu: null,
55
- "es-LA": "es",
56
61
  sm: null,
57
62
  to: null,
58
63
  xh: null,
64
+ tt: null,
65
+ "es-LA": "es",
66
+ "en-UK": "en-gb",
59
67
  };
60
68
 
61
69
  if (map[code] === null) {
@@ -63,7 +71,7 @@ const toDayJSLocaleMap = (code) => {
63
71
  } else if (map[code]) {
64
72
  return map[code];
65
73
  } else {
66
- return code;
74
+ return code.toLowerCase();
67
75
  }
68
76
  };
69
77