@alwith/module-device 0.6.1 → 0.6.2
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/dist/{chunk-sbhrg9jp.js → chunk-35bn393s.js} +2 -2
- package/dist/{chunk-ctffar6x.js → chunk-3n6qrzdg.js} +2 -2
- package/dist/{chunk-rqdjybwe.js → chunk-3zjj07q7.js} +2 -2
- package/dist/chunk-40mwa0cy.js +2 -0
- package/dist/chunk-7n1fmm2p.js +2 -0
- package/dist/chunk-a8pbgphe.js +2 -0
- package/dist/chunk-cyvmm690.js +5 -0
- package/dist/chunk-mx5dd23x.js +2 -0
- package/dist/chunk-pa4b54h3.js +2 -0
- package/dist/chunk-tp1d4pv6.js +2 -0
- package/dist/chunk-wgktmrwt.js +2 -0
- package/dist/chunk-xd4kq6pe.js +2 -0
- package/dist/chunk-yf3yrtxe.js +2 -0
- package/dist/generated/commands.d.ts +155 -0
- package/dist/generated/commands.js +1 -1
- package/dist/index.js +1 -1
- package/dist/preview/activity.d.ts +6 -0
- package/dist/preview/activity.js +1 -0
- package/dist/preview/bezel.js +1 -1
- package/dist/preview/captures.d.ts +8 -0
- package/dist/preview/captures.js +1 -0
- package/dist/preview/device-panel.d.ts +1 -1
- package/dist/preview/device-panel.js +1 -1
- package/dist/preview/gestures.d.ts +1 -1
- package/dist/preview/gestures.js +1 -1
- package/dist/preview/index.d.ts +1 -1
- package/dist/preview/index.js +1 -1
- package/dist/preview/inspection.d.ts +21 -0
- package/dist/preview/inspection.js +1 -0
- package/dist/preview/inspector.d.ts +26 -0
- package/dist/preview/inspector.js +1 -0
- package/dist/preview/live-touch.d.ts +16 -0
- package/dist/preview/live-touch.js +1 -0
- package/dist/preview/locales.js +1 -1
- package/dist/preview/native-view.d.ts +22 -0
- package/dist/preview/native-view.js +1 -0
- package/dist/preview/screens.js +1 -1
- package/dist/preview/types.d.ts +79 -1
- package/dist/tauri.d.ts +23 -0
- package/dist/tauri.js +1 -1
- package/native/darwin-arm64/THIRD_PARTY_NOTICES.md +39 -9
- package/native/darwin-arm64/alwith-device-helper +0 -0
- package/native/darwin-arm64/artifact.json +2 -2
- package/native/darwin-arm64/libalwith_native_device.dylib +0 -0
- package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/icu_collections-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_properties-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_provider-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/litemap-0.8.3/LICENSE +46 -0
- package/native/darwin-arm64/licenses/memmap2-0.9.12/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/memmap2-0.9.12/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/potential_utf-0.1.6/LICENSE +46 -0
- package/native/darwin-arm64/licenses/smallvec-1.16.5/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/smallvec-1.16.5/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/synstructure-0.14.0/LICENSE +7 -0
- package/native/darwin-arm64/licenses/tinystr-0.8.5/LICENSE +46 -0
- package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/uuid-1.29.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/writeable-0.6.4/LICENSE +46 -0
- package/native/darwin-arm64/licenses/yoke-0.8.4/LICENSE +46 -0
- package/native/darwin-arm64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerotrie-0.2.5/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerovec-0.11.9/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
- package/native/win32-x64/THIRD_PARTY_NOTICES.md +38 -8
- package/native/win32-x64/alwith_native_device.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/icu_collections-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_properties-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_provider-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/itertools-0.15.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/itoa-1.0.19/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/litemap-0.8.3/LICENSE +46 -0
- package/native/win32-x64/licenses/memmap2-0.9.12/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/memmap2-0.9.12/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/potential_utf-0.1.6/LICENSE +46 -0
- package/native/win32-x64/licenses/prost-0.14.6/LICENSE +201 -0
- package/native/win32-x64/licenses/prost-derive-0.14.6/LICENSE +201 -0
- package/native/win32-x64/licenses/smallvec-1.16.5/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/smallvec-1.16.5/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/syn-3.0.10/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/synstructure-0.14.0/LICENSE +7 -0
- package/native/win32-x64/licenses/tinystr-0.8.5/LICENSE +46 -0
- package/native/win32-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/uuid-1.29.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/writeable-0.6.4/LICENSE +46 -0
- package/native/win32-x64/licenses/yoke-0.8.4/LICENSE +46 -0
- package/native/win32-x64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
- package/native/win32-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
- package/native/win32-x64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
- package/native/win32-x64/licenses/zerotrie-0.2.5/LICENSE +46 -0
- package/native/win32-x64/licenses/zerovec-0.11.9/LICENSE +46 -0
- package/native/win32-x64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
- package/package.json +2 -2
- package/dist/chunk-48n5t82k.js +0 -2
- package/dist/chunk-f0y4sedm.js +0 -2
- package/dist/chunk-mcpaya08.js +0 -2
- package/dist/chunk-s4svy2y1.js +0 -2
- /package/native/darwin-arm64/licenses/{crc32fast-1.5.4 → crc32fast-1.5.5}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{crc32fast-1.5.4 → crc32fast-1.5.5}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{errno-0.3.14 → displaydoc-0.2.7}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{itoa-1.0.18 → displaydoc-0.2.7}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{itertools-0.14.0 → errno-0.3.15}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{errno-0.3.14 → errno-0.3.15}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{uuid-1.29.1 → form_urlencoded-1.2.2}/LICENSE-APACHE +0 -0
- /package/native/{win32-x64/licenses/itertools-0.14.0 → darwin-arm64/licenses/idna-1.1.0}/LICENSE-APACHE +0 -0
- /package/native/{win32-x64/licenses/uuid-1.29.1 → darwin-arm64/licenses/idna_adapter-1.2.2}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{prost-0.14.4/LICENSE → itertools-0.15.0/LICENSE-APACHE} +0 -0
- /package/native/darwin-arm64/licenses/{itertools-0.14.0 → itertools-0.15.0}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{itoa-1.0.18 → itoa-1.0.19}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{syn-3.0.9 → itoa-1.0.19}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{mio-1.2.4 → mio-1.2.5}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{prost-derive-0.14.4/LICENSE → percent-encoding-2.3.2/LICENSE-APACHE} +0 -0
- /package/native/{win32-x64/licenses/prost-0.14.4 → darwin-arm64/licenses/prost-0.14.6}/LICENSE +0 -0
- /package/native/{win32-x64/licenses/prost-derive-0.14.4 → darwin-arm64/licenses/prost-derive-0.14.6}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{syn-3.0.9 → syn-3.0.10}/LICENSE-APACHE +0 -0
- /package/native/{win32-x64/licenses/itoa-1.0.18 → darwin-arm64/licenses/syn-3.0.10}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{uuid-1.29.1 → uuid-1.29.2}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{crc32fast-1.5.4 → crc32fast-1.5.5}/LICENSE-APACHE +0 -0
- /package/native/win32-x64/licenses/{crc32fast-1.5.4 → crc32fast-1.5.5}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{syn-3.0.9 → displaydoc-0.2.7}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{itertools-0.14.0 → itertools-0.15.0}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{itoa-1.0.18 → itoa-1.0.19}/LICENSE-APACHE +0 -0
- /package/native/win32-x64/licenses/{mio-1.2.4 → mio-1.2.5}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{syn-3.0.9 → syn-3.0.10}/LICENSE-APACHE +0 -0
- /package/native/win32-x64/licenses/{uuid-1.29.1 → uuid-1.29.2}/LICENSE-MIT +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
UNICODE LICENSE V3
|
|
2
|
+
|
|
3
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
4
|
+
|
|
5
|
+
Copyright © 2020-2024 Unicode, Inc.
|
|
6
|
+
|
|
7
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
8
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
9
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
10
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
11
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
14
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
15
|
+
software and any associated documentation (the "Software") to deal in the
|
|
16
|
+
Data Files or Software without restriction, including without limitation
|
|
17
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
18
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
19
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
20
|
+
this copyright and permission notice appear with all copies of the Data
|
|
21
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
22
|
+
associated Documentation.
|
|
23
|
+
|
|
24
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
25
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
27
|
+
THIRD PARTY RIGHTS.
|
|
28
|
+
|
|
29
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
30
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
31
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
32
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
33
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
34
|
+
FILES OR SOFTWARE.
|
|
35
|
+
|
|
36
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
37
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
38
|
+
dealings in these Data Files or Software without prior written
|
|
39
|
+
authorization of the copyright holder.
|
|
40
|
+
|
|
41
|
+
SPDX-License-Identifier: Unicode-3.0
|
|
42
|
+
|
|
43
|
+
—
|
|
44
|
+
|
|
45
|
+
Portions of ICU4X may have been adapted from ICU4C and/or ICU4J.
|
|
46
|
+
ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
UNICODE LICENSE V3
|
|
2
|
+
|
|
3
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
4
|
+
|
|
5
|
+
Copyright © 2020-2024 Unicode, Inc.
|
|
6
|
+
|
|
7
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
8
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
9
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
10
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
11
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
14
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
15
|
+
software and any associated documentation (the "Software") to deal in the
|
|
16
|
+
Data Files or Software without restriction, including without limitation
|
|
17
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
18
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
19
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
20
|
+
this copyright and permission notice appear with all copies of the Data
|
|
21
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
22
|
+
associated Documentation.
|
|
23
|
+
|
|
24
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
25
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
27
|
+
THIRD PARTY RIGHTS.
|
|
28
|
+
|
|
29
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
30
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
31
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
32
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
33
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
34
|
+
FILES OR SOFTWARE.
|
|
35
|
+
|
|
36
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
37
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
38
|
+
dealings in these Data Files or Software without prior written
|
|
39
|
+
authorization of the copyright holder.
|
|
40
|
+
|
|
41
|
+
SPDX-License-Identifier: Unicode-3.0
|
|
42
|
+
|
|
43
|
+
—
|
|
44
|
+
|
|
45
|
+
Portions of ICU4X may have been adapted from ICU4C and/or ICU4J.
|
|
46
|
+
ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
UNICODE LICENSE V3
|
|
2
|
+
|
|
3
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
4
|
+
|
|
5
|
+
Copyright © 2020-2024 Unicode, Inc.
|
|
6
|
+
|
|
7
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
8
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
9
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
10
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
11
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
14
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
15
|
+
software and any associated documentation (the "Software") to deal in the
|
|
16
|
+
Data Files or Software without restriction, including without limitation
|
|
17
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
18
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
19
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
20
|
+
this copyright and permission notice appear with all copies of the Data
|
|
21
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
22
|
+
associated Documentation.
|
|
23
|
+
|
|
24
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
25
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
27
|
+
THIRD PARTY RIGHTS.
|
|
28
|
+
|
|
29
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
30
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
31
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
32
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
33
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
34
|
+
FILES OR SOFTWARE.
|
|
35
|
+
|
|
36
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
37
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
38
|
+
dealings in these Data Files or Software without prior written
|
|
39
|
+
authorization of the copyright holder.
|
|
40
|
+
|
|
41
|
+
SPDX-License-Identifier: Unicode-3.0
|
|
42
|
+
|
|
43
|
+
—
|
|
44
|
+
|
|
45
|
+
Portions of ICU4X may have been adapted from ICU4C and/or ICU4J.
|
|
46
|
+
ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwith/module-device",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@nyssance/shadcn": "^4.23.4",
|
|
41
|
-
"lucide-react": "^1.
|
|
41
|
+
"lucide-react": "^1.73.0",
|
|
42
42
|
"sonner": "^2.0.8"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/dist/chunk-48n5t82k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{invoke as r}from"@tauri-apps/api/core";import{listen as n,once as s,emit as a,emitTo as o}from"@tauri-apps/api/event";var e={context:()=>r("plugin:alwith-device|context"),bind:(t)=>r("plugin:alwith-device|bind",t),stopSession:(t)=>r("plugin:alwith-device|stop_session",t),list:(t)=>r("plugin:alwith-device|list",t),attachments:()=>r("plugin:alwith-device|attachments"),attach:(t)=>r("plugin:alwith-device|attach",t),detach:(t)=>r("plugin:alwith-device|detach",t),frame:(t)=>r("plugin:alwith-device|frame",t),gesture:(t)=>r("plugin:alwith-device|gesture",t),appearance:(t)=>r("plugin:alwith-device|appearance",t),setAppearance:(t)=>r("plugin:alwith-device|set_appearance",t),setStatusBar:(t)=>r("plugin:alwith-device|set_status_bar",t),shutdown:(t)=>r("plugin:alwith-device|shutdown",t),restart:(t)=>r("plugin:alwith-device|restart",t),saveScreenshot:(t)=>r("plugin:alwith-device|save_screenshot",t),recordStart:(t)=>r("plugin:alwith-device|record_start",t),recordStop:(t)=>r("plugin:alwith-device|record_stop",t),logs:(t)=>r("plugin:alwith-device|logs",t),crashReport:(t)=>r("plugin:alwith-device|crash_report",t)},p={"device:attachments":{name:"device:attachments",listen:(t)=>n("device:attachments",t),once:(t)=>s("device:attachments",t),emit:(t)=>a("device:attachments",t),emitTo:(t,i)=>o(t,"device:attachments",i)}};function x(t){return typeof t==="object"&&t!==null&&typeof t.code==="string"&&typeof t.message==="string"}function D(t){if(x(t)||t instanceof Error)return t.message;return String(t)}
|
|
2
|
-
export{e,p,x,D};
|
package/dist/chunk-f0y4sedm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var f={Enter:40,Backspace:42,ArrowRight:79,ArrowLeft:80,ArrowDown:81,ArrowUp:82,Delete:76,Home:74,End:77,PageUp:75,PageDown:78},c={"meta+shift+h":{type:"button",name:"HOME"},"meta+l":{type:"button",name:"LOCK"},"ctrl+meta+z":{type:"shake"},"meta+shift+a":{type:"toggleAppearance"}},d={"meta+shift+h":{type:"button",name:"HOME"},"meta+shift+b":{type:"button",name:"BACK"},"meta+shift+r":{type:"button",name:"RECENTS"},"meta+l":{type:"button",name:"LOCK"},"meta+shift+a":{type:"toggleAppearance"}};function b(e,t){let r=t.t-e.t;if(Math.hypot(t.clientX-e.clientX,t.clientY-e.clientY)<6)return r>=500?{type:"longPress",x:e.x,y:e.y,duration:r/1000}:{type:"tap",x:e.x,y:e.y};return{type:"swipe",x1:e.x,y1:e.y,x2:t.x,y2:t.y,duration:Math.max(0.1,r/1000)}}function S(e){return[e.altKey&&"alt",e.ctrlKey&&"ctrl",e.metaKey&&"meta",e.shiftKey&&"shift",e.key.toLowerCase()].filter(Boolean).join("+")}function u(e,t){if(e.metaKey||e.ctrlKey)return t[S(e)]??null;let r=f[e.key];if(r!==void 0)return{type:"key",code:r};return e.key.length===1?{type:"text",value:e.key}:null}function a(e,t,r,i,n){if(e.width<=0||e.height<=0||i<=0||n<=0)return null;return{x:Math.max(0,Math.min(i-1,Math.round((t-e.left)/e.width*i))),y:Math.max(0,Math.min(n-1,Math.round((r-e.top)/e.height*n)))}}function y(e,t,r,i){let n=e[0],h=e.at(-1);if(!n||!h)throw Error("A pointer path requires samples");let D=b(n,h);if(!e.some((l)=>Math.hypot(l.clientX-n.clientX,l.clientY-n.clientY)>=6)&&!t)return D;let g=Math.min(60,Math.max(0.1,(h.t-n.t)/1000)),K=Math.min(600,Math.max(2,Math.ceil(g*60))),m=0,p=Array.from({length:K},(l,x)=>{let M=n.t+(h.t-n.t)*x/(K-1);while(m+1<e.length-1&&e[m+1].t<M)m++;let o=e[m],s=e[Math.min(m+1,e.length-1)],w=s.t===o.t?0:(M-o.t)/(s.t-o.t);return{x:o.x+(s.x-o.x)*w,y:o.y+(s.y-o.y)*w}});return{type:"touchPath",duration:g,fingers:t?[p,p.map(({x:l,y:x})=>({x:r-1-l,y:i-1-x}))]:[p]}}
|
|
2
|
-
export{f,c,d,b,S,u,a,y};
|
package/dist/chunk-mcpaya08.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r,s,l}from"./chunk-s4svy2y1.js";import{c,d,u,a,y}from"./chunk-f0y4sedm.js";import{o,t}from"./chunk-sbhrg9jp.js";import{n}from"./chunk-arw91r4t.js";import{h,v}from"./chunk-ctffar6x.js";import{Camera as ze,ChevronDown as we,Home as Le,Maximize2 as Fe,Minimize2 as Ie,RotateCw as Oe,Square as Ae,SquareTerminal as He,Video as Xe,X as Ne}from"lucide-react";import{useCallback as K,useEffect as G,useMemo as he,useRef as ae,useState as E}from"react";import{toast as fe}from"sonner";import{Button as Pe}from"@nyssance/shadcn/vega/components/ui/button";import{Tooltip as $e,TooltipContent as qe,TooltipProvider as We,TooltipTrigger as Ye}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as g,jsxs as Z}from"react/jsx-runtime";var te=[25,33,50,66,75,100,125,150,200],xe=(e)=>`alwith-device:consent:${e}`,Ke={read:(e)=>Promise.resolve(Se(()=>localStorage.getItem(xe(e))==="granted")??!1),write:(e,S)=>Promise.resolve(Se(()=>localStorage.setItem(xe(e),S?"granted":"denied"))??void 0)};function Se(e){try{return e()}catch{return null}}function se(e){let S=e instanceof Error?e.message:String(e);try{let w=JSON.parse(S);if(typeof w==="object"&&w!==null&&"message"in w&&typeof w.message==="string")return w.message}catch{}return S}function k({bridge:e,platform:S="ios",udid:w,language:B,agentName:A="AI",pollFps:R=30,maximized:z=!1,onMaximize:T,onClose:N,className:L}){let i=he(()=>o(B),[B]),[M,X]=E(S),[H,ne]=E([]);G(()=>e.subscribe(ne),[e]);let m=he(()=>w?H.find((p)=>p.udid===w):H[0],[H,w]);G(()=>{if(m?.platform==="ios"||m?.platform==="android")X(m.platform)},[m?.platform]);let[I,F]=E("fit"),[_,O]=E(R),[C,le]=E(0),[j,W]=E(!1),[ce,ie]=E(!1),[oe,f]=E(!1),[D,P]=E(null);G(()=>P(null),[m?.udid]);let[J,U]=E(null),[q,ee]=E(null),[de,ge]=E(null),[ve,ue]=E(null),[be,ke]=E("live"),pe=e.consent??Ke,V=K((p)=>{P(null),p().catch((x)=>P(se(x)))},[]),re=K(async(p)=>{U(p&&!p.running?"booting":"attaching"),P(null);try{await e.attach(p?.id,p?.platform??M),ge(null)}catch(x){let b=se(x);if(p&&/no simulator|not available|不可用|No device/i.test(b))ge(p.name);P(b)}finally{U(null)}},[e,M]),me=K(async(p)=>{let x=p;if(!x){let b=await e.listDevices(M);if(x=b.find((Y)=>Y.running)??b[0],!x){P(i.noSimulators);return}}if(await pe.read(x.id))await re(x);else ee(x)},[e,M,pe,re,i.noSimulators]);G(()=>{if(!m||!e.appearance)return;let p=!1;return e.appearance(m.udid).then((x)=>{if(!p)ue(x)}).catch(()=>{return}),()=>{p=!0}},[e,m]);let Te=g(De,{bridge:e,platform:M,labels:i,current:m?.udid,currentName:m?.deviceName,onPlatformChange:X,disabled:J!==null,onPick:(p)=>{if(m&&p.id!==m.udid)V(async()=>{await re(p),await e.detach(m.udid)});else if(!m)V(()=>me(p))}}),Me=[{kind:"item",label:i.undo,disabled:!0,hint:i.inputUnavailable},{kind:"item",label:i.redo,disabled:!0},{kind:"separator"},{kind:"item",label:i.cut,disabled:!0},{kind:"item",label:i.copy,disabled:!0},{kind:"item",label:i.paste,disabled:!0},{kind:"item",label:i.selectAll,disabled:!0},{kind:"item",label:i.delete,disabled:!0}],Ce=()=>{let p=m,x=(b)=>()=>{if(p)V(()=>b(p))};return[{kind:"section",label:i.appearance},{kind:"item",label:i.light,checked:ve==="light",disabled:!p||!e.setAppearance,onSelect:x(async(b)=>{await e.setAppearance?.(b.udid,"light"),ue("light")})},{kind:"item",label:i.dark,checked:ve==="dark",disabled:!p||!e.setAppearance,onSelect:x(async(b)=>{await e.setAppearance?.(b.udid,"dark"),ue("dark")})},{kind:"section",label:i.statusBar},{kind:"item",label:i.statusLive,checked:be==="live",disabled:!p||!e.setStatusBar,onSelect:x(async(b)=>{await e.setStatusBar?.(b.udid,"live"),ke("live")})},{kind:"item",label:i.statusShowcase,checked:be==="showcase",disabled:!p||!e.setStatusBar,onSelect:x(async(b)=>{await e.setStatusBar?.(b.udid,"showcase"),ke("showcase")})},{kind:"separator"},{kind:"item",label:i.restart,disabled:!p||!e.restart,onSelect:x(async(b)=>{U("booting");try{await e.restart?.(b.udid),await e.attach(b.udid,b.platform)}finally{U(null)}})},{kind:"item",label:i.shutdown,disabled:!p||!e.shutdown,onSelect:x((b)=>e.shutdown(b.udid))},{kind:"separator"},{kind:"item",label:i.detach,disabled:!p,onSelect:x((b)=>e.detach(b.udid))}]},ye=(p)=>F((x)=>{let b=x==="fit"?100:x,Y=te.findIndex((Re)=>Re>=b);return(p>0?te[Math.min(te.length-1,(Y===-1?te.length-1:Y)+1)]:te[Math.max(0,(Y===-1?te.length:Y)-1)])??x}),Be=()=>[{kind:"item",label:i.zoomIn,onSelect:()=>ye(1),hint:"⌘+"},{kind:"item",label:i.zoomOut,onSelect:()=>ye(-1),hint:"⌘−"},{kind:"item",label:i.zoomFit,checked:I==="fit",onSelect:()=>F("fit")},{kind:"item",label:i.actualSize,checked:I===100,onSelect:()=>F(100),hint:"⌘0"},{kind:"section",label:i.frameRate},...[15,30,60].map((p)=>({kind:"item",label:`${p} FPS`,checked:_===p,onSelect:()=>O(p)}))],Q=(p,x,b,Y)=>Z($e,{children:[g(Ye,{render:g(Pe,{variant:"ghost",size:"icon-sm","aria-label":p,"aria-pressed":Y?.pressed,disabled:Y?.disabled,onClick:b,className:"aria-pressed:bg-muted"}),children:x}),g(qe,{children:p})]});return g(We,{children:Z("div",{"data-device-panel":!0,className:`bg-background text-foreground flex h-full min-h-0 flex-col ${L??""}`,children:[Z("div",{"data-device-menubar":!0,className:"border-border flex h-10 shrink-0 items-center gap-0.5 overflow-x-auto border-b px-2 whitespace-nowrap",children:[Te,g(n,{label:i.menuEdit,entries:Me}),g(n,{label:i.menuDevice,entries:Ce}),g(n,{label:i.menuView,entries:Be}),g("span",{className:"flex-1"}),m&&g("span",{className:"text-muted-foreground mx-1 text-xs tabular-nums",children:C>0?t(i.fpsValue,{fps:C}):i.fpsIdle}),T&&Q(z?i.collapse:i.expand,z?g(Ie,{}):g(Fe,{}),T,{pressed:z}),N&&Q(i.close,g(Ne,{}),N)]}),D&&g("p",{role:"alert",className:"border-border text-destructive shrink-0 border-b px-3 py-1.5 text-xs",children:D}),g("div",{"data-device-stage":!0,className:`[container-type:size] flex min-h-0 flex-1 items-center justify-center p-4 ${I==="fit"?"overflow-hidden":"overflow-auto"}`,children:m?g(Ze,{bridge:e,attachment:m,labels:i,fps:_,zoom:I,onError:P,onFps:le},m.udid):g(Ee,{kind:r(M,q?.name??"iPhone"),zoom:I,children:q?g(v,{labels:i,agent:A,deviceName:q.name,systemVersion:q.systemVersion,onCancel:()=>ee(null),onContinue:()=>{let p=q;ee(null),V(async()=>{await pe.write(p.id,!0),await re(p)})}}):g(h,{labels:i,agent:A,unavailableDevice:de,busy:J,error:null,onAttach:()=>void me(void 0),picker:g(De,{bridge:e,platform:M,labels:i,disabled:J!==null,compact:!0,onPick:(p)=>void me(p)})})})}),g("div",{"data-device-toolbar":!0,className:"flex shrink-0 justify-center py-3",children:Z("div",{className:"inline-flex items-center gap-0.5",children:[Q(i.home,g(Le,{className:"size-4"}),()=>m&&V(()=>e.gesture(m.udid,{type:"button",name:"HOME"})),{disabled:!m}),Q(i.rotate,g(Oe,{className:"size-4"}),()=>m&&V(()=>e.gesture(m.udid,{type:"rotate",direction:"right"})),{disabled:!m}),Q(i.screenshot,g(ze,{className:"size-4"}),()=>m&&V(async()=>{ie(!0);try{let p;if(e.saveScreenshot)p=await e.saveScreenshot(m.udid,"");else{let x=await e.captureFrame(m.udid);if(!x)throw Error("Device did not produce a frame");let b=document.createElement("a");b.href=x,b.download=`${m.deviceName}-${Date.now()}.${x.startsWith("data:image/jpeg")?"jpg":"png"}`,b.click(),p=b.download}if(p)fe.success(t(i.screenshotSaved,{path:p}))}finally{ie(!1)}}),{disabled:!m||ce}),Q(m?.recordingPath?i.stopRecording:i.record,m?.recordingPath?g(Ae,{className:"size-4"}):g(Xe,{className:"size-4"}),()=>m&&V(async()=>{W(!0);try{if(m.recordingPath){let p=await e.stopRecording(m.udid);fe.success(t(i.recordingSaved,{path:p}))}else await e.startRecording(m.udid),fe.success(i.recordingStarted)}finally{W(!1)}}),{disabled:!m||j||!e.startRecording||!e.stopRecording,pressed:!!m?.recordingPath}),Q(i.logs,g(He,{className:"size-4"}),()=>f((p)=>!p),{disabled:!m||!e.readLogs,pressed:oe})]})}),oe&&m&&e.readLogs&&g(je,{bridge:e,udid:m.udid,labels:i,onClose:()=>f(!1)})]})})}function De({bridge:e,platform:S,labels:w,current:B,currentName:A,onPlatformChange:R,disabled:z,compact:T,onPick:N}){let[L,i]=E(null),[M,X]=E(null),H=K(()=>{i(null),X(null),e.listDevices(S).then(i).catch((F)=>X(se(F)))},[e,S]);G(()=>{H()},[H]);let ne=()=>{if(M)return[{kind:"item",label:M,disabled:!0}];if(L===null)return[{kind:"item",label:w.loadingDevices,disabled:!0}];if(L.length===0)return[{kind:"item",label:w.noSimulators,disabled:!0}];let F=L.filter((C)=>C.running),_=L.filter((C)=>!C.running),O=(C)=>({kind:"item",label:C.name,hint:C.systemVersion,checked:B===void 0?void 0:C.id===B,onSelect:()=>N(C)});return[...F.length>0?[{kind:"section",label:w.booted},...F.map(O)]:[],..._.length>0?[{kind:"section",label:w.willBoot},..._.map(O)]:[]]},m=()=>[...R?[{kind:"item",label:"iOS",checked:S==="ios",onSelect:()=>R("ios")},{kind:"item",label:"Android",checked:S==="android",onSelect:()=>R("android")},{kind:"separator"}]:[],...ne()],I=(F)=>{if(F)H()};if(T)return g(n,{ariaLabel:w.chooseDevice,entries:m,disabled:z,caret:!1,align:"end",variant:"default",size:"lg",className:"border-s-primary-foreground/20 rounded-s-none border-s px-3",onOpenChange:I,children:g(we,{className:"size-4","aria-hidden":!0})});return Z(n,{ariaLabel:w.chooseDevice,entries:m,disabled:z,caret:!1,size:"default",className:"h-8 max-w-48 justify-start px-2 text-left",onOpenChange:I,children:[g("span",{className:"flex min-w-0 items-center gap-2",children:g("span",{className:"truncate text-[15px] font-medium",children:A??w.chooseDevice})}),g(we,{className:"size-4 shrink-0 opacity-60","aria-hidden":!0})]})}function Ee({kind:e,zoom:S,pixelWidth:w,pixelHeight:B,rotation:A,scale:R=3,children:z,overlay:T}){let N=he(()=>s(e,w,B),[e,w,B]),L=S==="fit"?{height:`min(100cqh, calc(100cqw / ${N.aspect}))`,aspectRatio:N.aspect}:(()=>{let i=(100-2*Number.parseFloat(N.style.top))/100;return{height:`${(B??2622)/R*S/100/i}px`,aspectRatio:N.aspect,flexShrink:0}})();return Z("div",{"data-device-screen-stage":!0,className:"relative",style:L,children:[g("div",{className:"bg-background absolute z-0 overflow-hidden",style:N.style,children:z}),g(l,{kind:e,pixelWidth:w,pixelHeight:B,rotation:A,style:{position:"absolute",inset:0,zIndex:10,width:"100%",height:"100%",pointerEvents:"none",userSelect:"none",filter:"drop-shadow(0 2px 6px rgb(0 0 0 / 0.2)) drop-shadow(0 12px 32px rgb(0 0 0 / 0.25))"}}),T&&g("div",{className:"absolute z-20",style:N.style,children:T})]})}function Ze({bridge:e,attachment:S,labels:w,fps:B,zoom:A,onError:R,onFps:z}){let{udid:T,deviceName:N,platform:L}=S,[i,M]=E(null),X=S.pixelWidth&&S.pixelHeight?{width:S.pixelWidth,height:S.pixelHeight}:null,[H,ne]=E(!1),m=ae(null),I=ae(!1),F=ae([]);G(()=>{if(B<=0)return;let f=!1,D,P=0,J=async()=>{if(f)return;let U=performance.now();try{let q=await e.captureFrame(T);if(!f&&q){if(P>0)R(null);P=0,M(q);let ee=performance.now();F.current=[...F.current.filter((de)=>ee-de<2000),ee],z(Math.round(F.current.length/2))}}catch(q){if(!f)P++,F.current=[],M(null),z(0),R(se(q))}if(f)return;D=setTimeout(()=>void J(),P?Math.min(5000,250*2**Math.min(P,5)):Math.max(0,1000/B-(performance.now()-U)))};return J(),()=>{if(f=!0,z(0),D!==void 0)clearTimeout(D)}},[e,T,B,z,R]);let _=r(L,N),O=S.pointWidth??0,C=S.pointHeight??0,le=S.pixelWidth&&O>0?S.pixelWidth/O:void 0,j=K((f)=>{e.gesture(T,f).then(()=>R(null),(D)=>R(se(D)))},[e,T,R]),W=K(()=>{if(H)return;ne(!0),e.takeOver?.(T).catch(()=>{return})},[e,T,H]),ce=K((f)=>{if(f.button!==0)return;W(),f.currentTarget.setPointerCapture(f.pointerId),f.currentTarget.focus({preventScroll:!0});let D=a(f.currentTarget.getBoundingClientRect(),f.clientX,f.clientY,O,C);if(D)m.current={samples:[{...D,clientX:f.clientX,clientY:f.clientY,t:performance.now()}],mirrored:f.altKey}},[W,O,C]),ie=K((f)=>{if(f.button!==0)return;let D=m.current;if(m.current=null,!D)return;let P=a(f.currentTarget.getBoundingClientRect(),f.clientX,f.clientY,O,C);if(!P)return;D.samples.push({...P,clientX:f.clientX,clientY:f.clientY,t:performance.now()}),j(y(D.samples,D.mirrored,O,C))},[j,O,C]),oe=K((f)=>{if(f.nativeEvent.isComposing||I.current)return;let D=u(f,L==="android"?d:c);if(!D)return;f.preventDefault(),f.stopPropagation(),W(),j(D)},[L,j,W]);return g(Ee,{kind:_,zoom:A,pixelWidth:X?.width,pixelHeight:X?.height,scale:le,rotation:S.rotation??void 0,overlay:g("div",{role:"application",tabIndex:0,"aria-label":w.touchSurface,"data-device-touch-surface":!0,"data-controlling":H||void 0,title:H?w.takeOver:void 0,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,spellCheck:!1,className:"h-full w-full cursor-pointer touch-none overflow-hidden text-transparent caret-transparent outline-none",onPointerDown:ce,onPointerMove:(f)=>{let D=m.current;if(!D)return;let P=a(f.currentTarget.getBoundingClientRect(),f.clientX,f.clientY,O,C);if(!P)return;if(D.samples.length>=1200)D.samples=D.samples.filter((J,U)=>U%2===0);D.samples.push({...P,clientX:f.clientX,clientY:f.clientY,t:performance.now()})},onPointerUp:ie,onPointerCancel:()=>m.current=null,onKeyDown:oe,onCompositionStart:()=>{I.current=!0},onCompositionEnd:(f)=>{if(I.current=!1,f.data)W(),j({type:"text",value:f.data});f.currentTarget.textContent=""},onInput:(f)=>{if(!I.current)f.currentTarget.textContent=""},onPaste:(f)=>{f.preventDefault();let D=f.clipboardData.getData("text/plain");if(D)W(),j({type:"text",value:D})}}),children:i?g("img",{src:i,alt:t(w.liveStream,{device:N}),draggable:!1,className:"block h-full w-full bg-black object-cover select-none"}):g("div",{className:"h-full w-full bg-black"})})}function je({bridge:e,udid:S,labels:w,onClose:B}){let[A,R]=E([]),z=ae(0),T=ae(null);return G(()=>{let N=!1,L=async()=>{try{let M=await e.readLogs(S,{sinceSeq:z.current||void 0,tail:200});if(N)return;if(M.entries.length>0)z.current=M.lastSeq,R((X)=>[...X,...M.entries].slice(-500))}catch{}};L();let i=setInterval(()=>void L(),2000);return()=>{N=!0,clearInterval(i)}},[e,S]),G(()=>{T.current?.scrollTo({top:T.current.scrollHeight})},[A]),Z("div",{"data-device-logs":!0,className:"border-border flex h-[40%] shrink-0 flex-col border-t",children:[Z("div",{className:"text-muted-foreground flex h-8 shrink-0 items-center gap-2 px-3 text-xs",children:[g("span",{className:"flex-1",children:w.logsTitle}),g(Pe,{variant:"ghost",size:"icon-xs","aria-label":w.closeLogs,title:w.closeLogs,onClick:B,children:g(Ne,{})})]}),g("div",{ref:T,className:"min-h-0 flex-1 overflow-auto px-3 pb-2 font-mono text-[11px] leading-4",children:A.length===0?g("p",{className:"text-muted-foreground py-4 text-center",children:w.logsEmpty}):A.map((N)=>Z("div",{className:"flex gap-2 break-all whitespace-pre-wrap",children:[g("span",{className:"text-muted-foreground shrink-0",children:N.timestamp.slice(11,23)}),g("span",{className:`shrink-0 ${N.level==="error"||N.level==="fault"?"text-destructive":"text-muted-foreground"}`,children:N.level}),g("span",{children:N.message})]},N.seq))})]})}
|
|
2
|
-
export{k};
|
package/dist/chunk-s4svy2y1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{memo as L,useId as Q,useMemo as S}from"react";import{jsx as R,jsxs as E}from"react/jsx-runtime";var g={iPhone:{pixelW:1206,pixelH:2622,screenRadius:186,frame:34,silver:8,grey:12,nubProtrude:27,nubs:[["left",507,102],["left",690,192],["left",927,192],["right",813,303]]},androidPhone:{pixelW:1080,pixelH:2400,screenRadius:100,frame:22,silver:6,grey:8,nubProtrude:18,nubs:[["right",480,130],["right",670,240]]},iPad:{pixelW:1668,pixelH:2420,screenRadius:58,frame:64,silver:12,grey:16,nubProtrude:20,nubs:[["right",202,104],["right",328,104],["top",-148,126]]}};function r(o,n){if(o==="android")return"androidPhone";return n.toLowerCase().includes("ipad")?"iPad":"iPhone"}function K(o,n,F){let d=g[o],k=d.frame+d.silver+d.grey,f=k+d.nubProtrude,b=n??d.pixelW,P=F??d.pixelH;return{p:d,edge:k,margin:f,W:b+2*f,H:P+2*f,width:b,height:P}}function s(o,n,F){let{p:d,margin:k,W:f,H:b,width:P,height:h}=K(o,n,F),m=100*k/f,t=100*k/b;return{aspect:f/b,style:{left:`${m}%`,top:`${t}%`,width:`${100-2*m}%`,height:`${100-2*t}%`,borderRadius:`${100*d.screenRadius/P}% / ${100*d.screenRadius/h}%`}}}function B(o,n,F,d,k){let f=Math.min(k,Math.min(F,d)/3.06),b=1.528665*f,P=1.088311*f,h=0.868407*f,m=0.631494*f,t=0.372375*f,c=0.16906*f,W=0.066987*f,e=o+F,u=n+d,a=(z)=>+z.toFixed(3),i=(z,H,p,v,C,w)=>`C${a(z)} ${a(H)} ${a(p)} ${a(v)} ${a(C)} ${a(w)}`;return[`M${a(o+b)} ${a(n)}`,`L${a(e-b)} ${a(n)}`,i(e-P,n,e-h,n,e-m,n+W),i(e-t,n+c,e-c,n+t,e-W,n+m),i(e,n+h,e,n+P,e,n+b),`L${a(e)} ${a(u-b)}`,i(e,u-P,e,u-h,e-W,u-m),i(e-c,u-t,e-t,u-c,e-m,u-W),i(e-h,u,e-P,u,e-b,u),`L${a(o+b)} ${a(u)}`,i(o+P,u,o+h,u,o+m,u-W),i(o+t,u-c,o+c,u-t,o+W,u-m),i(o,u-h,o,u-P,o,u-b),`L${a(o)} ${a(n+b)}`,i(o,n+P,o,n+h,o+W,n+m),i(o+c,n+t,o+t,n+c,o+m,n+W),i(o+h,n,o+P,n,o+b,n),"Z"].join("")}var l=L(function({kind:n="iPhone",pixelWidth:F,pixelHeight:d,rotation:k,className:f,style:b}){let P=Q(),h=k??((F??0)>(d??0)?90:0),m=h===90||h===270,t=S(()=>{let{p:c,edge:W,W:e,H:u}=K(n,m?d:F,m?F:d),a=(H)=>B(c.nubProtrude+H,c.nubProtrude+H,e-2*(c.nubProtrude+H),u-2*(c.nubProtrude+H),c.screenRadius+(W-H)),i=c.nubProtrude,z=c.nubs.map(([H,p,v])=>{let C=p+6,w=p+v-6;switch(H){case"left":return{fill:`M0 ${p}h${i}v${v}H0z`,edge:`M${i} ${p}H6Q0 ${p} 0 ${C}V${w}Q0 ${p+v} 6 ${p+v}H${i}`};case"right":return{fill:`M${e-i} ${p}H${e}v${v}H${e-i}z`,edge:`M${e-i} ${p}H${e-6}Q${e} ${p} ${e} ${C}V${w}Q${e} ${p+v} ${e-6} ${p+v}H${e-i}`};default:{let M=p>=0?p:e+p-v;return{fill:`M${M} 0v${i}h${v}V0z`,edge:`M${M} ${i}V6Q${M} 0 ${M+6} 0H${M+v-6}Q${M+v} 0 ${M+v} 6V${i}`}}}});return{W:e,H:u,outer:a(0),grey:a(c.silver),black:a(c.silver+c.grey),cutout:a(W),nubFill:z.map((H)=>H.fill).join(""),nubEdge:z.map((H)=>H.edge).join("")}},[n,F,d,m]);return E("svg",{viewBox:`0 0 ${m?t.H:t.W} ${m?t.W:t.H}`,className:f,style:b,"aria-hidden":!0,focusable:!1,children:[R("defs",{children:E("linearGradient",{id:P,x1:"0",y1:"0",x2:"1",y2:"1",children:[R("stop",{offset:"0%",stopColor:"#e8e8ec"}),R("stop",{offset:"45%",stopColor:"#bcbcc0"}),R("stop",{offset:"55%",stopColor:"#b4b4b8"}),R("stop",{offset:"100%",stopColor:"#e2e2e6"})]})}),E("g",{transform:h===90?`translate(${t.H} 0) rotate(90)`:h===180?`translate(${t.W} ${t.H}) rotate(180)`:h===270?`translate(0 ${t.W}) rotate(270)`:void 0,children:[R("path",{d:`${t.outer} ${t.cutout}`,fill:`url(#${P})`,fillRule:"evenodd"}),R("path",{d:`${t.grey} ${t.cutout}`,fill:"#4a4a4e",fillRule:"evenodd"}),R("path",{d:`${t.black} ${t.cutout}`,fill:"#0b0b0c",fillRule:"evenodd"}),R("path",{d:t.cutout,fill:"none",stroke:"#2a2a2c",strokeWidth:3}),R("path",{d:t.outer,fill:"none",stroke:"#000",strokeWidth:1.5,vectorEffect:"non-scaling-stroke"}),R("path",{d:t.nubFill,fill:"#4a4a4e"}),R("path",{d:t.nubEdge,fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",vectorEffect:"non-scaling-stroke"})]})]})});
|
|
2
|
-
export{g,r,s,l};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/native/darwin-arm64/licenses/{prost-0.14.4/LICENSE → itertools-0.15.0/LICENSE-APACHE}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/native/{win32-x64/licenses/prost-0.14.4 → darwin-arm64/licenses/prost-0.14.6}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/native/{win32-x64/licenses/itoa-1.0.18 → darwin-arm64/licenses/syn-3.0.10}/LICENSE-MIT
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|