window.nostr.js 0.2.2 → 0.4.0
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 +5 -0
- package/dist/iframe.html +1 -0
- package/dist/iframe.js +4333 -0
- package/dist/iframe.js.map +7 -0
- package/dist/index.html +1 -1
- package/dist/window.nostr.js +15 -9
- package/iframe/build.js +9 -0
- package/iframe/iframe.html +1 -0
- package/iframe/iframe.ts +21 -0
- package/justfile +9 -2
- package/package.json +3 -2
- package/src/App.svelte +49 -26
- package/src/lib.ts +7 -0
- package/src/main.ts +9 -7
- package/src/mediaQueryStore.ts +25 -0
- package/tsconfig.json +4 -3
- package/src/mediaQueryStore.js +0 -33
package/README.md
CHANGED
|
@@ -18,6 +18,11 @@ The script supports some optional configurations to personalize the design:
|
|
|
18
18
|
// The only accepted value is 'bottom', default is top
|
|
19
19
|
accent: 'green',
|
|
20
20
|
// Supported values: cyan (default), green, purple, red, orange, neutral, stone
|
|
21
|
+
startHidden: true,
|
|
22
|
+
// If the host page has a button that call `getPublicKey` to start a
|
|
23
|
+
// login procedure, the minimized widget can be hidden until connected
|
|
24
|
+
compactMode: true,
|
|
25
|
+
// Show the minimized widget in a compact form
|
|
21
26
|
disableOverflowFix: true,
|
|
22
27
|
// If the host page on mobile has an horizontal scrolling, the floating
|
|
23
28
|
// element/modal are pushed to the extreme right/bottom and exit the
|
package/dist/iframe.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<script src="iframe.js"></script>
|