@wavemaker/rn-codegen 11.4.0-next.24581 → 11.4.0-next.24582

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.
rn-codegen/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/rn-codegen",
3
- "version": "11.4.0-next.24581",
3
+ "version": "11.4.0-next.24582",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,37 +1,64 @@
1
1
  <html>
2
2
 
3
3
  <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <title>WaveMaker Preview</title>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <title>WaveMaker Preview</title>
6
+ <style>
7
+ .show {
8
+ opacity: 0;
9
+ }
10
+
11
+ .hide {
12
+ opacity: 0;
13
+ }
14
+ </style>
6
15
  </head>
7
16
 
8
17
  <body style="height: 100vh; display: flex; padding: 16px;
9
18
  justify-content: center; flex-direction: column;
10
19
  font-family:Arial, Helvetica, sans-serif;
11
20
  background-color: #111; color: #f4f4f4;line-height: 24px;overflow: hidden;">
12
- <div>
13
- <b style="color: #82d3e0;">1.</b> Studio web preview is stopped.<br>
14
- <b style="color: #82d3e0;">2.</b> Execute the following command in your local terminal.
15
- <br>
16
- </div>
17
- <div>
18
- <div
19
- style="background-color: #ccc;color: #333; padding: 16px;
21
+ <div>
22
+ <b style="color: #82d3e0;">1.</b> Studio web preview is disabled. To enable, visit Project Settings.<br>
23
+ <b style="color: #82d3e0;">2.</b> Otherwise, execute the following command in your local terminal.
24
+ <br>
25
+ </div>
26
+ <div>
27
+ <div style="position: relative;background-color: #ccc;color: #333; padding: 24px 16px 16px 16px;
20
28
  border-radius: 8px; font-family:monospace, 'Courier New', Courier;overflow: auto;margin: 8px 0;">
21
- wm-reactnative run web-preview
22
- <script>
23
- document.write('"' + location.href.split('/rn-bundle')[0] + '"')
24
- </script>
29
+ <div style="position: absolute;top: 0; right: 0; background: #666; padding: 2px 8px; color: #82d3e0;" onclick="copy()">Copy</div>
30
+ <div id="command-info" style="word-break: break-word;"></div>
31
+ </div>
32
+ </div>
33
+ <div>
34
+ <b style="color: #82d3e0;">3.</b> Then, open <a style="color: #82d3e0;" href="http://localhost:19009" target="_blank">http://localhost:19009</a> in a web browser.
35
+ <br><span><br><br><br><i style="color: #eee;">To know more, <a
36
+ href="https://docs.wavemaker.com/learn/react-native/generate-web-preview-locally" target="_blank"
37
+ style="color: #82d3e0;">please visit this link</a>.</i></span>
38
+ <span style="display:none">Modified at : {{modified_date}}</span>
25
39
  </div>
26
- </div>
27
- <div>
28
- <b style="color: #82d3e0;">3.</b> Then, open <a style="color: #82d3e0;" href="http://localhost:19009"
29
- target="_blank">http://localhost:19009</a> in a web browser.
30
- <br><span><br><br><br><i style="color: #eee;">To know more, <a
31
- href="https://docs.wavemaker.com/learn/react-native/generate-webpreview-locally" target="_blank"
32
- style="color: #82d3e0;">please visit this link</a>.</span></i>
33
- <span style="display:none">Modified at : {{modified_date}}</span>
34
- </div>
40
+ <div id="message" style="position: fixed; top: 0; right: 0;
41
+ background: #eee; color: #666; padding: 16px; left: 0;
42
+ margin: 4pt; border-radius: 4pt;transition: opacity linear 1s;" class="hide">
43
+ Copied !!!
44
+ </div>
45
+ <script>
46
+ var div = document.getElementById('command-info');
47
+
48
+ function copy() {
49
+ // Copy the text inside the text field
50
+ navigator.clipboard.writeText(div.innerText);
51
+ document.getElementById('message').classList.remove('hide');
52
+ }
53
+ var xhr = new XMLHttpRequest();
54
+ xhr.onreadystatechange = function() {
55
+ if (xhr.readyState == XMLHttpRequest.DONE) {
56
+ div.innerText = `wm-reactnative run web-preview "${location.href.split('/rn-bundle')[0]}#${xhr.responseText.split(';')[0]}"`;
57
+ }
58
+ }
59
+ xhr.open('GET', '/studio/services/auth/token', true);
60
+ xhr.send(null);
61
+ </script>
35
62
  </body>
36
63
 
37
64
  </html>
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@unimodules/react-native-adapter": "6.3.9",
13
- "@wavemaker/app-rn-runtime": "11.4.0-next.24581",
14
- "@wavemaker/variables": "11.4.0-next.24581",
13
+ "@wavemaker/app-rn-runtime": "11.4.0-next.24582",
14
+ "@wavemaker/variables": "11.4.0-next.24582",
15
15
  "axios": "^1.4.0",
16
16
  "css-mediaquery": "^0.1.2",
17
17
  "deprecated-react-native-prop-types": "~4.1.0",
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@unimodules/react-native-adapter": "6.3.9",
13
- "@wavemaker/app-rn-runtime": "11.4.0-next.24581",
14
- "@wavemaker/variables": "11.4.0-next.24581",
13
+ "@wavemaker/app-rn-runtime": "11.4.0-next.24582",
14
+ "@wavemaker/variables": "11.4.0-next.24582",
15
15
  "axios": "^1.4.0",
16
16
  "css-mediaquery": "^0.1.2",
17
17
  "deprecated-react-native-prop-types": "~4.1.0",