phirepass-widgets 0.0.115 → 0.0.117
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/README.md +13 -12
- package/dist/cjs/{index-BCgmMoIq.js → index-DehquNXP.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/phirepass-downloader_3.cjs.entry.js +20 -9
- package/dist/cjs/phirepass-rdp.cjs.entry.js +2 -2
- package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
- package/dist/cjs/phirepass-widgets.cjs.js +2 -2
- package/dist/cjs/{protocol-CYh109n2.js → protocol-BjOgJZ9-.js} +34 -9
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/phirepass-downloader/phirepass-downloader.js +18 -7
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/{p-DqT-qhTU.js → p-B4kFfbHE.js} +1 -1
- package/dist/components/p-BekUePpu.js +1 -0
- package/dist/components/phirepass-downloader.js +1 -1
- package/dist/components/phirepass-rdp.js +1 -1
- package/dist/components/phirepass-sftp-client.js +1 -1
- package/dist/components/phirepass-terminal.js +4 -4
- package/dist/esm/{index-Dd9o0CbU.js → index-BinptKL7.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/phirepass-downloader_3.entry.js +20 -9
- package/dist/esm/phirepass-rdp.entry.js +2 -2
- package/dist/esm/phirepass-terminal.entry.js +2 -2
- package/dist/esm/phirepass-widgets.js +3 -3
- package/dist/esm/{protocol-BtMWUitf.js → protocol-BekUePpu.js} +33 -8
- package/dist/phirepass-widgets/p-6a192c8d.entry.js +1 -0
- package/dist/phirepass-widgets/{p-705501d4.entry.js → p-9e6f9220.entry.js} +4 -4
- package/dist/phirepass-widgets/p-BekUePpu.js +1 -0
- package/dist/phirepass-widgets/{p-2fd32ec5.entry.js → p-fe1ce8da.entry.js} +1 -1
- package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/dist/types/components/phirepass-downloader/phirepass-downloader.d.ts +7 -0
- package/package.json +9 -9
- package/dist/components/p-BtMWUitf.js +0 -1
- package/dist/phirepass-widgets/p-BtMWUitf.js +0 -1
- package/dist/phirepass-widgets/p-b8caf9e1.entry.js +0 -1
- /package/dist/phirepass-widgets/{p-Dd9o0CbU.js → p-BinptKL7.js} +0 -0
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'phirepass-widgets';
|
|
|
2
2
|
const BUILD = /* phirepass-widgets */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.45.
|
|
5
|
+
Stencil Client Platform v4.45.5 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-BinptKL7.js';
|
|
2
|
+
export { s as setNonce } from './index-BinptKL7.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-
|
|
2
|
-
import { _ as __wbg_init, C as Channel, P as ProtocolMessageType, E as ErrorType, a as ConnectionState } from './protocol-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-BinptKL7.js';
|
|
2
|
+
import { _ as __wbg_init, C as Channel, P as ProtocolMessageType, E as ErrorType, a as ConnectionState } from './protocol-BekUePpu.js';
|
|
3
3
|
|
|
4
4
|
const DOWNLOAD_METHODS = [
|
|
5
5
|
'send_download_start',
|
|
@@ -1630,6 +1630,15 @@ const PhirepassDownloader = class {
|
|
|
1630
1630
|
this.picker = null;
|
|
1631
1631
|
}
|
|
1632
1632
|
// ---------------------------------------------------------------- render
|
|
1633
|
+
/**
|
|
1634
|
+
* The dialog's state as it is now, not as it was when the dialog last rendered.
|
|
1635
|
+
* Handlers run between a state change and the re-render it schedules (tick a box,
|
|
1636
|
+
* then click confirm before the frame), so reading `c` from the render closure
|
|
1637
|
+
* would act on the stale value.
|
|
1638
|
+
*/
|
|
1639
|
+
latest(c) {
|
|
1640
|
+
return this.confirm?.kind === c.kind ? this.confirm : c;
|
|
1641
|
+
}
|
|
1633
1642
|
renderConfirm() {
|
|
1634
1643
|
const c = this.confirm;
|
|
1635
1644
|
if (!c) {
|
|
@@ -1638,13 +1647,15 @@ const PhirepassDownloader = class {
|
|
|
1638
1647
|
const cancel = () => (this.confirm = null);
|
|
1639
1648
|
switch (c.kind) {
|
|
1640
1649
|
case 'stop':
|
|
1641
|
-
return (h(ConfirmStop, { row: c.row, discard: c.discard, onDiscard: discard => (this.confirm = { ...c, discard }), onCancel: cancel, onConfirm: () => {
|
|
1642
|
-
this.
|
|
1650
|
+
return (h(ConfirmStop, { row: c.row, discard: c.discard, onDiscard: discard => (this.confirm = { ...this.latest(c), discard }), onCancel: cancel, onConfirm: () => {
|
|
1651
|
+
const cur = this.latest(c);
|
|
1652
|
+
this.sendStop(cur.row, cur.discard);
|
|
1643
1653
|
this.confirm = null;
|
|
1644
1654
|
} }));
|
|
1645
1655
|
case 'delete':
|
|
1646
|
-
return (h(ConfirmDelete, { row: c.row, nodeName: this.name, deleteFile: c.deleteFile, onDeleteFile: deleteFile => (this.confirm = { ...c, deleteFile }), onCancel: cancel, onConfirm: () => {
|
|
1647
|
-
this.
|
|
1656
|
+
return (h(ConfirmDelete, { row: c.row, nodeName: this.name, deleteFile: c.deleteFile, onDeleteFile: deleteFile => (this.confirm = { ...this.latest(c), deleteFile }), onCancel: cancel, onConfirm: () => {
|
|
1657
|
+
const cur = this.latest(c);
|
|
1658
|
+
this.sendDelete(cur.row, cur.deleteFile);
|
|
1648
1659
|
this.confirm = null;
|
|
1649
1660
|
} }));
|
|
1650
1661
|
case 'fastest':
|
|
@@ -1654,8 +1665,8 @@ const PhirepassDownloader = class {
|
|
|
1654
1665
|
this.confirm = null;
|
|
1655
1666
|
} }));
|
|
1656
1667
|
case 'torrent':
|
|
1657
|
-
return (h(ConfirmTorrent, { nodeName: this.name, dontAsk: c.dontAsk, onDontAsk: dontAsk => (this.confirm = { ...c, dontAsk }), onCancel: cancel, onConfirm: () => {
|
|
1658
|
-
if (c.dontAsk) {
|
|
1668
|
+
return (h(ConfirmTorrent, { nodeName: this.name, dontAsk: c.dontAsk, onDontAsk: dontAsk => (this.confirm = { ...this.latest(c), dontAsk }), onCancel: cancel, onConfirm: () => {
|
|
1669
|
+
if (this.latest(c).dontAsk) {
|
|
1659
1670
|
writeTorrentAck();
|
|
1660
1671
|
this.torrentAcked = true;
|
|
1661
1672
|
}
|
|
@@ -1734,7 +1745,7 @@ const PhirepassDownloader = class {
|
|
|
1734
1745
|
]));
|
|
1735
1746
|
}
|
|
1736
1747
|
render() {
|
|
1737
|
-
return (h(Host, { key: '
|
|
1748
|
+
return (h(Host, { key: 'b7f751d7107ff8f00d791e5c54f4261e2d7cd580', class: { compact: this.compact, standalone: !this.compact } }, this.compact ? this.renderCompact() : this.renderStandalone(), this.renderConfirm(), this.picker && (h(FolderPicker, { key: '538f0f433863e0fbd79a8e66c0b7a45c93a8bd28', root: this.caps?.folder ?? '', path: this.picker.path, folders: this.picker.folders, error: this.picker.error, newName: this.picker.newName, onOpen: name => this.listFolders([...this.picker.path, name]), onUp: depth => this.listFolders(this.picker.path.slice(0, depth)), onNewName: newName => (this.picker = { ...this.picker, newName }), onCancel: () => (this.picker = null), onSave: () => this.savePicker() })), this.player && (h("div", { key: 'b9d3ade696c6079d6a2e3bc2206c19a6bdd7d640', class: "overlay player" }, h("phirepass-media-player", { key: 'c5fa1244ea9766ff37d08478dbc2d096430f2081', src: this.player.src, name: this.player.name, status: this.playerStatus(), ready: this.playerReady(), positionKey: `dl:${this.player.downloadId}`, onPhirepassPlayerClose: () => (this.player = null) }))), h(Notices, { key: '34a34a810001815a890a0995aab44f29f34aab61', notices: this.notices, onDismiss: id => this.dismiss(id) })));
|
|
1738
1749
|
}
|
|
1739
1750
|
playerRow() {
|
|
1740
1751
|
return this.player ? this.jobs[this.player.downloadId] : undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-
|
|
2
|
-
import { _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType } from './protocol-
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-BinptKL7.js';
|
|
2
|
+
import { _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType } from './protocol-BekUePpu.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* RDP's display-control PDU describes a monitor in whole, even pixels within
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, g as getElement, h as h$1, H as Host } from './index-
|
|
2
|
-
import { I as InputMode, _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType, E as ErrorType } from './protocol-
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h as h$1, H as Host } from './index-BinptKL7.js';
|
|
2
|
+
import { I as InputMode, _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType, E as ErrorType } from './protocol-BekUePpu.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-BinptKL7.js';
|
|
2
|
+
export { s as setNonce } from './index-BinptKL7.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.45.
|
|
6
|
+
Stencil Client Patch Browser v4.45.5 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|
|
@@ -536,6 +536,31 @@ class Channel {
|
|
|
536
536
|
}
|
|
537
537
|
wasm.channel_send_sftp_mkdir(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
|
|
538
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* Ask the node to let a player read `path` through this SFTP session.
|
|
541
|
+
* Answered with `SFTPOpResult::Stream { token, size, mime }`; the player
|
|
542
|
+
* then reads `/api/web/stream/{node_id}/t/{token}`.
|
|
543
|
+
* @param {string} node_id
|
|
544
|
+
* @param {number} sid
|
|
545
|
+
* @param {string} path
|
|
546
|
+
* @param {number | null} [msg_id]
|
|
547
|
+
*/
|
|
548
|
+
send_sftp_open_stream(node_id, sid, path, msg_id) {
|
|
549
|
+
const val3 = +sid;
|
|
550
|
+
const val4 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
551
|
+
let ptr0, len0, ptr1, len1;
|
|
552
|
+
try {
|
|
553
|
+
ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
554
|
+
len0 = WASM_VECTOR_LEN;
|
|
555
|
+
ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
556
|
+
len1 = WASM_VECTOR_LEN;
|
|
557
|
+
} catch (e) {
|
|
558
|
+
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
|
|
559
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
560
|
+
throw e;
|
|
561
|
+
}
|
|
562
|
+
wasm.channel_send_sftp_open_stream(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
|
|
563
|
+
}
|
|
539
564
|
/**
|
|
540
565
|
* Read a whole file for the in-page editor. Answered with an
|
|
541
566
|
* `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
|
|
@@ -956,7 +981,7 @@ function __wbg_get_imports() {
|
|
|
956
981
|
const ret = arg0[arg1];
|
|
957
982
|
return ret;
|
|
958
983
|
},
|
|
959
|
-
|
|
984
|
+
__wbg_info_386f00b314475db5: function(arg0, arg1) {
|
|
960
985
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
961
986
|
},
|
|
962
987
|
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
@@ -1066,7 +1091,7 @@ function __wbg_get_imports() {
|
|
|
1066
1091
|
const ret = arg0.value;
|
|
1067
1092
|
return ret;
|
|
1068
1093
|
},
|
|
1069
|
-
|
|
1094
|
+
__wbg_warn_4f0851b2fd19b28b: function(arg0, arg1) {
|
|
1070
1095
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
1071
1096
|
},
|
|
1072
1097
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
@@ -1076,12 +1101,12 @@ function __wbg_get_imports() {
|
|
|
1076
1101
|
},
|
|
1077
1102
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1078
1103
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1079
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1104
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_47);
|
|
1080
1105
|
return ret;
|
|
1081
1106
|
},
|
|
1082
1107
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1083
1108
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1084
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1109
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_48);
|
|
1085
1110
|
return ret;
|
|
1086
1111
|
},
|
|
1087
1112
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
@@ -1132,14 +1157,14 @@ function __wasm_bindgen_func_elem_96(arg0, arg1, arg2) {
|
|
|
1132
1157
|
wasm.__wasm_bindgen_func_elem_96(arg0, arg1, arg2);
|
|
1133
1158
|
}
|
|
1134
1159
|
|
|
1135
|
-
function __wasm_bindgen_func_elem_96_46(arg0, arg1, arg2) {
|
|
1136
|
-
wasm.__wasm_bindgen_func_elem_96_46(arg0, arg1, arg2);
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
1160
|
function __wasm_bindgen_func_elem_96_47(arg0, arg1, arg2) {
|
|
1140
1161
|
wasm.__wasm_bindgen_func_elem_96_47(arg0, arg1, arg2);
|
|
1141
1162
|
}
|
|
1142
1163
|
|
|
1164
|
+
function __wasm_bindgen_func_elem_96_48(arg0, arg1, arg2) {
|
|
1165
|
+
wasm.__wasm_bindgen_func_elem_96_48(arg0, arg1, arg2);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1143
1168
|
|
|
1144
1169
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
1145
1170
|
const ChannelFinalization = (typeof FinalizationRegistry === 'undefined')
|