@openreceive/svelte 0.3.0 → 0.3.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.
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import { onMount } from "svelte";
3
3
  import {
4
- createWrapperCheckoutShellBinding,
5
- defineElements,
6
- validateCheckoutProps,
7
4
  type CheckoutElementListeners,
8
5
  type CheckoutShellOptions,
9
6
  type CheckoutSnapshot,
7
+ createWrapperCheckoutShellBinding,
8
+ defineElements,
10
9
  type ThemePreference,
10
+ validateCheckoutProps,
11
11
  } from "./index.js";
12
12
 
13
13
  // Prop names, defaults, and per-mode applicability are the shared contract in
@@ -34,6 +34,8 @@ export let metadata: Record<string, unknown> | undefined = undefined;
34
34
  export let syncUrl: boolean | undefined = undefined;
35
35
  export let resumePathPrefix: string | undefined = undefined;
36
36
  export let routeReference: string | undefined = undefined;
37
+ export let resumePaymentHash: string | undefined = undefined;
38
+ export let resumable: boolean | undefined = undefined;
37
39
  export let onCopy: ((event: Event) => void) | undefined = undefined;
38
40
  export let onOpenWallet: ((event: Event) => void) | undefined = undefined;
39
41
  export let onState: ((event: Event) => void) | undefined = undefined;
@@ -60,6 +62,7 @@ $: validateCheckoutProps({
60
62
  syncUrl,
61
63
  resumePathPrefix,
62
64
  routeReference,
65
+ resumePaymentHash,
63
66
  });
64
67
 
65
68
  $: shell = createWrapperCheckoutShellBinding(checkout ?? null, {
@@ -77,6 +80,8 @@ $: shell = createWrapperCheckoutShellBinding(checkout ?? null, {
77
80
  ...(syncUrl === undefined ? {} : { syncUrl }),
78
81
  ...(resumePathPrefix === undefined ? {} : { resumePathPrefix }),
79
82
  ...(routeReference === undefined ? {} : { routeReference }),
83
+ ...(resumePaymentHash === undefined ? {} : { resumePaymentHash }),
84
+ ...(resumable === undefined ? {} : { resumable }),
80
85
  ...(onCopy === undefined ? {} : { onCopy }),
81
86
  ...(onOpenWallet === undefined ? {} : { onOpenWallet }),
82
87
  ...(onState === undefined ? {} : { onState }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openreceive/svelte",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Svelte wrapper for the OpenReceive checkout custom element.",
5
5
  "keywords": [
6
6
  "bitcoin",
@@ -20,8 +20,8 @@
20
20
  "types": "./dist/index.d.ts",
21
21
  "svelte": "./dist/index.js",
22
22
  "dependencies": {
23
- "@openreceive/browser": "0.3.0",
24
- "@openreceive/elements": "0.3.0"
23
+ "@openreceive/browser": "0.3.2",
24
+ "@openreceive/elements": "0.3.2"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "svelte": ">=5.0.0"