@lotics/cli 0.42.0 → 0.43.0
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.
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* wrapper (different port), so the app gets its own real origin (and Web
|
|
9
9
|
* Storage) without being able to reach the wrapper. `allow-downloads` lets
|
|
10
10
|
* apps trigger file downloads (generated xlsx / pdf etc.) — Chrome blocks
|
|
11
|
-
* every download path from sandboxed iframes without it.
|
|
11
|
+
* every download path from sandboxed iframes without it. `allow="...; geolocation"`
|
|
12
|
+
* delegates the host's location permission to the app so geofenced actions can
|
|
13
|
+
* read the device position — matching production. The iframe sends postMessage RPCs to
|
|
12
14
|
* this wrapper, which forwards them to the local /_rpc endpoint, which
|
|
13
15
|
* dispatches to api.lotics.ai with the CLI's API key.
|
|
14
16
|
*
|
package/dist/dev/wrapper_page.js
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* wrapper (different port), so the app gets its own real origin (and Web
|
|
9
9
|
* Storage) without being able to reach the wrapper. `allow-downloads` lets
|
|
10
10
|
* apps trigger file downloads (generated xlsx / pdf etc.) — Chrome blocks
|
|
11
|
-
* every download path from sandboxed iframes without it.
|
|
11
|
+
* every download path from sandboxed iframes without it. `allow="...; geolocation"`
|
|
12
|
+
* delegates the host's location permission to the app so geofenced actions can
|
|
13
|
+
* read the device position — matching production. The iframe sends postMessage RPCs to
|
|
12
14
|
* this wrapper, which forwards them to the local /_rpc endpoint, which
|
|
13
15
|
* dispatches to api.lotics.ai with the CLI's API key.
|
|
14
16
|
*
|
|
@@ -60,7 +62,7 @@ export function buildWrapperPage(args) {
|
|
|
60
62
|
<span>workspace <code>${escapeHtml(workspace_id)}</code></span>
|
|
61
63
|
<span>RPC → <code>${escapeHtml(api_url)}</code></span>
|
|
62
64
|
</header>
|
|
63
|
-
<iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write"></iframe>
|
|
65
|
+
<iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write; geolocation"></iframe>
|
|
64
66
|
<script>
|
|
65
67
|
(function () {
|
|
66
68
|
const APP_ID = ${JSON.stringify(app_id)};
|
package/dist/src/cli.js
CHANGED
|
@@ -30766,7 +30766,7 @@ function buildWrapperPage(args) {
|
|
|
30766
30766
|
<span>workspace <code>${escapeHtml2(workspace_id)}</code></span>
|
|
30767
30767
|
<span>RPC \u2192 <code>${escapeHtml2(api_url)}</code></span>
|
|
30768
30768
|
</header>
|
|
30769
|
-
<iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write"></iframe>
|
|
30769
|
+
<iframe id="app" sandbox="allow-scripts allow-same-origin allow-downloads" allow="clipboard-write; geolocation"></iframe>
|
|
30770
30770
|
<script>
|
|
30771
30771
|
(function () {
|
|
30772
30772
|
const APP_ID = ${JSON.stringify(app_id)};
|