zmp-cli 3.8.0-1 → 3.8.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/assets/index.js CHANGED
File without changes
package/build/index.js CHANGED
File without changes
package/config/index.js CHANGED
File without changes
package/create/index.js CHANGED
File without changes
@@ -5,8 +5,8 @@ module.exports = function generatePackageJson(options) {
5
5
  const { name, framework, cssPreProcessor, includeTailwind } = options;
6
6
 
7
7
  // Dependencies
8
- const dependencies = ['zmp-framework@1.7.0-1', 'zmp-sdk', 'swiper'];
9
- const dependenciesVue = ['vue@3', 'zmp-framework@next'];
8
+ const dependencies = ['zmp-framework', 'zmp-sdk', 'swiper'];
9
+ const dependenciesVue = ['vue@3', 'zmp-framework'];
10
10
  const dependenciesReact = ['react', 'react-dom', 'prop-types'];
11
11
  const dependenciesReactTs = ['@types/react', '@types/react-dom'];
12
12
  const tailwindDependencies = [
package/deploy/index.js CHANGED
File without changes
package/login/index.js CHANGED
File without changes
package/migrate/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-cli",
3
- "version": "3.8.0-1",
3
+ "version": "3.8.2",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -103,4 +103,4 @@
103
103
  "eslint-plugin-promise": "^4.2.1",
104
104
  "eslint-plugin-standard": "^5.0.0"
105
105
  }
106
- }
106
+ }
@@ -38,6 +38,10 @@
38
38
  cursor: grab;
39
39
  }
40
40
 
41
+ #zalo-frame.transparent-nav {
42
+ height: calc(100vh - 30px);
43
+ }
44
+
41
45
  .wrapper-frame {
42
46
  width: 100%;
43
47
  height: 100vh;
@@ -224,9 +228,11 @@
224
228
  }
225
229
  function configTopBar(navColor, statusBarColor) {
226
230
  if (navColor) {
231
+ document.getElementById('zalo-frame').classList.remove('transparent-nav')
227
232
  document.getElementById('header').style.backgroundColor = navColor;
228
233
  document.getElementById('statusbar').style.backgroundColor = navColor;
229
234
  } else if (statusBarColor) {
235
+ document.getElementById('zalo-frame').classList.add('transparent-nav');
230
236
  document.getElementById('header').style.display = 'none';
231
237
  document.getElementById('statusbar').style.backgroundColor =
232
238
  statusBarColor;
@@ -277,6 +283,7 @@
277
283
  iframe.src = `${window.location.protocol}//${window.location.hostname}:${
278
284
  window.location.port - 1
279
285
  }`;
286
+ iframe.allow = 'geolocation; microphone; camera; midi; encrypted-media;';
280
287
  document.body.firstElementChild.appendChild(iframe);
281
288
  </script>
282
289
  </html>
package/start/index.js CHANGED
File without changes