@inttegro/svelte 0.1.0 → 0.2.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.
@@ -10,6 +10,7 @@
10
10
  let {
11
11
  appearance,
12
12
  class: className,
13
+ features,
13
14
  locale,
14
15
  onCompleted,
15
16
  onError,
@@ -24,7 +25,7 @@
24
25
  let checkout = $state<CheckoutController>()
25
26
 
26
27
  $effect(() => {
27
- const identity = { orderId, timeout, title }
28
+ const identity = { features, orderId, timeout, title }
28
29
  if (!container) return
29
30
 
30
31
  let active = true
package/dist/index.d.ts CHANGED
@@ -24,4 +24,4 @@
24
24
  */
25
25
  export { default as Checkout } from './Checkout.svelte';
26
26
  export type { CheckoutProps } from './types';
27
- export type { CheckoutAppearance, CheckoutErrorEvent, CheckoutEvent, CheckoutTheme, } from '@inttegro/js';
27
+ export type { CheckoutAppearance, CheckoutErrorEvent, CheckoutEvent, CheckoutFeatures, CheckoutTheme, } from '@inttegro/js';
package/dist/types.d.ts CHANGED
@@ -1,16 +1,18 @@
1
- import type { CheckoutAppearance, CheckoutErrorEvent, CheckoutEvent } from '@inttegro/js';
1
+ import type { CheckoutAppearance, CheckoutErrorEvent, CheckoutEvent, CheckoutFeatures } from '@inttegro/js';
2
2
  /**
3
3
  * Props accepted by the Inttegro {@link Checkout} component.
4
4
  *
5
- * `orderId`, `timeout`, and `title` identify a hosted experience; changing one
6
- * destroys the current controller and mounts a new one. `appearance` and
7
- * `locale` update the current controller in place.
5
+ * `features`, `orderId`, `timeout`, and `title` identify a hosted experience;
6
+ * changing one destroys the current controller and mounts a new one.
7
+ * `appearance` and `locale` update the current controller in place.
8
8
  *
9
9
  * @category Svelte
10
10
  */
11
11
  export interface CheckoutProps {
12
12
  /** Initial and reactive theme preference for hosted Checkout. */
13
13
  appearance?: CheckoutAppearance | undefined;
14
+ /** Hosted Checkout content and actions. Changing it replaces the controller. */
15
+ features?: CheckoutFeatures | undefined;
14
16
  /** CSS class applied to the outer container owned by your Svelte application. */
15
17
  class?: string | undefined;
16
18
  /** Initial and reactive BCP 47 locale preference. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inttegro/svelte",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Svelte components for Inttegro hosted workflows",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "svelte-check --tsconfig ./tsconfig.json"
27
27
  },
28
28
  "dependencies": {
29
- "@inttegro/js": "0.1.0"
29
+ "@inttegro/js": "0.2.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "svelte": ">=5"