@banou/stub 0.0.61 → 0.0.62

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/build/embed.html CHANGED
@@ -5,20 +5,28 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Stub - Embed</title>
7
7
  <style>*{box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0;padding:0}::selection{background:0 0}::selection{background:0 0}html,body{-webkit-tap-highlight-color:transparent;background:#000;width:100%;height:100%;overflow:hidden}#app,#app>div{width:100%;height:100%}#app>div>iframe{width:100%!important;height:100%!important;aspect-ratio:unset!important;border-radius:0!important}</style>
8
- <script type="module" crossorigin src="./assets/embed-Bx_qswl6.js"></script>
8
+ <script type="module" crossorigin src="./assets/embed-CPr65eEs.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="./assets/dist-sBTuRPnX.js">
10
10
  <link rel="modulepreload" crossorigin href="./assets/build-CHRBRLpA.js">
11
- <link rel="modulepreload" crossorigin href="./assets/country-Bcvbkb-P.js">
12
- <link rel="modulepreload" crossorigin href="./assets/embed-title-BDqOXK5e.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/country-DssWUNbC.js">
12
+ <link rel="modulepreload" crossorigin href="./assets/embed-title-BKQDbQFL.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/player-volume-DTOJyhLh.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/dist-B_MSi_-2.js">
15
15
  <link rel="modulepreload" crossorigin href="./assets/remote-D8UjjUy7.js">
16
16
  <link rel="stylesheet" crossorigin href="./assets/embed-3a7RYKgR.css">
17
- <meta name="stub-commit" content="161b571">
17
+ <meta name="stub-commit" content="f13dab2">
18
18
  </head>
19
19
  <body>
20
- <!-- overlay baseline: clipped (invisible + pass-through) until @fkn/lib mounts the projector; display:none would keep the overlay invisible forever -->
21
- <iframe src="https://fkn.app/api" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; clip-path: inset(100%);"></iframe>
20
+ <script>if (window.parent === window) {
21
+ const isolated = window.crossOriginIsolated === true
22
+ const known = document.featurePolicy?.features?.()
23
+ const frame = document.createElement('iframe')
24
+ frame.setAttribute('allow', ["autoplay","fullscreen","picture-in-picture","encrypted-media","screen-wake-lock","speaker-selection","captured-surface-control","camera","microphone","display-capture","geolocation","midi","usb","serial","hid","bluetooth","gamepad","keyboard-map","xr-spatial-tracking","accelerometer","gyroscope","magnetometer","ambient-light-sensor","compute-pressure","clipboard-read","clipboard-write","storage-access","window-management","local-fonts","idle-detection","web-share","sync-xhr","unload","payment","publickey-credentials-get","publickey-credentials-create","otp-credentials","identity-credentials-get","digital-credentials-get","local-network","local-network-access","loopback-network"].concat(isolated ? ['cross-origin-isolated'] : []).filter(name => !known || known.includes(name)).join('; '))
25
+ frame.src = isolated ? "https://fkn.app/api?coi=1" : "https://fkn.app/api"
26
+ frame.style.cssText = 'position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;border:none!important;clip-path:inset(100%)!important'
27
+ document.body.appendChild(frame)
28
+ }</script>
29
+
22
30
  <div id="app"></div>
23
31
  </body>
24
32
  </html>
package/build/index.html CHANGED
@@ -8,18 +8,27 @@
8
8
  <link rel="icon" href="/icons/icon.svg" type="image/svg+xml" />
9
9
  <link rel="manifest" href="/app.webmanifest" />
10
10
  <title>Stub</title>
11
- <script type="module" crossorigin src="/assets/main-B22RJp2Q.js"></script>
11
+ <script type="module" crossorigin src="/assets/main-C24yl1pa.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="/assets/dist-sBTuRPnX.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/build-CHRBRLpA.js">
14
- <link rel="modulepreload" crossorigin href="/assets/country-Bcvbkb-P.js">
15
- <link rel="modulepreload" crossorigin href="/assets/embed-title-BDqOXK5e.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/country-DssWUNbC.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/embed-title-BKQDbQFL.js">
16
16
  <link rel="modulepreload" crossorigin href="/assets/player-volume-DTOJyhLh.js">
17
- <link rel="modulepreload" crossorigin href="/assets/worker-rQdZfdAR.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/worker-SLqI-fGd.js">
18
18
  <link rel="modulepreload" crossorigin href="/assets/remote-D8UjjUy7.js">
19
19
  <link rel="stylesheet" crossorigin href="/assets/main-CSyC6ryz.css">
20
- <meta name="stub-commit" content="161b571">
20
+ <meta name="stub-commit" content="f13dab2">
21
21
  </head>
22
22
  <body>
23
- <iframe src="https://fkn.app/api" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; clip-path: inset(100%);"></iframe>
23
+ <script>if (window.parent === window) {
24
+ const isolated = window.crossOriginIsolated === true
25
+ const known = document.featurePolicy?.features?.()
26
+ const frame = document.createElement('iframe')
27
+ frame.setAttribute('allow', ["autoplay","fullscreen","picture-in-picture","encrypted-media","screen-wake-lock","speaker-selection","captured-surface-control","camera","microphone","display-capture","geolocation","midi","usb","serial","hid","bluetooth","gamepad","keyboard-map","xr-spatial-tracking","accelerometer","gyroscope","magnetometer","ambient-light-sensor","compute-pressure","clipboard-read","clipboard-write","storage-access","window-management","local-fonts","idle-detection","web-share","sync-xhr","unload","payment","publickey-credentials-get","publickey-credentials-create","otp-credentials","identity-credentials-get","digital-credentials-get","local-network","local-network-access","loopback-network"].concat(isolated ? ['cross-origin-isolated'] : []).filter(name => !known || known.includes(name)).join('; '))
28
+ frame.src = isolated ? "https://fkn.app/api?coi=1" : "https://fkn.app/api"
29
+ frame.style.cssText = 'position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;border:none!important;clip-path:inset(100%)!important'
30
+ document.body.appendChild(frame)
31
+ }</script>
32
+
24
33
  </body>
25
34
  </html>