pinokiod 5.3.22 → 5.3.24

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": "pinokiod",
3
- "version": "5.3.22",
3
+ "version": "5.3.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -208,6 +208,8 @@
208
208
  iframe.dataset.nodeId = node.id;
209
209
  iframe.name = node.id;
210
210
  iframe.src = node.src || state.defaultPath;
211
+ iframe.setAttribute('allow', 'fullscreen *;');
212
+ iframe.setAttribute('allowfullscreen', '');
211
213
 
212
214
  container.appendChild(iframe);
213
215
  rootEl.appendChild(container);
@@ -1092,7 +1092,7 @@ body.dark .plugin-option:hover {
1092
1092
  </div>
1093
1093
  </div>
1094
1094
  <div class="pinokio-modal-body pinokio-modal-body--iframe">
1095
- <iframe src="${targetUrl}"></iframe>
1095
+ <iframe src="${targetUrl}" allow="fullscreen *;" allowfullscreen></iframe>
1096
1096
  </div>
1097
1097
  <div class="pinokio-modal-footer pinokio-modal-footer--publish" data-publish-footer>
1098
1098
  <button type="button" class="pinokio-publish-close-btn" data-publish-close>Close</button>
@@ -4375,7 +4375,7 @@ header.navheader .mode-selector .community-mode-toggle {
4375
4375
  <div class='browserview-shell'>
4376
4376
  <main class='browserview'>
4377
4377
  <% if (type === 'files') { %>
4378
- <iframe class='selected' src="<%=editor_tab%>"></iframe>
4378
+ <iframe class='selected' src="<%=editor_tab%>" allow="fullscreen *;" allowfullscreen></iframe>
4379
4379
  <% } %>
4380
4380
  </main>
4381
4381
  <% if (registryEnabled) { %>
@@ -4427,7 +4427,7 @@ header.navheader .mode-selector .community-mode-toggle {
4427
4427
  <div class='community-drawer-empty-note muted'>Load https://pinokio.co in the panel (requires network)</div>
4428
4428
  <button type='button' class='btn community-drawer-connect'>Load</button>
4429
4429
  </div>
4430
- <iframe class='community-frame hidden' title="Community updates"></iframe>
4430
+ <iframe class='community-frame hidden' title="Community updates" allow="fullscreen *;" allowfullscreen></iframe>
4431
4431
  </div>
4432
4432
  </div>
4433
4433
  </aside>
@@ -4528,8 +4528,9 @@ header.navheader .mode-selector .community-mode-toggle {
4528
4528
  iframe_onerror(frame)
4529
4529
  frame.setAttribute(
4530
4530
  "allow",
4531
- "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
4531
+ "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; fullscreen *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
4532
4532
  )
4533
+ frame.setAttribute("allowfullscreen", "")
4533
4534
  document.querySelector("main").appendChild(frame)
4534
4535
  loaded[name] = true
4535
4536
  }
@@ -5708,8 +5709,9 @@ const rerenderMenuSection = (container, html) => {
5708
5709
  iframe_onerror(frame)
5709
5710
  frame.setAttribute(
5710
5711
  "allow",
5711
- "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
5712
+ "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; fullscreen *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
5712
5713
  )
5714
+ frame.setAttribute("allowfullscreen", "")
5713
5715
  document.querySelector("main").appendChild(frame)
5714
5716
  loaded[target.target] = true
5715
5717
  lastForegroundSignature = null
@@ -5870,8 +5872,9 @@ const rerenderMenuSection = (container, html) => {
5870
5872
  iframe_onerror(frame)
5871
5873
  frame.setAttribute(
5872
5874
  "allow",
5873
- "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
5875
+ "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; fullscreen *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
5874
5876
  )
5877
+ frame.setAttribute("allowfullscreen", "")
5875
5878
  document.querySelector("main").appendChild(frame)
5876
5879
 
5877
5880
  await syncTabs()
@@ -8079,7 +8082,7 @@ const rerenderMenuSection = (container, html) => {
8079
8082
  let reopenDiffOnCallback = false
8080
8083
 
8081
8084
  const showIframeView = (src) => {
8082
- const iframeMarkup = `<iframe src="${src}" frameborder="0"></iframe>`
8085
+ const iframeMarkup = `<iframe src="${src}" frameborder="0" allow="fullscreen *;" allowfullscreen></iframe>`
8083
8086
  const diffBody = document.querySelector('.pinokio-modal-body--diff')
8084
8087
  let iframeContainer = null
8085
8088
  if (diffBody) {
@@ -9325,7 +9328,7 @@ const rerenderMenuSection = (container, html) => {
9325
9328
  <button class="pinokio-custom-terminal-close">×</button>
9326
9329
  </div>
9327
9330
  <div class="pinokio-custom-terminal-body">
9328
- <iframe src="${src}" frameborder="0"></iframe>
9331
+ <iframe src="${src}" frameborder="0" allow="fullscreen *;" allowfullscreen></iframe>
9329
9332
  </div>
9330
9333
  </div>
9331
9334
  `
@@ -9522,7 +9525,7 @@ const rerenderMenuSection = (container, html) => {
9522
9525
  </div>
9523
9526
  </div>
9524
9527
  <div class="pinokio-modal-body pinokio-modal-body--iframe">
9525
- <iframe src="${timestampedUri}"></iframe>
9528
+ <iframe src="${timestampedUri}" allow="fullscreen *;" allowfullscreen></iframe>
9526
9529
  </div>
9527
9530
  <div class="pinokio-modal-footer pinokio-modal-footer--publish" data-publish-footer>
9528
9531
  ${viewRemoteButton}
@@ -9651,7 +9654,7 @@ const rerenderMenuSection = (container, html) => {
9651
9654
  </div>
9652
9655
  </div>
9653
9656
  <div class="pinokio-modal-body pinokio-modal-body--iframe">
9654
- <iframe src="${finalUri}"></iframe>
9657
+ <iframe src="${finalUri}" allow="fullscreen *;" allowfullscreen></iframe>
9655
9658
  </div>
9656
9659
  <div class="pinokio-modal-footer pinokio-modal-footer--publish" data-publish-footer>
9657
9660
  <button type="button" class="pinokio-publish-close-btn" data-publish-close>Close</button>
@@ -9788,7 +9791,7 @@ const rerenderMenuSection = (container, html) => {
9788
9791
  </div>
9789
9792
  </div>
9790
9793
  <div class="pinokio-modal-body pinokio-modal-body--iframe">
9791
- <iframe src="${finalUri}"></iframe>
9794
+ <iframe src="${finalUri}" allow="fullscreen *;" allowfullscreen></iframe>
9792
9795
  </div>
9793
9796
  <div class="pinokio-modal-footer pinokio-modal-footer--create">
9794
9797
  <button type="button" class="pinokio-modal-secondary-btn" data-create-cancel>Cancel</button>
@@ -10057,7 +10060,7 @@ const rerenderMenuSection = (container, html) => {
10057
10060
  </div>
10058
10061
  </div>
10059
10062
  <div class="pinokio-modal-body pinokio-modal-body--iframe">
10060
- <iframe src="${finalUri}"></iframe>
10063
+ <iframe src="${finalUri}" allow="fullscreen *;" allowfullscreen></iframe>
10061
10064
  </div>
10062
10065
  <div class="pinokio-modal-footer pinokio-modal-footer--publish" data-publish-footer>
10063
10066
  <button type="button" class="pinokio-publish-close-btn" data-publish-close>Close</button>
@@ -62,9 +62,9 @@ body[data-agent='electron'] {
62
62
  <script src="/window_storage.js"></script>
63
63
  </head>
64
64
  <body class='<%=theme%>' data-agent="<%=agent%>">
65
- <iframe id='col0' data-src="<%= originSrc || '/home' %>"></iframe>
65
+ <iframe id='col0' data-src="<%= originSrc || '/home' %>" allow="fullscreen *;" allowfullscreen></iframe>
66
66
  <div id="gutter" class="gutter" tabindex="0" role="separator" aria-orientation="vertical" aria-label="Resize panels" aria-valuemin="120" aria-valuemax="0" aria-valuenow="0"></div>
67
- <iframe id='col1' data-src="<%= targetSrc || originSrc || '/home' %>"></iframe>
67
+ <iframe id='col1' data-src="<%= targetSrc || originSrc || '/home' %>" allow="fullscreen *;" allowfullscreen></iframe>
68
68
 
69
69
  <script>
70
70
  if (window !== window.top) {
@@ -359,7 +359,7 @@ iframe {
359
359
  </button>
360
360
  </h1>
361
361
  </header>
362
- <iframe class='mainframe' src="<%=src%>"></iframe>
362
+ <iframe class='mainframe' src="<%=src%>" allow="fullscreen *;" allowfullscreen></iframe>
363
363
  <script src="/urldropdown.js"></script>
364
364
  <script>
365
365
  // Initialize URL Dropdown with restore behavior
@@ -149,9 +149,9 @@ body main iframe {
149
149
  </header>
150
150
  <main>
151
151
  <% if (theme === "dark") { %>
152
- <iframe name="<%=schema%>" src="<%=discover_dark%>" <%=agent === "electron" ? "no-referrer" : ""%>></iframe>
152
+ <iframe name="<%=schema%>" src="<%=discover_dark%>" <%=agent === "electron" ? "no-referrer" : ""%> allow="fullscreen *;" allowfullscreen></iframe>
153
153
  <% } else { %>
154
- <iframe name="<%=schema%>" src="<%=discover_light%>" <%=agent === "electron" ? "no-referrer" : ""%>></iframe>
154
+ <iframe name="<%=schema%>" src="<%=discover_light%>" <%=agent === "electron" ? "no-referrer" : ""%> allow="fullscreen *;" allowfullscreen></iframe>
155
155
  <% } %>
156
156
  </main>
157
157
  <link href="/xterm.min.css" rel="stylesheet" />
@@ -114,7 +114,7 @@ main iframe {
114
114
  <% } %>
115
115
  </header>
116
116
  <main>
117
- <iframe src="<%=rawpath%>"></iframe>
117
+ <iframe src="<%=rawpath%>" allow="fullscreen *;" allowfullscreen></iframe>
118
118
  </main>
119
119
  </body>
120
120
  </html>
@@ -540,7 +540,7 @@ body.dark .change-count {
540
540
  </div>
541
541
  </main>
542
542
  <div id='term' class='hidden'>
543
- <iframe name='terminal'></iframe>
543
+ <iframe name='terminal' allow="fullscreen *;" allowfullscreen></iframe>
544
544
  </div>
545
545
  <script>
546
546
  new TomSelect("select", {
@@ -1104,11 +1104,12 @@ body.dark .appcanvas {
1104
1104
  let frame = document.createElement("iframe")
1105
1105
  frame.name = target.target
1106
1106
  frame.src = target.href
1107
- frame.setAttribute(
1108
- "allow",
1109
- "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
1110
- )
1111
- document.querySelector("main").appendChild(frame)
1107
+ frame.setAttribute(
1108
+ "allow",
1109
+ "clipboard-read *; clipboard-write *; accelerometer *; ambient-light-sensor *; autoplay *; battery *; camera *; display-capture *; fullscreen *; gamepad *; geolocation *; gyroscope *; hid *; identity-credentials-get *; microphone *; midi *; otp-credentials *; serial *;"
1110
+ )
1111
+ frame.setAttribute("allowfullscreen", "")
1112
+ document.querySelector("main").appendChild(frame)
1112
1113
  loaded[target.target] = true
1113
1114
  }
1114
1115
 
@@ -968,7 +968,7 @@ body.dark .top-menu .btn2.selected {
968
968
  </h1>
969
969
  </header>
970
970
  <div class='appcanvas'>
971
- <iframe src="<%=redirect_uri%>"></iframe>
971
+ <iframe src="<%=redirect_uri%>" allow="fullscreen *;" allowfullscreen></iframe>
972
972
  </div>
973
973
  <script>
974
974
  (function () {
@@ -62,9 +62,9 @@ body[data-agent='electron'] {
62
62
  <script src="/window_storage.js"></script>
63
63
  </head>
64
64
  <body class='<%=theme%>' data-agent="<%=agent%>">
65
- <iframe id='row0' data-src="<%= originSrc || '/home' %>"></iframe>
65
+ <iframe id='row0' data-src="<%= originSrc || '/home' %>" allow="fullscreen *;" allowfullscreen></iframe>
66
66
  <div id="gutter" class="gutter" tabindex="0" role="separator" aria-orientation="horizontal" aria-label="Resize panels" aria-valuemin="120" aria-valuemax="0" aria-valuenow="0"></div>
67
- <iframe id='row1' data-src="<%= targetSrc || originSrc || '/home' %>"></iframe>
67
+ <iframe id='row1' data-src="<%= targetSrc || originSrc || '/home' %>" allow="fullscreen *;" allowfullscreen></iframe>
68
68
 
69
69
  <script>
70
70
  if (window !== window.top) {
@@ -1392,7 +1392,7 @@ const openPackageInstallModal = ({ manager, command, name, channel }) => {
1392
1392
  </div>
1393
1393
  </div>
1394
1394
  <div class="pinokio-modal-body pinokio-modal-body--iframe">
1395
- <iframe src="${shellUrl}"></iframe>
1395
+ <iframe src="${shellUrl}" allow="fullscreen *;" allowfullscreen></iframe>
1396
1396
  </div>
1397
1397
  </div>
1398
1398
  `;