@openlv/modal 0.0.1-beta.10

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.
Files changed (94) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +1 -0
  3. package/dist/ar-CyZSQ56p.js +25 -0
  4. package/dist/ar-CyZSQ56p.js.map +1 -0
  5. package/dist/ar-xpXGBcxc.cjs +3 -0
  6. package/dist/ar-xpXGBcxc.cjs.map +1 -0
  7. package/dist/assets/logo.d.ts +5 -0
  8. package/dist/components/Header.d.ts +9 -0
  9. package/dist/components/ModalRoot.d.ts +9 -0
  10. package/dist/components/UnknownState.d.ts +4 -0
  11. package/dist/components/footer/Footer.d.ts +1 -0
  12. package/dist/components/footer/StatusIndicator.d.ts +1 -0
  13. package/dist/components/settings/a11y/index.d.ts +1 -0
  14. package/dist/components/settings/a11y/theme.d.ts +2 -0
  15. package/dist/components/settings/connection/index.d.ts +4 -0
  16. package/dist/components/settings/connection/signaling.d.ts +1 -0
  17. package/dist/components/settings/connection/transport.d.ts +1 -0
  18. package/dist/components/settings/index.d.ts +11 -0
  19. package/dist/context.d.ts +11 -0
  20. package/dist/element.d.ts +23 -0
  21. package/dist/es-B9xaw9fo.cjs +3 -0
  22. package/dist/es-B9xaw9fo.cjs.map +1 -0
  23. package/dist/es-C2sG0TfH.js +25 -0
  24. package/dist/es-C2sG0TfH.js.map +1 -0
  25. package/dist/fa-DCpZYzOX.cjs +3 -0
  26. package/dist/fa-DCpZYzOX.cjs.map +1 -0
  27. package/dist/fa-_bXJQdwj.js +25 -0
  28. package/dist/fa-_bXJQdwj.js.map +1 -0
  29. package/dist/flow/ConnectionFlow.d.ts +6 -0
  30. package/dist/flow/HandshakeOpen.d.ts +4 -0
  31. package/dist/flow/InfoScreen.d.ts +1 -0
  32. package/dist/flow/disconnected/ConnectionGraphic.d.ts +1 -0
  33. package/dist/flow/disconnected/Disconnected.d.ts +4 -0
  34. package/dist/fr-BRQDr1rj.js +25 -0
  35. package/dist/fr-BRQDr1rj.js.map +1 -0
  36. package/dist/fr-D54ESMxz.cjs +3 -0
  37. package/dist/fr-D54ESMxz.cjs.map +1 -0
  38. package/dist/he-BWZyf3Uy.cjs +3 -0
  39. package/dist/he-BWZyf3Uy.cjs.map +1 -0
  40. package/dist/he-NFIsHMZP.js +25 -0
  41. package/dist/he-NFIsHMZP.js.map +1 -0
  42. package/dist/hooks/useClipboard.d.ts +1 -0
  43. package/dist/hooks/useConnectionState.d.ts +7 -0
  44. package/dist/hooks/useEventEmitter.d.ts +2 -0
  45. package/dist/hooks/useNavigationStack.d.ts +12 -0
  46. package/dist/hooks/useProvider.d.ts +5 -0
  47. package/dist/hooks/usePunchTransition.d.ts +8 -0
  48. package/dist/hooks/useSession.d.ts +8 -0
  49. package/dist/hooks/useSettings.d.ts +45 -0
  50. package/dist/hooks/useThemeConfig.d.ts +8 -0
  51. package/dist/index.cjs.js +8 -0
  52. package/dist/index.cjs.js.map +1 -0
  53. package/dist/index.d.ts +13 -0
  54. package/dist/index.es.js +2633 -0
  55. package/dist/index.es.js.map +1 -0
  56. package/dist/modal.css +1 -0
  57. package/dist/nl-BRV9i3nM.js +24 -0
  58. package/dist/nl-BRV9i3nM.js.map +1 -0
  59. package/dist/nl-bCeoO8RU.cjs +2 -0
  60. package/dist/nl-bCeoO8RU.cjs.map +1 -0
  61. package/dist/openlv-CH8lb3Oi.js +98 -0
  62. package/dist/openlv-CH8lb3Oi.js.map +1 -0
  63. package/dist/openlv-SMG3Trx9.cjs +2 -0
  64. package/dist/openlv-SMG3Trx9.cjs.map +1 -0
  65. package/dist/simple-CAAgvkQC.js +114 -0
  66. package/dist/simple-CAAgvkQC.js.map +1 -0
  67. package/dist/simple-DDht1UVo.cjs +2 -0
  68. package/dist/simple-DDht1UVo.cjs.map +1 -0
  69. package/dist/styles/index.d.ts +5 -0
  70. package/dist/sv-BHh_RkLw.cjs +2 -0
  71. package/dist/sv-BHh_RkLw.cjs.map +1 -0
  72. package/dist/sv-CEyo-XBk.js +24 -0
  73. package/dist/sv-CEyo-XBk.js.map +1 -0
  74. package/dist/theme/index.d.ts +8 -0
  75. package/dist/theme/openlv.d.ts +141 -0
  76. package/dist/theme/simple.d.ts +137 -0
  77. package/dist/theme/types.d.ts +98 -0
  78. package/dist/types/connection.d.ts +13 -0
  79. package/dist/ui/Button.d.ts +62 -0
  80. package/dist/ui/InfoTooltip.d.ts +78 -0
  81. package/dist/ui/Input.d.ts +22 -0
  82. package/dist/ui/Select.d.ts +8 -0
  83. package/dist/ui/Toggle.d.ts +7 -0
  84. package/dist/ui/TransitionContainer.d.ts +9 -0
  85. package/dist/ui/menu/MenuGroup.d.ts +6 -0
  86. package/dist/ui/menu/MenuItem.d.ts +5 -0
  87. package/dist/ui/menu/MenuLink.d.ts +7 -0
  88. package/dist/utils/i18n.d.ts +34 -0
  89. package/dist/utils/log.d.ts +1 -0
  90. package/dist/zh-cn-Bqo3eRaE.cjs +3 -0
  91. package/dist/zh-cn-Bqo3eRaE.cjs.map +1 -0
  92. package/dist/zh-cn-DJpfZdjA.js +25 -0
  93. package/dist/zh-cn-DJpfZdjA.js.map +1 -0
  94. package/package.json +76 -0
package/LICENSE ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @openlv/modal
@@ -0,0 +1,25 @@
1
+ const e = { close: "إغلاق", yes: "نعم", no: "لا", protocol: "البروتوكول" }, n = { connectedSuccessfully: "تم الاتصال بنجاح!", connecting: "جارٍ الاتصال", ready: "جاهز", handshakeClosed: "تم إغلاق المصافحة", handshakePartial: "مصافحة جزئية", encrypted: "مشفر", signalError: "خطأ في الإشارة", disconnected: "غير متصل" }, t = { title: "الإعدادات", language: "اللغة", theme: { title: "المظهر", mode: "السمة", light: "فاتح", dark: "داكن", system: "النظام" }, connectionPreferences: { title: "تفضيلات الاتصال", retainSessionHistory: "الاحتفاظ بسجل الجلسة", autoReconnect: "إعادة الاتصال تلقائياً" }, signaling: { title: "الإشارة", description: "الإشارة هي بروتوكول المصافحة المستخدم لإنشاء اتصال.", server: "الخادم", serverUrl: "عنوان الخادم" }, transport: { title: "النقل", description: "هذه هي طريقة الحفاظ على الاتصال.", webrtc: "WebRTC", iceServers: { title: "خوادم ICE", stun: "خوادم STUN", turn: "خوادم TURN", addStun: "إضافة خادم STUN", addTurn: "إضافة خادم TURN", username: "اسم المستخدم", credential: "كلمة المرور" } } }, o = { title: "ربط المحفظة" }, c = { title: "ما هو openlv؟", scanQrCode: "مسح رمز QR", approveOnDevice: "الموافقة على الجهاز", youreConnected: "أنت متصل!" }, s = { prompt: "انقر على الزر أدناه لبدء الاتصال", generateQr: "إنشاء رمز QR", connectionSettings: "إعدادات الاتصال" }, i = { preparingConnection: "جارٍ تحضير الاتصال", generatingKeys: "جارٍ إنشاء المفاتيح...", connecting: "جارٍ الاتصال", waitingForNetwork: "في انتظار اتصال الشبكة...", establishingConnection: "جارٍ إنشاء الاتصال...", mayTakeFewSeconds: "قد يستغرق هذا بضع ثوانٍ...", connectedSuccessfully: "تم الاتصال بنجاح!", walletConnectedReady: "محفظتك متصلة الآن وجاهزة للاستخدام.", disconnected: "غير متصل", connectionClosed: "تم إغلاق الاتصال." }, r = { clickToCopyUrl: "انقر لنسخ رابط الاتصال", copyConnectionUrl: "نسخ رابط الاتصال", scanCodeInstruction: `امسح الرمز أعلاه باستخدام محفظتك المحمولة.
2
+ أو انسخ الرابط والصقه في محفظتك.` }, a = { urlCopied: "تم نسخ رابط الاتصال إلى الحافظة!", backToQr: "العودة إلى رمز QR", closeModal: "إغلاق النافذة" }, l = {
3
+ common: e,
4
+ status: n,
5
+ settings: t,
6
+ start: o,
7
+ info: c,
8
+ disconnected: s,
9
+ connectionFlow: i,
10
+ handshake: r,
11
+ modal: a
12
+ };
13
+ export {
14
+ e as common,
15
+ i as connectionFlow,
16
+ l as default,
17
+ s as disconnected,
18
+ r as handshake,
19
+ c as info,
20
+ a as modal,
21
+ t as settings,
22
+ o as start,
23
+ n as status
24
+ };
25
+ //# sourceMappingURL=ar-CyZSQ56p.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ar-CyZSQ56p.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={close:"إغلاق",yes:"نعم",no:"لا",protocol:"البروتوكول"},n={connectedSuccessfully:"تم الاتصال بنجاح!",connecting:"جارٍ الاتصال",ready:"جاهز",handshakeClosed:"تم إغلاق المصافحة",handshakePartial:"مصافحة جزئية",encrypted:"مشفر",signalError:"خطأ في الإشارة",disconnected:"غير متصل"},t={title:"الإعدادات",language:"اللغة",theme:{title:"المظهر",mode:"السمة",light:"فاتح",dark:"داكن",system:"النظام"},connectionPreferences:{title:"تفضيلات الاتصال",retainSessionHistory:"الاحتفاظ بسجل الجلسة",autoReconnect:"إعادة الاتصال تلقائياً"},signaling:{title:"الإشارة",description:"الإشارة هي بروتوكول المصافحة المستخدم لإنشاء اتصال.",server:"الخادم",serverUrl:"عنوان الخادم"},transport:{title:"النقل",description:"هذه هي طريقة الحفاظ على الاتصال.",webrtc:"WebRTC",iceServers:{title:"خوادم ICE",stun:"خوادم STUN",turn:"خوادم TURN",addStun:"إضافة خادم STUN",addTurn:"إضافة خادم TURN",username:"اسم المستخدم",credential:"كلمة المرور"}}},o={title:"ربط المحفظة"},c={title:"ما هو openlv؟",scanQrCode:"مسح رمز QR",approveOnDevice:"الموافقة على الجهاز",youreConnected:"أنت متصل!"},s={prompt:"انقر على الزر أدناه لبدء الاتصال",generateQr:"إنشاء رمز QR",connectionSettings:"إعدادات الاتصال"},i={preparingConnection:"جارٍ تحضير الاتصال",generatingKeys:"جارٍ إنشاء المفاتيح...",connecting:"جارٍ الاتصال",waitingForNetwork:"في انتظار اتصال الشبكة...",establishingConnection:"جارٍ إنشاء الاتصال...",mayTakeFewSeconds:"قد يستغرق هذا بضع ثوانٍ...",connectedSuccessfully:"تم الاتصال بنجاح!",walletConnectedReady:"محفظتك متصلة الآن وجاهزة للاستخدام.",disconnected:"غير متصل",connectionClosed:"تم إغلاق الاتصال."},r={clickToCopyUrl:"انقر لنسخ رابط الاتصال",copyConnectionUrl:"نسخ رابط الاتصال",scanCodeInstruction:`امسح الرمز أعلاه باستخدام محفظتك المحمولة.
2
+ أو انسخ الرابط والصقه في محفظتك.`},a={urlCopied:"تم نسخ رابط الاتصال إلى الحافظة!",backToQr:"العودة إلى رمز QR",closeModal:"إغلاق النافذة"},l={common:e,status:n,settings:t,start:o,info:c,disconnected:s,connectionFlow:i,handshake:r,modal:a};exports.common=e;exports.connectionFlow=i;exports.default=l;exports.disconnected=s;exports.handshake=r;exports.info=c;exports.modal=a;exports.settings=t;exports.start=o;exports.status=n;
3
+ //# sourceMappingURL=ar-xpXGBcxc.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ar-xpXGBcxc.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * OpenLV icon - 128x128 pixels, optimized WebP format
3
+ * Best for larger UI elements, headers, prominent display
4
+ */
5
+ export declare const OPENLV_ICON_128 = "data:image/webp;base64,UklGRjYRAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSOwHAAABsIb///k21zdJk7anNmfbRrf01uztcO5s2yqOPdu27e2ybaPtlLRJ83nw+ye/3++PZ/eDiJgA+hV0c620Pml9MhYu8HlhejUhJbv1SfO5T+964XrgN/I9hD5uLKDZXXDnXPhfq0ImrdX+BMHb/blCjkJo3v2laeVsmvojRJ8L5ir7Vgz7auuIclbtpHwTtdjCFXlBHIBXGzpFaiXwr06lAt/dR8oQf9cPMgDXyW4R2qCAdvPS09MzBnfo6HPrWBJobjAj3fd5q5+4fAFcJ1qY5dnCbHxathRv/+9rX3wAcrPiZbXafX5TRR1hoxvPPPjJG7ApRE7d5wDOFNYXIgqsO/6M04uzuZSSl8D20B0iCu+465sCusuw/AOKvfSIKKDdYeZVTRmp2QqXk/WJKDr93fdHnUhiwE6w2W1Jty2VGpYkmY2zFeaY9Et6FtirhcioYy4pjCLDbviFeVzcuHqB3WI1rvkKQ8mwbfuY702MK+4mk1PTuAo9Ze4lGNgT5k6scRV7xpwIkRFevWkTVTatFWWS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kj1RPlpUpBzqZ5YIzh/ch9TvBAU7YkxhYoEGS8rfw/dgP9aRwT1caEoREnr087aLahcF/h+/JIJfVqi8kl5IbvseIuGA+m+e1JqF49+tndB4QCulVeeuQsql47VKHF/9q8PRMeGYIfPChm+Osj0cHvED3n39qHidL63b2WYqKMKjTTFeORKbtbEHY7b/Xs29zBbWjwaRQ77mEGpkgDUP8Ebi9KQ2JeoW28yYYSO7pF/mqd2E++jgS/MxBo/x1sK/Nz1ZsMB164YppO3fLO519Erh4lDdAgT58nCsImfBkKhteF9rcpwDZe9j0FQ9IT5nuJH1Bt0Zdd1fIIAkYBzje1xr+t4KDj2F7055fEf9VdfsyJPFcK1JZ26v73bpjXJkmUuzMs3+VbxZQ5/4WBwqFJdbOvpFQ4ot/+Hn+qL0oUn4PA4/cgMjQwiYL81rsWfgtbjRThL/oDLbwfK+9cKcerxpB/GJkt5+x8JVN1A3/YhzzMPDnbewqzn+EodKIALRzTXzDHTMQkNZZY6QKRycJ2VCb8vNvQBmdev/CpTn1fgsVtGDJ0+c1iOBN0/f1DQMifz17Os7Oz1pKw7eOP9dtuyGwI7pYe0cEAHId4jKsr5WYfoSOIgXwE7bTm6l9ytV0zbma1KfNP/Ueaf86PTBrUXb3mh1wOj2xW9r5slTCunQPsdDHdZhtq/ldOBDSm/8BZs0vOj+BaStwJTUL6ShMniBq45fMXgBYhE0HCVgrmd8huP1g79tfH/sI40kXryAN0Id9OxWe8OtUDqd+hFn5Lea/0IyqEMOo1l6zdXzTvnn7ZMZQ13YXZ42HNbFrHSpaISyLIEnjorwZViflpTYJU5+TBcgDljbeiGSw9XFp1juoAWD7Du38M26w9QFezhy38ycpTOQI5qBb7hvaPBeGCI6FZxDSfGL8DLCIuXSPDU1wKHXgrR9dz8+Jzlm9rQs+FlQrh/TVOKrVVxQAAAA==";
@@ -0,0 +1,9 @@
1
+ import { Dispatch, StateUpdater } from 'preact/hooks';
2
+ import { ModalView } from './ModalRoot.js';
3
+ export declare const Header: ({ title, view, onClose, onBack, setView, }: {
4
+ title: string;
5
+ view: ModalView;
6
+ onClose: () => void;
7
+ onBack?: () => void;
8
+ setView: Dispatch<StateUpdater<ModalView>>;
9
+ }) => import("preact").JSX.Element;
@@ -0,0 +1,9 @@
1
+ /** biome-ignore-all lint/a11y/noStaticElementInteractions: overlay requires click to close modal */
2
+ /** biome-ignore-all lint/a11y/useKeyWithClickEvents: escape listener handles keyboard interactions */
3
+ export interface ModalRootProps {
4
+ onClose?: () => void;
5
+ onStartConnection?: () => void;
6
+ onCopy?: (uri: string) => void;
7
+ }
8
+ export type ModalView = "start" | "settings" | "info";
9
+ export declare const ModalRoot: ({ onClose, onCopy }: ModalRootProps) => import("preact").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'preact/compat';
2
+ export declare const UnknownState: FC<{
3
+ state: unknown;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare const Footer: () => import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const FooterStatus: () => import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const LanguageSettings: () => import("preact").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'preact/compat';
2
+ export declare const ThemeSettings: FC;
@@ -0,0 +1,4 @@
1
+ import { SettingsScreen } from '../index.js';
2
+ export declare const ConnectionPreferences: ({ onNavigate, }: {
3
+ onNavigate: (screen: SettingsScreen) => void;
4
+ }) => import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SignalingSettings: () => import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TransportSettings: () => import("preact").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'preact/compat';
2
+ export type SettingsScreen = "main" | "signaling" | "transport";
3
+ export interface SettingsNavigationRef {
4
+ goBack: () => void;
5
+ isAtRoot: boolean;
6
+ }
7
+ export interface ModalSettingsProps {
8
+ onTitleChange?: (titleKey: string) => void;
9
+ navigationRef?: React.MutableRefObject<SettingsNavigationRef | null>;
10
+ }
11
+ export declare const ModalSettings: FC<ModalSettingsProps>;
@@ -0,0 +1,11 @@
1
+ import { OpenLVProvider } from '@openlv/provider';
2
+ import { FC } from 'preact/compat';
3
+ import { OpenLVModalElementProps } from './element.js';
4
+ import { ThemeConfig } from './theme/types.js';
5
+ export type ProviderContextO = {
6
+ provider: OpenLVProvider | undefined;
7
+ themeConfig?: ThemeConfig;
8
+ };
9
+ export declare const ModalContext: import('preact').Context<ProviderContextO>;
10
+ export declare const ModalProvider: FC<OpenLVModalElementProps>;
11
+ export declare const useModalContext: () => ProviderContextO;
@@ -0,0 +1,23 @@
1
+ import { OpenLVProvider } from '@openlv/provider';
2
+ import { ThemeConfig } from './theme/types.js';
3
+ import { ModalConnectionInterface } from './types/connection.js';
4
+ export type OpenLVModalElementProps = {
5
+ provider: OpenLVProvider;
6
+ onClose?: () => void;
7
+ theme?: ThemeConfig;
8
+ };
9
+ export declare class OpenLVModalElement extends HTMLElement implements ModalConnectionInterface {
10
+ private readonly shadow;
11
+ private renderRequested;
12
+ private readonly parameters;
13
+ private themeCleanup?;
14
+ constructor(parameters: OpenLVModalElementProps);
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ private setupThemeListener;
18
+ showModal(): void;
19
+ hideModal(): void;
20
+ private requestRender;
21
+ private performRender;
22
+ }
23
+ export default OpenLVModalElement;
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={close:"Cerrar",yes:"Sí",no:"No",protocol:"Protocolo"},n={connectedSuccessfully:"¡Conectado exitosamente!",connecting:"Conectando",ready:"Listo",handshakeClosed:"Handshake cerrado",handshakePartial:"Handshake parcial",encrypted:"Cifrado",signalError:"Error de señal",disconnected:"Desconectado"},o={title:"Configuración",language:"Idioma",theme:{title:"Apariencia",mode:"Tema",light:"Claro",dark:"Oscuro",system:"Sistema"},connectionPreferences:{title:"Preferencias de conexión",retainSessionHistory:"Conservar historial de sesión",autoReconnect:"Reconexión automática"},signaling:{title:"Señalización",description:"La señalización es el protocolo de handshake utilizado para establecer una conexión.",server:"Servidor",serverUrl:"URL del servidor"},transport:{title:"Transporte",description:"Así es como se mantiene la conexión.",webrtc:"WebRTC",iceServers:{title:"Servidores ICE",stun:"Servidores STUN",turn:"Servidores TURN",addStun:"Agregar servidor STUN",addTurn:"Agregar servidor TURN",username:"Usuario",credential:"Contraseña"}}},a={title:"Conectar Wallet"},t={title:"¿Qué es openlv?",scanQrCode:"Escanear código QR",approveOnDevice:"Aprobar en el dispositivo",youreConnected:"¡Estás conectado!"},c={prompt:"Haz clic en el botón de abajo para iniciar una conexión",generateQr:"Generar QR",connectionSettings:"Configuración de conexión"},r={preparingConnection:"Preparando conexión",generatingKeys:"Generando claves...",connecting:"Conectando",waitingForNetwork:"Esperando conexión de red...",establishingConnection:"Estableciendo conexión...",mayTakeFewSeconds:"Esto puede tardar unos segundos...",connectedSuccessfully:"¡Conectado exitosamente!",walletConnectedReady:"Tu wallet está ahora conectada y lista para usar.",disconnected:"Desconectado",connectionClosed:"La conexión ha sido cerrada."},i={clickToCopyUrl:"Haz clic para copiar la URL de conexión",copyConnectionUrl:"Copiar URL de conexión",scanCodeInstruction:`Escanea el código de arriba usando tu wallet móvil.
2
+ O copia el enlace y pégalo en tu wallet.`},s={urlCopied:"¡URL de conexión copiada al portapapeles!",backToQr:"Volver al QR",closeModal:"Cerrar modal"},d={common:e,status:n,settings:o,start:a,info:t,disconnected:c,connectionFlow:r,handshake:i,modal:s};exports.common=e;exports.connectionFlow=r;exports.default=d;exports.disconnected=c;exports.handshake=i;exports.info=t;exports.modal=s;exports.settings=o;exports.start=a;exports.status=n;
3
+ //# sourceMappingURL=es-B9xaw9fo.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es-B9xaw9fo.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,25 @@
1
+ const e = { close: "Cerrar", yes: "Sí", no: "No", protocol: "Protocolo" }, n = { connectedSuccessfully: "¡Conectado exitosamente!", connecting: "Conectando", ready: "Listo", handshakeClosed: "Handshake cerrado", handshakePartial: "Handshake parcial", encrypted: "Cifrado", signalError: "Error de señal", disconnected: "Desconectado" }, o = { title: "Configuración", language: "Idioma", theme: { title: "Apariencia", mode: "Tema", light: "Claro", dark: "Oscuro", system: "Sistema" }, connectionPreferences: { title: "Preferencias de conexión", retainSessionHistory: "Conservar historial de sesión", autoReconnect: "Reconexión automática" }, signaling: { title: "Señalización", description: "La señalización es el protocolo de handshake utilizado para establecer una conexión.", server: "Servidor", serverUrl: "URL del servidor" }, transport: { title: "Transporte", description: "Así es como se mantiene la conexión.", webrtc: "WebRTC", iceServers: { title: "Servidores ICE", stun: "Servidores STUN", turn: "Servidores TURN", addStun: "Agregar servidor STUN", addTurn: "Agregar servidor TURN", username: "Usuario", credential: "Contraseña" } } }, a = { title: "Conectar Wallet" }, r = { title: "¿Qué es openlv?", scanQrCode: "Escanear código QR", approveOnDevice: "Aprobar en el dispositivo", youreConnected: "¡Estás conectado!" }, t = { prompt: "Haz clic en el botón de abajo para iniciar una conexión", generateQr: "Generar QR", connectionSettings: "Configuración de conexión" }, c = { preparingConnection: "Preparando conexión", generatingKeys: "Generando claves...", connecting: "Conectando", waitingForNetwork: "Esperando conexión de red...", establishingConnection: "Estableciendo conexión...", mayTakeFewSeconds: "Esto puede tardar unos segundos...", connectedSuccessfully: "¡Conectado exitosamente!", walletConnectedReady: "Tu wallet está ahora conectada y lista para usar.", disconnected: "Desconectado", connectionClosed: "La conexión ha sido cerrada." }, i = { clickToCopyUrl: "Haz clic para copiar la URL de conexión", copyConnectionUrl: "Copiar URL de conexión", scanCodeInstruction: `Escanea el código de arriba usando tu wallet móvil.
2
+ O copia el enlace y pégalo en tu wallet.` }, s = { urlCopied: "¡URL de conexión copiada al portapapeles!", backToQr: "Volver al QR", closeModal: "Cerrar modal" }, d = {
3
+ common: e,
4
+ status: n,
5
+ settings: o,
6
+ start: a,
7
+ info: r,
8
+ disconnected: t,
9
+ connectionFlow: c,
10
+ handshake: i,
11
+ modal: s
12
+ };
13
+ export {
14
+ e as common,
15
+ c as connectionFlow,
16
+ d as default,
17
+ t as disconnected,
18
+ i as handshake,
19
+ r as info,
20
+ s as modal,
21
+ o as settings,
22
+ a as start,
23
+ n as status
24
+ };
25
+ //# sourceMappingURL=es-C2sG0TfH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es-C2sG0TfH.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={close:"بستن",yes:"بله",no:"خیر",protocol:"پروتکل"},n={connectedSuccessfully:"با موفقیت متصل شد!",connecting:"در حال اتصال",ready:"آماده",handshakeClosed:"دست‌دهی بسته شد",handshakePartial:"دست‌دهی ناقص",encrypted:"رمزگذاری شده",signalError:"خطای سیگنال",disconnected:"قطع شده"},t={title:"تنظیمات",language:"زبان",theme:{title:"ظاهر",mode:"تم",light:"روشن",dark:"تاریک",system:"سیستم"},connectionPreferences:{title:"ترجیحات اتصال",retainSessionHistory:"حفظ تاریخچه نشست",autoReconnect:"اتصال مجدد خودکار"},signaling:{title:"سیگنال‌دهی",description:"سیگنال‌دهی پروتکل دست‌دهی است که برای برقراری اتصال استفاده می‌شود.",server:"سرور",serverUrl:"آدرس سرور"},transport:{title:"انتقال",description:"این نحوه حفظ اتصال است.",webrtc:"WebRTC",iceServers:{title:"سرورهای ICE",stun:"سرورهای STUN",turn:"سرورهای TURN",addStun:"افزودن سرور STUN",addTurn:"افزودن سرور TURN",username:"نام کاربری",credential:"رمز عبور"}}},o={title:"اتصال کیف پول"},c={title:"openlv چیست؟",scanQrCode:"اسکن کد QR",approveOnDevice:"تأیید در دستگاه",youreConnected:"شما متصل هستید!"},s={prompt:"برای شروع اتصال روی دکمه زیر کلیک کنید",generateQr:"ایجاد QR",connectionSettings:"تنظیمات اتصال"},i={preparingConnection:"آماده‌سازی اتصال",generatingKeys:"در حال ایجاد کلیدها...",connecting:"در حال اتصال",waitingForNetwork:"در انتظار اتصال شبکه...",establishingConnection:"در حال برقراری اتصال...",mayTakeFewSeconds:"این ممکن است چند ثانیه طول بکشد...",connectedSuccessfully:"با موفقیت متصل شد!",walletConnectedReady:"کیف پول شما اکنون متصل و آماده استفاده است.",disconnected:"قطع شده",connectionClosed:"اتصال بسته شده است."},r={clickToCopyUrl:"برای کپی آدرس اتصال کلیک کنید",copyConnectionUrl:"کپی آدرس اتصال",scanCodeInstruction:`کد بالا را با کیف پول موبایل خود اسکن کنید.
2
+ یا لینک را کپی کرده و در کیف پول خود قرار دهید.`},a={urlCopied:"آدرس اتصال در کلیپ‌بورد کپی شد!",backToQr:"بازگشت به QR",closeModal:"بستن پنجره"},l={common:e,status:n,settings:t,start:o,info:c,disconnected:s,connectionFlow:i,handshake:r,modal:a};exports.common=e;exports.connectionFlow=i;exports.default=l;exports.disconnected=s;exports.handshake=r;exports.info=c;exports.modal=a;exports.settings=t;exports.start=o;exports.status=n;
3
+ //# sourceMappingURL=fa-DCpZYzOX.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fa-DCpZYzOX.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,25 @@
1
+ const e = { close: "بستن", yes: "بله", no: "خیر", protocol: "پروتکل" }, n = { connectedSuccessfully: "با موفقیت متصل شد!", connecting: "در حال اتصال", ready: "آماده", handshakeClosed: "دست‌دهی بسته شد", handshakePartial: "دست‌دهی ناقص", encrypted: "رمزگذاری شده", signalError: "خطای سیگنال", disconnected: "قطع شده" }, t = { title: "تنظیمات", language: "زبان", theme: { title: "ظاهر", mode: "تم", light: "روشن", dark: "تاریک", system: "سیستم" }, connectionPreferences: { title: "ترجیحات اتصال", retainSessionHistory: "حفظ تاریخچه نشست", autoReconnect: "اتصال مجدد خودکار" }, signaling: { title: "سیگنال‌دهی", description: "سیگنال‌دهی پروتکل دست‌دهی است که برای برقراری اتصال استفاده می‌شود.", server: "سرور", serverUrl: "آدرس سرور" }, transport: { title: "انتقال", description: "این نحوه حفظ اتصال است.", webrtc: "WebRTC", iceServers: { title: "سرورهای ICE", stun: "سرورهای STUN", turn: "سرورهای TURN", addStun: "افزودن سرور STUN", addTurn: "افزودن سرور TURN", username: "نام کاربری", credential: "رمز عبور" } } }, o = { title: "اتصال کیف پول" }, c = { title: "openlv چیست؟", scanQrCode: "اسکن کد QR", approveOnDevice: "تأیید در دستگاه", youreConnected: "شما متصل هستید!" }, s = { prompt: "برای شروع اتصال روی دکمه زیر کلیک کنید", generateQr: "ایجاد QR", connectionSettings: "تنظیمات اتصال" }, i = { preparingConnection: "آماده‌سازی اتصال", generatingKeys: "در حال ایجاد کلیدها...", connecting: "در حال اتصال", waitingForNetwork: "در انتظار اتصال شبکه...", establishingConnection: "در حال برقراری اتصال...", mayTakeFewSeconds: "این ممکن است چند ثانیه طول بکشد...", connectedSuccessfully: "با موفقیت متصل شد!", walletConnectedReady: "کیف پول شما اکنون متصل و آماده استفاده است.", disconnected: "قطع شده", connectionClosed: "اتصال بسته شده است." }, r = { clickToCopyUrl: "برای کپی آدرس اتصال کلیک کنید", copyConnectionUrl: "کپی آدرس اتصال", scanCodeInstruction: `کد بالا را با کیف پول موبایل خود اسکن کنید.
2
+ یا لینک را کپی کرده و در کیف پول خود قرار دهید.` }, a = { urlCopied: "آدرس اتصال در کلیپ‌بورد کپی شد!", backToQr: "بازگشت به QR", closeModal: "بستن پنجره" }, l = {
3
+ common: e,
4
+ status: n,
5
+ settings: t,
6
+ start: o,
7
+ info: c,
8
+ disconnected: s,
9
+ connectionFlow: i,
10
+ handshake: r,
11
+ modal: a
12
+ };
13
+ export {
14
+ e as common,
15
+ i as connectionFlow,
16
+ l as default,
17
+ s as disconnected,
18
+ r as handshake,
19
+ c as info,
20
+ a as modal,
21
+ t as settings,
22
+ o as start,
23
+ n as status
24
+ };
25
+ //# sourceMappingURL=fa-_bXJQdwj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fa-_bXJQdwj.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ interface ConnectionFlowProps {
2
+ onClose: () => void;
3
+ onCopy: (uri: string) => void;
4
+ }
5
+ export declare const ConnectionFlow: ({ onClose, onCopy }: ConnectionFlowProps) => import("preact").JSX.Element;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ import { FC } from 'preact/compat';
2
+ export declare const HandshakeOpen: FC<{
3
+ onCopy: (uri: string) => void;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare const InfoScreen: () => import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ConnectionGraphic: () => import("preact").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'preact/compat';
2
+ export declare const Disconnected: FC<{
3
+ onSettings: () => void;
4
+ }>;
@@ -0,0 +1,25 @@
1
+ const e = { close: "Fermer", no: "Non", protocol: "Protocole", yes: "Oui" }, n = { connectedSuccessfully: "Connecté avec succès!", connecting: "De liaison", connectionClosed: "La connexion a été fermée.", disconnected: "Déconnecté", establishingConnection: "Établir la connexion...", generatingKeys: "Génération de clés...", mayTakeFewSeconds: "Cela peut prendre quelques secondes...", preparingConnection: "Préparation de la connexion", waitingForNetwork: "En attente de connexion réseau...", walletConnectedReady: "Votre portefeuille est maintenant connecté et prêt à être utilisé." }, o = { connectionSettings: "Paramètres de connexion", generateQr: "Générer des QR", prompt: "Cliquez sur le bouton ci-dessous pour démarrer une connexion" }, t = { clickToCopyUrl: "Cliquez pour copier l'URL de connexion", copyConnectionUrl: "Copier l'URL de connexion", scanCodeInstruction: `Scannez le code ci-dessus à l'aide de votre portefeuille mobile.
2
+ Ou copiez le lien et collez-le dans votre portefeuille.` }, r = { approveOnDevice: "Approuver sur l'appareil", scanQrCode: "Scanner le code QR", title: "Qu'est-ce qu'openlv ?", youreConnected: "Vous êtes connecté!" }, s = { backToQr: "Retour au QR", closeModal: "Fermer modale", urlCopied: "URL de connexion copiée dans le presse-papier!" }, i = { connectionPreferences: { autoReconnect: "Reconnexion automatique", retainSessionHistory: "Conserver l'historique des sessions", title: "Préférences de connexion" }, language: "Langue", theme: { title: "Apparence", mode: "Thème", light: "Clair", dark: "Sombre", system: "Système" }, signaling: { description: "La signalisation est le protocole de prise de contact utilisé pour établir une connexion.", server: "Serveur", serverUrl: "URL du serveur", title: "Signalisation" }, title: "Paramètres", transport: { description: "C'est ainsi que la connexion est maintenue.", title: "Transport", webrtc: "WebRTC", iceServers: { title: "Serveurs ICE", stun: "Serveurs STUN", turn: "Serveurs TURN", addStun: "Ajouter un serveur STUN", addTurn: "Ajouter un serveur TURN", username: "Nom d'utilisateur", credential: "Mot de passe" } } }, c = { title: "Connecter le portefeuille" }, a = { connectedSuccessfully: "Connecté avec succès!", connecting: "De liaison", disconnected: "Déconnecté", encrypted: "Crypté", handshakeClosed: "Poignée de main fermée", handshakePartial: "Poignée de main partielle", ready: "Prêt", signalError: "Erreur de signal" }, l = {
3
+ common: e,
4
+ connectionFlow: n,
5
+ disconnected: o,
6
+ handshake: t,
7
+ info: r,
8
+ modal: s,
9
+ settings: i,
10
+ start: c,
11
+ status: a
12
+ };
13
+ export {
14
+ e as common,
15
+ n as connectionFlow,
16
+ l as default,
17
+ o as disconnected,
18
+ t as handshake,
19
+ r as info,
20
+ s as modal,
21
+ i as settings,
22
+ c as start,
23
+ a as status
24
+ };
25
+ //# sourceMappingURL=fr-BRQDr1rj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr-BRQDr1rj.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={close:"Fermer",no:"Non",protocol:"Protocole",yes:"Oui"},n={connectedSuccessfully:"Connecté avec succès!",connecting:"De liaison",connectionClosed:"La connexion a été fermée.",disconnected:"Déconnecté",establishingConnection:"Établir la connexion...",generatingKeys:"Génération de clés...",mayTakeFewSeconds:"Cela peut prendre quelques secondes...",preparingConnection:"Préparation de la connexion",waitingForNetwork:"En attente de connexion réseau...",walletConnectedReady:"Votre portefeuille est maintenant connecté et prêt à être utilisé."},o={connectionSettings:"Paramètres de connexion",generateQr:"Générer des QR",prompt:"Cliquez sur le bouton ci-dessous pour démarrer une connexion"},t={clickToCopyUrl:"Cliquez pour copier l'URL de connexion",copyConnectionUrl:"Copier l'URL de connexion",scanCodeInstruction:`Scannez le code ci-dessus à l'aide de votre portefeuille mobile.
2
+ Ou copiez le lien et collez-le dans votre portefeuille.`},r={approveOnDevice:"Approuver sur l'appareil",scanQrCode:"Scanner le code QR",title:"Qu'est-ce qu'openlv ?",youreConnected:"Vous êtes connecté!"},s={backToQr:"Retour au QR",closeModal:"Fermer modale",urlCopied:"URL de connexion copiée dans le presse-papier!"},i={connectionPreferences:{autoReconnect:"Reconnexion automatique",retainSessionHistory:"Conserver l'historique des sessions",title:"Préférences de connexion"},language:"Langue",theme:{title:"Apparence",mode:"Thème",light:"Clair",dark:"Sombre",system:"Système"},signaling:{description:"La signalisation est le protocole de prise de contact utilisé pour établir une connexion.",server:"Serveur",serverUrl:"URL du serveur",title:"Signalisation"},title:"Paramètres",transport:{description:"C'est ainsi que la connexion est maintenue.",title:"Transport",webrtc:"WebRTC",iceServers:{title:"Serveurs ICE",stun:"Serveurs STUN",turn:"Serveurs TURN",addStun:"Ajouter un serveur STUN",addTurn:"Ajouter un serveur TURN",username:"Nom d'utilisateur",credential:"Mot de passe"}}},c={title:"Connecter le portefeuille"},a={connectedSuccessfully:"Connecté avec succès!",connecting:"De liaison",disconnected:"Déconnecté",encrypted:"Crypté",handshakeClosed:"Poignée de main fermée",handshakePartial:"Poignée de main partielle",ready:"Prêt",signalError:"Erreur de signal"},l={common:e,connectionFlow:n,disconnected:o,handshake:t,info:r,modal:s,settings:i,start:c,status:a};exports.common=e;exports.connectionFlow=n;exports.default=l;exports.disconnected=o;exports.handshake=t;exports.info=r;exports.modal=s;exports.settings=i;exports.start=c;exports.status=a;
3
+ //# sourceMappingURL=fr-D54ESMxz.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr-D54ESMxz.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={close:"סגור",yes:"כן",no:"לא",protocol:"פרוטוקול"},n={connectedSuccessfully:"התחברת בהצלחה!",connecting:"מתחבר",ready:"מוכן",handshakeClosed:"לחיצת היד נסגרה",handshakePartial:"לחיצת יד חלקית",encrypted:"מוצפן",signalError:"שגיאת אות",disconnected:"מנותק"},t={title:"הגדרות",language:"שפה",theme:{title:"מראה",mode:"ערכת נושא",light:"בהיר",dark:"כהה",system:"מערכת"},connectionPreferences:{title:"העדפות חיבור",retainSessionHistory:"שמור היסטוריית הפעלה",autoReconnect:"התחבר מחדש אוטומטית"},signaling:{title:"איתות",description:"איתות הוא פרוטוקול לחיצת היד המשמש ליצירת חיבור.",server:"שרת",serverUrl:"כתובת השרת"},transport:{title:"תעבורה",description:"כך מתוחזק החיבור.",webrtc:"WebRTC",iceServers:{title:"שרתי ICE",stun:"שרתי STUN",turn:"שרתי TURN",addStun:"הוסף שרת STUN",addTurn:"הוסף שרת TURN",username:"שם משתמש",credential:"סיסמה"}}},o={title:"חבר ארנק"},c={title:"מה זה openlv?",scanQrCode:"סרוק קוד QR",approveOnDevice:"אשר במכשיר",youreConnected:"אתה מחובר!"},s={prompt:"לחץ על הכפתור למטה כדי להתחיל חיבור",generateQr:"צור QR",connectionSettings:"הגדרות חיבור"},i={preparingConnection:"מכין חיבור",generatingKeys:"מייצר מפתחות...",connecting:"מתחבר",waitingForNetwork:"ממתין לחיבור רשת...",establishingConnection:"יוצר חיבור...",mayTakeFewSeconds:"זה עשוי לקחת כמה שניות...",connectedSuccessfully:"התחברת בהצלחה!",walletConnectedReady:"הארנק שלך מחובר ומוכן לשימוש.",disconnected:"מנותק",connectionClosed:"החיבור נסגר."},r={clickToCopyUrl:"לחץ להעתקת כתובת החיבור",copyConnectionUrl:"העתק כתובת חיבור",scanCodeInstruction:`סרוק את הקוד למעלה באמצעות הארנק הנייד שלך.
2
+ או העתק את הקישור והדבק אותו בארנק שלך.`},a={urlCopied:"כתובת החיבור הועתקה ללוח!",backToQr:"חזור ל-QR",closeModal:"סגור חלון"},l={common:e,status:n,settings:t,start:o,info:c,disconnected:s,connectionFlow:i,handshake:r,modal:a};exports.common=e;exports.connectionFlow=i;exports.default=l;exports.disconnected=s;exports.handshake=r;exports.info=c;exports.modal=a;exports.settings=t;exports.start=o;exports.status=n;
3
+ //# sourceMappingURL=he-BWZyf3Uy.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"he-BWZyf3Uy.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,25 @@
1
+ const e = { close: "סגור", yes: "כן", no: "לא", protocol: "פרוטוקול" }, n = { connectedSuccessfully: "התחברת בהצלחה!", connecting: "מתחבר", ready: "מוכן", handshakeClosed: "לחיצת היד נסגרה", handshakePartial: "לחיצת יד חלקית", encrypted: "מוצפן", signalError: "שגיאת אות", disconnected: "מנותק" }, t = { title: "הגדרות", language: "שפה", theme: { title: "מראה", mode: "ערכת נושא", light: "בהיר", dark: "כהה", system: "מערכת" }, connectionPreferences: { title: "העדפות חיבור", retainSessionHistory: "שמור היסטוריית הפעלה", autoReconnect: "התחבר מחדש אוטומטית" }, signaling: { title: "איתות", description: "איתות הוא פרוטוקול לחיצת היד המשמש ליצירת חיבור.", server: "שרת", serverUrl: "כתובת השרת" }, transport: { title: "תעבורה", description: "כך מתוחזק החיבור.", webrtc: "WebRTC", iceServers: { title: "שרתי ICE", stun: "שרתי STUN", turn: "שרתי TURN", addStun: "הוסף שרת STUN", addTurn: "הוסף שרת TURN", username: "שם משתמש", credential: "סיסמה" } } }, o = { title: "חבר ארנק" }, c = { title: "מה זה openlv?", scanQrCode: "סרוק קוד QR", approveOnDevice: "אשר במכשיר", youreConnected: "אתה מחובר!" }, s = { prompt: "לחץ על הכפתור למטה כדי להתחיל חיבור", generateQr: "צור QR", connectionSettings: "הגדרות חיבור" }, i = { preparingConnection: "מכין חיבור", generatingKeys: "מייצר מפתחות...", connecting: "מתחבר", waitingForNetwork: "ממתין לחיבור רשת...", establishingConnection: "יוצר חיבור...", mayTakeFewSeconds: "זה עשוי לקחת כמה שניות...", connectedSuccessfully: "התחברת בהצלחה!", walletConnectedReady: "הארנק שלך מחובר ומוכן לשימוש.", disconnected: "מנותק", connectionClosed: "החיבור נסגר." }, r = { clickToCopyUrl: "לחץ להעתקת כתובת החיבור", copyConnectionUrl: "העתק כתובת חיבור", scanCodeInstruction: `סרוק את הקוד למעלה באמצעות הארנק הנייד שלך.
2
+ או העתק את הקישור והדבק אותו בארנק שלך.` }, a = { urlCopied: "כתובת החיבור הועתקה ללוח!", backToQr: "חזור ל-QR", closeModal: "סגור חלון" }, l = {
3
+ common: e,
4
+ status: n,
5
+ settings: t,
6
+ start: o,
7
+ info: c,
8
+ disconnected: s,
9
+ connectionFlow: i,
10
+ handshake: r,
11
+ modal: a
12
+ };
13
+ export {
14
+ e as common,
15
+ i as connectionFlow,
16
+ l as default,
17
+ s as disconnected,
18
+ r as handshake,
19
+ c as info,
20
+ a as modal,
21
+ t as settings,
22
+ o as start,
23
+ n as status
24
+ };
25
+ //# sourceMappingURL=he-NFIsHMZP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"he-NFIsHMZP.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export declare const copyToClipboard: (text: string) => Promise<boolean>;
@@ -0,0 +1,7 @@
1
+ import { ConnectionInfo, ConnectionState } from '../types/connection.js';
2
+ export declare const useConnectionState: (initialState?: ConnectionState) => {
3
+ connectionInfo: ConnectionInfo;
4
+ updateState: (newState: ConnectionState, additionalInfo?: Partial<ConnectionInfo>) => void;
5
+ updateConnectionInfo: (info: ConnectionInfo) => void;
6
+ reset: () => void;
7
+ };
@@ -0,0 +1,2 @@
1
+ import { EventEmitter } from 'eventemitter3';
2
+ export declare const useEventEmitter: <R extends EventEmitter.ValidEventTypes = string | symbol, E extends EventEmitter.EventNames<R> = EventEmitter.EventNames<R>, Fn extends EventEmitter.EventListener<R, E> = EventEmitter.EventListener<R, E>>(emitter: EventEmitter<R> | undefined, event: E, fn: Fn) => void;
@@ -0,0 +1,12 @@
1
+ export interface UseNavigationStackOptions {
2
+ transitionDuration?: number;
3
+ }
4
+ export interface UseNavigationStackReturn<T> {
5
+ screen: T;
6
+ previousScreen: T | null;
7
+ isTransitioning: boolean;
8
+ navigate: (screen: T) => void;
9
+ goBack: () => void;
10
+ isAtRoot: boolean;
11
+ }
12
+ export declare function useNavigationStack<T>(initialScreen: T, { transitionDuration }?: UseNavigationStackOptions): UseNavigationStackReturn<T>;
@@ -0,0 +1,5 @@
1
+ import { ProviderStatus } from '@openlv/provider';
2
+ export declare const useProvider: () => {
3
+ provider: import('@openlv/provider').OpenLVProvider;
4
+ status: ProviderStatus;
5
+ };
@@ -0,0 +1,8 @@
1
+ export interface PunchTransitionOptions {
2
+ duration?: number;
3
+ }
4
+ export declare const usePunchTransition: <T>(value: T, { duration }?: PunchTransitionOptions) => {
5
+ current: T;
6
+ previous: T | null;
7
+ isTransitioning: boolean;
8
+ };